diff options
Diffstat (limited to 'recipes-multimedia/gstreamer')
35 files changed, 696 insertions, 1276 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb deleted file mode 100644 index 3f1ec99d9..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb +++ /dev/null | |||
| @@ -1,70 +0,0 @@ | |||
| 1 | SUMMARY = "Libav-based GStreamer 1.x plugin" | ||
| 2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
| 3 | SECTION = "multimedia" | ||
| 4 | |||
| 5 | LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )" | ||
| 6 | LICENSE_FLAGS = "commercial" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 8 | file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \ | ||
| 9 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | ||
| 10 | file://gst-libs/ext/libav/COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 11 | file://gst-libs/ext/libav/COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 12 | file://gst-libs/ext/libav/COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \ | ||
| 13 | file://gst-libs/ext/libav/COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
| 14 | |||
| 15 | SRC_URI = "http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \ | ||
| 16 | file://0001-Disable-yasm-for-libav-when-disable-yasm.patch \ | ||
| 17 | file://workaround-to-build-gst-libav-for-i586-with-gcc.patch \ | ||
| 18 | file://mips64_cpu_detection.patch \ | ||
| 19 | file://0001-configure-check-for-armv7ve-variant.patch \ | ||
| 20 | file://0001-fix-host-contamination.patch \ | ||
| 21 | " | ||
| 22 | SRC_URI[md5sum] = "e3a201a45985ddc1327cd496046ca818" | ||
| 23 | SRC_URI[sha256sum] = "dfac119043a9cfdcacd7acde77f674ab172cf2537b5812be52f49e9cddc53d9a" | ||
| 24 | |||
| 25 | S = "${WORKDIR}/gst-libav-${PV}" | ||
| 26 | |||
| 27 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base zlib bzip2 xz" | ||
| 28 | |||
| 29 | inherit autotools pkgconfig upstream-version-is-even gtk-doc | ||
| 30 | |||
| 31 | # CAUTION: Using the system libav is not recommended. Since the libav API is changing all the time, | ||
| 32 | # compilation errors (and other, more subtle bugs) can happen. It is usually better to rely on the | ||
| 33 | # libav copy included in the gst-libav package. | ||
| 34 | PACKAGECONFIG ??= "orc yasm" | ||
| 35 | |||
| 36 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl," | ||
| 37 | PACKAGECONFIG[libav] = "--with-system-libav,,libav" | ||
| 38 | PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc" | ||
| 39 | PACKAGECONFIG[yasm] = "--enable-yasm,--disable-yasm,nasm-native" | ||
| 40 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind" | ||
| 41 | |||
| 42 | GSTREAMER_1_0_DEBUG ?= "--disable-debug" | ||
| 43 | |||
| 44 | LIBAV_EXTRA_CONFIGURE = "--with-libav-extra-configure" | ||
| 45 | |||
| 46 | LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \ | ||
| 47 | --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \ | ||
| 48 | --ranlib='${RANLIB}' \ | ||
| 49 | ${GSTREAMER_1_0_DEBUG} \ | ||
| 50 | --cross-prefix='${HOST_PREFIX}'" | ||
| 51 | |||
| 52 | # Disable assembly optimizations for X32, as this libav lacks the support | ||
| 53 | PACKAGECONFIG_remove_linux-gnux32 = "yasm" | ||
| 54 | LIBAV_EXTRA_CONFIGURE_COMMON_ARG_append_linux-gnux32 = " --disable-asm" | ||
| 55 | |||
| 56 | LIBAV_EXTRA_CONFIGURE_COMMON = \ | ||
| 57 | '${LIBAV_EXTRA_CONFIGURE}="${LIBAV_EXTRA_CONFIGURE_COMMON_ARG}"' | ||
| 58 | |||
| 59 | EXTRA_OECONF = "${LIBAV_EXTRA_CONFIGURE_COMMON}" | ||
| 60 | |||
| 61 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" | ||
| 62 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la" | ||
| 63 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
| 64 | |||
| 65 | # http://errors.yoctoproject.org/Errors/Details/20493/ | ||
| 66 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
| 67 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
| 68 | |||
| 69 | # ffmpeg/libav disables PIC on some platforms (e.g. x86-32) | ||
| 70 | INSANE_SKIP_${PN} = "textrel" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb new file mode 100644 index 000000000..1a076c2eb --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | SUMMARY = "Libav-based GStreamer 1.x plugin" | ||
| 2 | DESCRIPTION = "Contains a GStreamer plugin for using the encoders, decoders, \ | ||
| 3 | muxers, and demuxers provided by FFmpeg." | ||
| 4 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
| 5 | SECTION = "multimedia" | ||
| 6 | |||
| 7 | # ffmpeg has comercial license flags so add it as we need ffmpeg as a dependency | ||
| 8 | LICENSE_FLAGS = "commercial" | ||
| 9 | LICENSE = "LGPLv2+" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | ||
| 11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz" | ||
| 15 | SRC_URI[sha256sum] = "42f93f5ce9a3fc22051e5f783a4574b56ebf213f331f75dcbc3552459bd3a06a" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/gst-libav-${PV}" | ||
| 18 | |||
| 19 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" | ||
| 20 | |||
| 21 | inherit meson pkgconfig upstream-version-is-even | ||
| 22 | |||
| 23 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" | ||
| 24 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb index 6925611ac..c3e64172b 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb | |||
| @@ -1,30 +1,22 @@ | |||
| 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 2 | 2 | ||
| 3 | DEPENDS_append_imxgpu2d = " virtual/libg2d" | 3 | DEPENDS:append:imxgpu2d = " virtual/libg2d" |
| 4 | DEPENDS_append_mx8 = " libdrm" | 4 | DEPENDS:append:mx8 = " libdrm" |
| 5 | 5 | ||
| 6 | PACKAGECONFIG_append_mx8 = " kms" | 6 | PACKAGECONFIG:append:mx8 = " kms tinycompress" |
| 7 | 7 | ||
| 8 | DEFAULT_PREFERENCE = "-1" | 8 | DEFAULT_PREFERENCE = "-1" |
| 9 | 9 | ||
| 10 | PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" | 10 | PACKAGE_ARCH:imxpxp = "${MACHINE_SOCARCH}" |
| 11 | PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}" | 11 | PACKAGE_ARCH:mx8 = "${MACHINE_SOCARCH}" |
| 12 | 12 | ||
| 13 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" | 13 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" |
| 14 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | 14 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
| 15 | 15 | ||
| 16 | SRC_URI = " \ | 16 | SRC_URI = " \ |
| 17 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ | 17 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ |
| 18 | file://0001-ext-wayland-fix-meson-build-in-nxp-fork.patch \ | ||
| 19 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | ||
| 20 | file://opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | ||
| 21 | file://0001-opencv-allow-compilation-against-4.4.x.patch \ | ||
| 22 | file://0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch \ | ||
| 23 | file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ | ||
| 24 | file://avoid-including-sys-poll.h-directly.patch \ | ||
| 25 | file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \ | ||
| 26 | " | 18 | " |
| 27 | SRCREV = "cf7f2d0125424ce0d63ddc7f1eadc9ef71d10db1" | 19 | SRCREV = "227af57d23cb6b3564fc94446ab2c9fe8c8cff22" |
| 28 | 20 | ||
| 29 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
| 30 | 22 | ||
| @@ -37,12 +29,12 @@ DEPENDS += "gstreamer1.0-plugins-base" | |||
| 37 | inherit gobject-introspection | 29 | inherit gobject-introspection |
| 38 | 30 | ||
| 39 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" | 31 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" |
| 40 | PACKAGECONFIG_GL_imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" | 32 | PACKAGECONFIG_GL:imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" |
| 41 | 33 | ||
| 42 | PACKAGECONFIG ??= " \ | 34 | PACKAGECONFIG ??= " \ |
| 43 | ${GSTREAMER_ORC} \ | 35 | ${GSTREAMER_ORC} \ |
| 44 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ | 36 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ |
| 45 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)} \ | 37 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
| 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ |
| 47 | ${PACKAGECONFIG_GL} \ | 39 | ${PACKAGECONFIG_GL} \ |
| 48 | bz2 closedcaption curl dash dtls hls rsvg sbc smoothstreaming sndfile \ | 40 | bz2 closedcaption curl dash dtls hls rsvg sbc smoothstreaming sndfile \ |
| @@ -91,6 +83,7 @@ PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=di | |||
| 91 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" | 83 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" |
| 92 | PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" | 84 | PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" |
| 93 | PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" | 85 | PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" |
| 86 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" | ||
| 94 | PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" | 87 | PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" |
| 95 | PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" | 88 | PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" |
| 96 | PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" | 89 | PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" |
| @@ -102,9 +95,6 @@ PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice" | |||
| 102 | PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" | 95 | PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" |
| 103 | PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" | 96 | PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" |
| 104 | 97 | ||
| 105 | # Following package config in not available in NXP fork: | ||
| 106 | #PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms" | ||
| 107 | |||
| 108 | # these plugins currently have no corresponding library in OE-core or meta-openembedded: | 98 | # these plugins currently have no corresponding library in OE-core or meta-openembedded: |
| 109 | # aom androidmedia applemedia bs2b chromaprint d3dvideosink | 99 | # aom androidmedia applemedia bs2b chromaprint d3dvideosink |
| 110 | # directsound dts fdkaac gme gsm iq kate ladspa lv2 mpeg2enc | 100 | # directsound dts fdkaac gme gsm iq kate ladspa lv2 mpeg2enc |
| @@ -139,8 +129,6 @@ EXTRA_OEMESON += " \ | |||
| 139 | -Dmplex=disabled \ | 129 | -Dmplex=disabled \ |
| 140 | -Dmsdk=disabled \ | 130 | -Dmsdk=disabled \ |
| 141 | -Dmusepack=disabled \ | 131 | -Dmusepack=disabled \ |
| 142 | -Dnvdec=disabled \ | ||
| 143 | -Dnvenc=disabled \ | ||
| 144 | -Dofa=disabled \ | 132 | -Dofa=disabled \ |
| 145 | -Dopenexr=disabled \ | 133 | -Dopenexr=disabled \ |
| 146 | -Dopenmpt=disabled \ | 134 | -Dopenmpt=disabled \ |
| @@ -150,7 +138,6 @@ EXTRA_OEMESON += " \ | |||
| 150 | -Dspandsp=disabled \ | 138 | -Dspandsp=disabled \ |
| 151 | -Dsrt=disabled \ | 139 | -Dsrt=disabled \ |
| 152 | -Dteletext=disabled \ | 140 | -Dteletext=disabled \ |
| 153 | -Dvdpau=disabled \ | ||
| 154 | -Dwasapi=disabled \ | 141 | -Dwasapi=disabled \ |
| 155 | -Dwildmidi=disabled \ | 142 | -Dwildmidi=disabled \ |
| 156 | -Dwinks=disabled \ | 143 | -Dwinks=disabled \ |
| @@ -163,13 +150,14 @@ EXTRA_OEMESON += " \ | |||
| 163 | 150 | ||
| 164 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" | 151 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" |
| 165 | 152 | ||
| 166 | ARM_INSTRUCTION_SET_armv4 = "arm" | 153 | ARM_INSTRUCTION_SET:armv4 = "arm" |
| 167 | ARM_INSTRUCTION_SET_armv5 = "arm" | 154 | ARM_INSTRUCTION_SET:armv5 = "arm" |
| 168 | 155 | ||
| 169 | FILES_${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs" | 156 | FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs" |
| 170 | FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" | 157 | FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" |
| 171 | FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" | 158 | FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles" |
| 159 | FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" | ||
| 172 | # include fragment shaders | 160 | # include fragment shaders |
| 173 | FILES_${PN}-opengl += "/usr/share/*.fs" | 161 | FILES:${PN}-opengl += "/usr/share/*.fs" |
| 174 | 162 | ||
| 175 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 163 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch deleted file mode 100644 index 61baf2f9e..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From a145a129a8122f21c1e243b3dc2e5708f4c13bef Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
| 3 | Date: Thu, 23 Jan 2020 12:54:10 +0000 | ||
| 4 | Subject: [PATCH] gst-libs gst gl wayland: fix meson build | ||
| 5 | |||
| 6 | Since introduction of meson build system, modifications introduced in | ||
| 7 | NXP fork are breaking the build, where xdg-shell-client-protocol.h | ||
| 8 | is searched via relative path. This code is only present in NXP fork and | ||
| 9 | should be removed. | ||
| 10 | |||
| 11 | This reverts commit [48bde732b00fb42df636ebbaf3b06e5e7971c206] | ||
| 12 | ("wayland: fix build break in yocto") from upstream. | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
| 17 | --- | ||
| 18 | gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
| 22 | index d1795591f..89dedd9b5 100644 | ||
| 23 | --- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
| 24 | +++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
| 25 | @@ -22,7 +22,7 @@ | ||
| 26 | #define __GST_GL_WINDOW_WAYLAND_EGL_H__ | ||
| 27 | |||
| 28 | #include <wayland-client.h> | ||
| 29 | -#include <gst/gl/wayland/xdg-shell-client-protocol.h> | ||
| 30 | +#include "xdg-shell-client-protocol.h" | ||
| 31 | #include <wayland-egl.h> | ||
| 32 | #include <wayland-cursor.h> | ||
| 33 | |||
| 34 | -- | ||
| 35 | 2.17.1 | ||
| 36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch deleted file mode 100644 index da1525318..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch +++ /dev/null | |||
| @@ -1,220 +0,0 @@ | |||
| 1 | From def285f623bc30b9d1acede00393188e693cc741 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
| 3 | Date: Sat, 22 Feb 2020 13:22:57 +0000 | ||
| 4 | Subject: [PATCH] gstreamer-plugins-base: fix meson build in nxp fork | ||
| 5 | |||
| 6 | - Add missing IMX header file into istall target; | ||
| 7 | - Allocator's meta data files are missing in meson.build, bring them back; | ||
| 8 | - Add ION NXP-specific allocator to meson.build; | ||
| 9 | - Introduce additional configuration option to pass extra include paths, | ||
| 10 | which are required to build ION allocator; | ||
| 11 | - Some video sources are missing, bring them also into the build; | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | |||
| 15 | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
| 16 | --- | ||
| 17 | gst-libs/gst/allocators/meson.build | 30 +++++++++++++++++++++++++++-- | ||
| 18 | gst-libs/gst/gl/gstglconfig.h.meson | 2 ++ | ||
| 19 | gst-libs/gst/gl/meson.build | 20 +++++++++++++++++++ | ||
| 20 | gst-libs/gst/meson.build | 6 ++++++ | ||
| 21 | gst-libs/gst/video/meson.build | 11 +++++++++++ | ||
| 22 | meson.build | 3 +++ | ||
| 23 | meson_options.txt | 4 ++++ | ||
| 24 | 7 files changed, 74 insertions(+), 2 deletions(-) | ||
| 25 | |||
| 26 | diff --git a/gst-libs/gst/allocators/meson.build b/gst-libs/gst/allocators/meson.build | ||
| 27 | index 364baeebf..30b1495c9 100644 | ||
| 28 | --- a/gst-libs/gst/allocators/meson.build | ||
| 29 | +++ b/gst-libs/gst/allocators/meson.build | ||
| 30 | @@ -5,18 +5,44 @@ gst_allocators_headers = [ | ||
| 31 | 'gstphysmemory.h', | ||
| 32 | 'gstdmabuf.h', | ||
| 33 | ] | ||
| 34 | + | ||
| 35 | +imx_gst_allocators_headers = [ | ||
| 36 | + 'gstphymemmeta.h', | ||
| 37 | + 'gstdmabufmeta.h', | ||
| 38 | + 'gstallocatorphymem.h', | ||
| 39 | +] | ||
| 40 | + | ||
| 41 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
| 42 | + imx_gst_allocators_headers += [ | ||
| 43 | + 'gstionmemory.h', | ||
| 44 | + ] | ||
| 45 | +endif | ||
| 46 | + | ||
| 47 | +gst_allocators_headers += imx_gst_allocators_headers | ||
| 48 | + | ||
| 49 | install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/') | ||
| 50 | |||
| 51 | gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c'] | ||
| 52 | + | ||
| 53 | +imx_gst_allocators_sources = ['gstdmabufmeta.c', 'gstphymemmeta.c', 'gstallocatorphymem.c'] | ||
| 54 | + | ||
| 55 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
| 56 | + imx_gst_allocators_sources += [ | ||
| 57 | + 'gstionmemory.c', | ||
| 58 | + ] | ||
| 59 | +endif | ||
| 60 | + | ||
| 61 | +gst_allocators_sources += imx_gst_allocators_sources | ||
| 62 | + | ||
| 63 | gstallocators = library('gstallocators-@0@'.format(api_version), | ||
| 64 | gst_allocators_sources, | ||
| 65 | c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS'], | ||
| 66 | - include_directories: [configinc, libsinc], | ||
| 67 | + include_directories: [configinc, libsinc, imx_includes], | ||
| 68 | version : libversion, | ||
| 69 | soversion : soversion, | ||
| 70 | darwin_versions : osxversion, | ||
| 71 | install : true, | ||
| 72 | - dependencies : [gst_dep], | ||
| 73 | + dependencies : [video_dep, gst_dep], | ||
| 74 | ) | ||
| 75 | |||
| 76 | allocators_gen_sources = [] | ||
| 77 | diff --git a/gst-libs/gst/gl/gstglconfig.h.meson b/gst-libs/gst/gl/gstglconfig.h.meson | ||
| 78 | index 11795c16c..66cd54a7e 100644 | ||
| 79 | --- a/gst-libs/gst/gl/gstglconfig.h.meson | ||
| 80 | +++ b/gst-libs/gst/gl/gstglconfig.h.meson | ||
| 81 | @@ -32,8 +32,10 @@ G_BEGIN_DECLS | ||
| 82 | #mesondefine GST_GL_HAVE_PLATFORM_CGL | ||
| 83 | #mesondefine GST_GL_HAVE_PLATFORM_EAGL | ||
| 84 | |||
| 85 | +#mesondefine GST_GL_HAVE_IONDMA | ||
| 86 | #mesondefine GST_GL_HAVE_DMABUF | ||
| 87 | #mesondefine GST_GL_HAVE_VIV_DIRECTVIV | ||
| 88 | +#mesondefine GST_GL_HAVE_PHYMEM | ||
| 89 | |||
| 90 | #mesondefine GST_GL_HAVE_GLEGLIMAGEOES | ||
| 91 | #mesondefine GST_GL_HAVE_GLCHAR | ||
| 92 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
| 93 | index 0e0ba1b7d..6f6c6866d 100644 | ||
| 94 | --- a/gst-libs/gst/gl/meson.build | ||
| 95 | +++ b/gst-libs/gst/gl/meson.build | ||
| 96 | @@ -123,8 +123,10 @@ glconf_options = [ | ||
| 97 | 'GST_GL_HAVE_PLATFORM_CGL', | ||
| 98 | 'GST_GL_HAVE_PLATFORM_EAGL', | ||
| 99 | |||
| 100 | + 'GST_GL_HAVE_IONDMA', | ||
| 101 | 'GST_GL_HAVE_DMABUF', | ||
| 102 | 'GST_GL_HAVE_VIV_DIRECTVIV', | ||
| 103 | + 'GST_GL_HAVE_PHYMEM', | ||
| 104 | |||
| 105 | 'GST_GL_HAVE_GLEGLIMAGEOES', | ||
| 106 | 'GST_GL_HAVE_GLCHAR', | ||
| 107 | @@ -146,6 +148,18 @@ if unneeded_dep.found() | ||
| 108 | error ('Found unfindable dependency') | ||
| 109 | endif | ||
| 110 | |||
| 111 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
| 112 | + glconf.set10('GST_GL_HAVE_IONDMA', 1) | ||
| 113 | + gl_sources += [ | ||
| 114 | + 'gstglmemorydma.c', | ||
| 115 | + ] | ||
| 116 | + gl_headers += [ | ||
| 117 | + 'gstglmemorydma.h', | ||
| 118 | + ] | ||
| 119 | +else | ||
| 120 | + error('i.MX platform requires ION support to be enabled!') | ||
| 121 | +endif | ||
| 122 | + | ||
| 123 | # OpenGL/GLES2 libraries | ||
| 124 | gl_lib_deps = [] | ||
| 125 | # GL platform - EGL, GLX, CGL, WGL, etc | ||
| 126 | @@ -501,6 +515,7 @@ if need_platform_egl != 'no' | ||
| 127 | glconf.set10('GST_GL_HAVE_DMABUF', 1) | ||
| 128 | endif | ||
| 129 | |||
| 130 | + | ||
| 131 | egl_includes = ''' | ||
| 132 | #include <EGL/egl.h> | ||
| 133 | #include <EGL/eglext.h> | ||
| 134 | @@ -808,9 +823,14 @@ if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
| 135 | enabled_gl_winsys += 'viv-fb' | ||
| 136 | glconf.set10('GST_GL_HAVE_WINDOW_VIV_FB', 1) | ||
| 137 | glconf.set10('GST_GL_HAVE_VIV_DIRECTVIV', 1) | ||
| 138 | + glconf.set10('GST_GL_HAVE_PHYMEM', 1) | ||
| 139 | gl_sources += [ | ||
| 140 | 'viv-fb/gstgldisplay_viv_fb.c', | ||
| 141 | 'viv-fb/gstglwindow_viv_fb_egl.c', | ||
| 142 | + 'gstglphymemory.c', | ||
| 143 | + ] | ||
| 144 | + gl_headers += [ | ||
| 145 | + 'gstglphymemory.h', | ||
| 146 | ] | ||
| 147 | gl_cpp_args += ['-DEGL_API_FB'] | ||
| 148 | endif | ||
| 149 | diff --git a/gst-libs/gst/meson.build b/gst-libs/gst/meson.build | ||
| 150 | index cd3b5b043..1935f46e5 100644 | ||
| 151 | --- a/gst-libs/gst/meson.build | ||
| 152 | +++ b/gst-libs/gst/meson.build | ||
| 153 | @@ -11,3 +11,9 @@ subdir('app') | ||
| 154 | subdir('allocators') | ||
| 155 | # FIXME: gl deps are automagic | ||
| 156 | subdir('gl') | ||
| 157 | + | ||
| 158 | +# Install dangling imx header, required by other plugins | ||
| 159 | +gst_imx_header = [ | ||
| 160 | + 'gstimxcommon.h', | ||
| 161 | +] | ||
| 162 | +install_headers(gst_imx_header, subdir : 'gstreamer-1.0/') | ||
| 163 | diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build | ||
| 164 | index b4dfcdf65..d8531f199 100644 | ||
| 165 | --- a/gst-libs/gst/video/meson.build | ||
| 166 | +++ b/gst-libs/gst/video/meson.build | ||
| 167 | @@ -35,6 +35,11 @@ video_sources = [ | ||
| 168 | 'videooverlay.c', | ||
| 169 | ] | ||
| 170 | |||
| 171 | +imx_video_sources = [ | ||
| 172 | + 'gstvideohdr10meta.c', | ||
| 173 | +] | ||
| 174 | +video_sources += imx_video_sources | ||
| 175 | + | ||
| 176 | video_headers = [ | ||
| 177 | 'colorbalance.h', | ||
| 178 | 'colorbalancechannel.h', | ||
| 179 | @@ -70,6 +75,12 @@ video_headers = [ | ||
| 180 | 'video-overlay-composition.h', | ||
| 181 | 'video-multiview.h', | ||
| 182 | ] | ||
| 183 | + | ||
| 184 | +imx_video_headers = [ | ||
| 185 | + 'gstvideohdr10meta.h', | ||
| 186 | +] | ||
| 187 | +video_headers += imx_video_headers | ||
| 188 | + | ||
| 189 | install_headers(video_headers, subdir : 'gstreamer-1.0/gst/video/') | ||
| 190 | |||
| 191 | video_mkenum_headers = [ | ||
| 192 | diff --git a/meson.build b/meson.build | ||
| 193 | index 2fca28205..7781934cd 100644 | ||
| 194 | --- a/meson.build | ||
| 195 | +++ b/meson.build | ||
| 196 | @@ -103,6 +103,9 @@ if glib_checks.disabled() or (glib_checks.auto() and not gst_version_is_dev) | ||
| 197 | add_project_arguments('-DG_DISABLE_CHECKS', language: 'c') | ||
| 198 | endif | ||
| 199 | |||
| 200 | +# Define i.MX-specific include path as variable from options | ||
| 201 | +imx_includes = include_directories(get_option('extra_imx_incdir')) | ||
| 202 | + | ||
| 203 | check_headers = [ | ||
| 204 | ['HAVE_DLFCN_H', 'dlfcn.h'], | ||
| 205 | ['HAVE_EMMINTRIN_H', 'emmintrin.h'], | ||
| 206 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 207 | index e7af4dd45..d44401ca6 100644 | ||
| 208 | --- a/meson_options.txt | ||
| 209 | +++ b/meson_options.txt | ||
| 210 | @@ -85,3 +85,7 @@ option('package-name', type : 'string', yield : true, | ||
| 211 | description : 'package name to use in plugins') | ||
| 212 | option('package-origin', type : 'string', value : 'Unknown package origin', yield : true, | ||
| 213 | description : 'package origin URL to use in plugins') | ||
| 214 | + | ||
| 215 | +# NXP specific options | ||
| 216 | +option('extra_imx_incdir', type : 'string', yield : true, description : 'i.MX specific header include path') | ||
| 217 | + | ||
| 218 | -- | ||
| 219 | 2.17.1 | ||
| 220 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch deleted file mode 100644 index 55871883f..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From f82db8496df8ffb8352248e895258c19f8f4776b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
| 3 | Date: Thu, 17 Oct 2019 20:06:24 +0100 | ||
| 4 | Subject: [PATCH] meson: build gir even when cross-compiling if introspection | ||
| 5 | was enabled explicitly | ||
| 6 | |||
| 7 | This can be made to work in certain circumstances when | ||
| 8 | cross-compiling, so default to not building g-i stuff | ||
| 9 | when cross-compiling, but allow it if introspection was | ||
| 10 | enabled explicitly via -Dintrospection=enabled. | ||
| 11 | |||
| 12 | See gstreamer/gstreamer#454 and gstreamer/gstreamer#381. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [30672ba7d134553e59935ddc875104adba26f25c] | ||
| 15 | |||
| 16 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 17 | |||
| 18 | --- | ||
| 19 | meson.build | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/meson.build b/meson.build | ||
| 23 | index 2fca28205..2714af718 100644 | ||
| 24 | --- a/meson.build | ||
| 25 | +++ b/meson.build | ||
| 26 | @@ -355,7 +355,7 @@ endif | ||
| 27 | |||
| 28 | gir = find_program('g-ir-scanner', required : get_option('introspection')) | ||
| 29 | gnome = import('gnome') | ||
| 30 | -build_gir = gir.found() and not meson.is_cross_build() | ||
| 31 | +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) | ||
| 32 | gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ | ||
| 33 | 'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \ | ||
| 34 | 'g_setenv("GST_REGISTRY_1.0", "@0@", TRUE);'.format(meson.current_build_dir() + '/gir_empty_registry.reg') + \ | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch deleted file mode 100644 index c761619f4..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 8153e86dac04076fb80fc272c8374d4ba019fa3c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Zan Dobersek <zdobersek@igalia.com> | ||
| 3 | Date: Wed, 4 Nov 2020 14:02:10 +0100 | ||
| 4 | Subject: [PATCH] meson: viv-fb code must link against libg2d | ||
| 5 | |||
| 6 | Find the libg2d library and link against it, if necessary, avoiding | ||
| 7 | linking errors for couple of libg2d symbols. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Zan Dobersek <zdobersek@igalia.com> | ||
| 12 | --- | ||
| 13 | gst-libs/gst/gl/meson.build | 6 +++++- | ||
| 14 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
| 17 | index 6f6c6866d..fb6a9aabf 100644 | ||
| 18 | --- a/gst-libs/gst/gl/meson.build | ||
| 19 | +++ b/gst-libs/gst/gl/meson.build | ||
| 20 | @@ -818,9 +818,11 @@ if need_win_gbm != 'no' | ||
| 21 | endif | ||
| 22 | |||
| 23 | if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
| 24 | - if egl_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep) | ||
| 25 | + g2d_dep = cc.find_library('g2d', required : false) | ||
| 26 | + if egl_dep.found() and g2d_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep) | ||
| 27 | if cc.has_function ('glTexDirectVIV', dependencies : gles2_dep) | ||
| 28 | enabled_gl_winsys += 'viv-fb' | ||
| 29 | + gl_winsys_deps += [g2d_dep] | ||
| 30 | glconf.set10('GST_GL_HAVE_WINDOW_VIV_FB', 1) | ||
| 31 | glconf.set10('GST_GL_HAVE_VIV_DIRECTVIV', 1) | ||
| 32 | glconf.set10('GST_GL_HAVE_PHYMEM', 1) | ||
| 33 | @@ -834,6 +836,8 @@ if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
| 34 | ] | ||
| 35 | gl_cpp_args += ['-DEGL_API_FB'] | ||
| 36 | endif | ||
| 37 | + else | ||
| 38 | + g2d_dep = unneeded_dep | ||
| 39 | endif | ||
| 40 | endif | ||
| 41 | |||
| 42 | -- | ||
| 43 | 2.28.0 | ||
| 44 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch deleted file mode 100644 index 9494f6228..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch +++ /dev/null | |||
| @@ -1,233 +0,0 @@ | |||
| 1 | From 7a21c86a3facfc7fe8285e764324839b2e55df8a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thibault Saunier <tsaunier@igalia.com> | ||
| 3 | Date: Mon, 22 Oct 2018 11:44:37 +0200 | ||
| 4 | Subject: [PATCH] meson: Add variables for gir files | ||
| 5 | |||
| 6 | And flatten list of sources for dependencies | ||
| 7 | |||
| 8 | Upstream-Status: Backport [685731e989dc074a4b0d48b6c8062e2738f09719] | ||
| 9 | |||
| 10 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 11 | |||
| 12 | --- | ||
| 13 | gst-libs/gst/allocators/meson.build | 5 +++-- | ||
| 14 | gst-libs/gst/app/meson.build | 6 ++++-- | ||
| 15 | gst-libs/gst/audio/meson.build | 5 +++-- | ||
| 16 | gst-libs/gst/pbutils/meson.build | 5 +++-- | ||
| 17 | gst-libs/gst/rtp/meson.build | 6 ++++-- | ||
| 18 | gst-libs/gst/rtsp/meson.build | 5 +++-- | ||
| 19 | gst-libs/gst/sdp/meson.build | 6 ++++-- | ||
| 20 | gst-libs/gst/tag/meson.build | 5 +++-- | ||
| 21 | gst-libs/gst/video/meson.build | 5 +++-- | ||
| 22 | 9 files changed, 30 insertions(+), 18 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/gst-libs/gst/allocators/meson.build b/gst-libs/gst/allocators/meson.build | ||
| 25 | index 364baeebf..56f156dc3 100644 | ||
| 26 | --- a/gst-libs/gst/allocators/meson.build | ||
| 27 | +++ b/gst-libs/gst/allocators/meson.build | ||
| 28 | @@ -22,7 +22,7 @@ gstallocators = library('gstallocators-@0@'.format(api_version), | ||
| 29 | allocators_gen_sources = [] | ||
| 30 | if build_gir | ||
| 31 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ] | ||
| 32 | - allocators_gen_sources += [gnome.generate_gir(gstallocators, | ||
| 33 | + allocators_gir = gnome.generate_gir(gstallocators, | ||
| 34 | sources : gst_allocators_sources + gst_allocators_headers, | ||
| 35 | namespace : 'GstAllocators', | ||
| 36 | nsversion : api_version, | ||
| 37 | @@ -33,7 +33,8 @@ if build_gir | ||
| 38 | install : true, | ||
| 39 | extra_args : gst_gir_extra_args, | ||
| 40 | dependencies : [gst_dep] | ||
| 41 | - )] | ||
| 42 | + ) | ||
| 43 | + allocators_gen_sources += allocators_gir | ||
| 44 | endif | ||
| 45 | |||
| 46 | allocators_dep = declare_dependency(link_with: gstallocators, | ||
| 47 | diff --git a/gst-libs/gst/app/meson.build b/gst-libs/gst/app/meson.build | ||
| 48 | index 81dd0f42c..7a90f5e10 100644 | ||
| 49 | --- a/gst-libs/gst/app/meson.build | ||
| 50 | +++ b/gst-libs/gst/app/meson.build | ||
| 51 | @@ -32,7 +32,7 @@ gstapp = library('gstapp-@0@'.format(api_version), | ||
| 52 | |||
| 53 | if build_gir | ||
| 54 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ] | ||
| 55 | - app_gen_sources += [gnome.generate_gir(gstapp, | ||
| 56 | + app_gir = gnome.generate_gir(gstapp, | ||
| 57 | sources : app_sources + app_headers + [gstapp_c] + [gstapp_h], | ||
| 58 | namespace : 'GstApp', | ||
| 59 | nsversion : api_version, | ||
| 60 | @@ -43,7 +43,9 @@ if build_gir | ||
| 61 | install : true, | ||
| 62 | extra_args : gst_gir_extra_args, | ||
| 63 | dependencies : [gst_dep, gst_base_dep] | ||
| 64 | - )] | ||
| 65 | + ) | ||
| 66 | + | ||
| 67 | + app_gen_sources += app_gir | ||
| 68 | endif | ||
| 69 | |||
| 70 | app_dep = declare_dependency(link_with: gstapp, | ||
| 71 | diff --git a/gst-libs/gst/audio/meson.build b/gst-libs/gst/audio/meson.build | ||
| 72 | index 0e4efab2e..2a449d4bf 100644 | ||
| 73 | --- a/gst-libs/gst/audio/meson.build | ||
| 74 | +++ b/gst-libs/gst/audio/meson.build | ||
| 75 | @@ -153,7 +153,7 @@ gstaudio = library('gstaudio-@0@'.format(api_version), | ||
| 76 | |||
| 77 | if build_gir | ||
| 78 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/audio/audio.h' ] | ||
| 79 | - audio_gen_sources += [gnome.generate_gir(gstaudio, | ||
| 80 | + audio_gir = gnome.generate_gir(gstaudio, | ||
| 81 | sources : audio_src + audio_headers + [gstaudio_c] + [gstaudio_h], | ||
| 82 | namespace : 'GstAudio', | ||
| 83 | nsversion : api_version, | ||
| 84 | @@ -164,7 +164,8 @@ if build_gir | ||
| 85 | install : true, | ||
| 86 | extra_args : gst_gir_extra_args, | ||
| 87 | dependencies : gstaudio_deps | ||
| 88 | - )] | ||
| 89 | + ) | ||
| 90 | + audio_gen_sources += [audio_gir] | ||
| 91 | endif | ||
| 92 | |||
| 93 | audio_dep = declare_dependency(link_with : gstaudio, | ||
| 94 | diff --git a/gst-libs/gst/pbutils/meson.build b/gst-libs/gst/pbutils/meson.build | ||
| 95 | index 2faf62622..0e96722fd 100644 | ||
| 96 | --- a/gst-libs/gst/pbutils/meson.build | ||
| 97 | +++ b/gst-libs/gst/pbutils/meson.build | ||
| 98 | @@ -63,7 +63,7 @@ pbutils = library('gstpbutils-@0@'.format(api_version), | ||
| 99 | pbutils_gen_sources = [gstpbutils_h, gst_pbutils_version_h] | ||
| 100 | if build_gir | ||
| 101 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ] | ||
| 102 | - pbutils_gen_sources += [gnome.generate_gir(pbutils, | ||
| 103 | + pbutils_gir = gnome.generate_gir(pbutils, | ||
| 104 | sources : pbutils_sources + pbutils_headers + [gstpbutils_h, gst_pbutils_version_h], | ||
| 105 | namespace : 'GstPbutils', | ||
| 106 | nsversion : api_version, | ||
| 107 | @@ -74,7 +74,8 @@ if build_gir | ||
| 108 | install : true, | ||
| 109 | extra_args : gst_gir_extra_args, | ||
| 110 | dependencies : gstpbutils_deps | ||
| 111 | - )] | ||
| 112 | + ) | ||
| 113 | + pbutils_gen_sources += [pbutils_gir] | ||
| 114 | endif | ||
| 115 | |||
| 116 | pbutils_dep = declare_dependency(link_with : pbutils, | ||
| 117 | diff --git a/gst-libs/gst/rtp/meson.build b/gst-libs/gst/rtp/meson.build | ||
| 118 | index f47ec6592..7ea6658d5 100644 | ||
| 119 | --- a/gst-libs/gst/rtp/meson.build | ||
| 120 | +++ b/gst-libs/gst/rtp/meson.build | ||
| 121 | @@ -49,7 +49,7 @@ gst_rtp = library('gstrtp-@0@'.format(api_version), | ||
| 122 | rtp_gen_sources = [gstrtp_enum_h] | ||
| 123 | if build_gir | ||
| 124 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ] | ||
| 125 | - rtp_gen_sources += [gnome.generate_gir(gst_rtp, | ||
| 126 | + rtp_gir = gnome.generate_gir(gst_rtp, | ||
| 127 | sources : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h], | ||
| 128 | namespace : 'GstRtp', | ||
| 129 | nsversion : api_version, | ||
| 130 | @@ -60,7 +60,9 @@ if build_gir | ||
| 131 | install : true, | ||
| 132 | extra_args : gst_gir_extra_args, | ||
| 133 | dependencies : gstrtp_deps | ||
| 134 | - )] | ||
| 135 | + ) | ||
| 136 | + | ||
| 137 | + rtp_gen_sources += [rtp_gir] | ||
| 138 | endif | ||
| 139 | |||
| 140 | |||
| 141 | diff --git a/gst-libs/gst/rtsp/meson.build b/gst-libs/gst/rtsp/meson.build | ||
| 142 | index 27e309d5a..3632adceb 100644 | ||
| 143 | --- a/gst-libs/gst/rtsp/meson.build | ||
| 144 | +++ b/gst-libs/gst/rtsp/meson.build | ||
| 145 | @@ -54,7 +54,7 @@ gst_rtsp = library('gstrtsp-@0@'.format(api_version), | ||
| 146 | rtsp_gen_sources = [gstrtsp_h] | ||
| 147 | if build_gir | ||
| 148 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtsp/rtsp.h' ] | ||
| 149 | - rtsp_gen_sources += [gnome.generate_gir(gst_rtsp, | ||
| 150 | + rtsp_gir = gnome.generate_gir(gst_rtsp, | ||
| 151 | sources : rtsp_sources + rtsp_headers + [gstrtsp_c] + [gstrtsp_h], | ||
| 152 | namespace : 'GstRtsp', | ||
| 153 | nsversion : api_version, | ||
| 154 | @@ -65,7 +65,8 @@ if build_gir | ||
| 155 | install : true, | ||
| 156 | extra_args : gst_gir_extra_args, | ||
| 157 | dependencies : gstrtsp_deps + [sdp_dep] | ||
| 158 | - )] | ||
| 159 | + ) | ||
| 160 | + rtsp_gen_sources += [rtsp_gir] | ||
| 161 | endif | ||
| 162 | |||
| 163 | rtsp_dep = declare_dependency(link_with : gst_rtsp, | ||
| 164 | diff --git a/gst-libs/gst/sdp/meson.build b/gst-libs/gst/sdp/meson.build | ||
| 165 | index 62c18b732..24cdb5293 100644 | ||
| 166 | --- a/gst-libs/gst/sdp/meson.build | ||
| 167 | +++ b/gst-libs/gst/sdp/meson.build | ||
| 168 | @@ -23,7 +23,7 @@ gstsdp = library('gstsdp-@0@'.format(api_version), | ||
| 169 | sdp_gen_sources = [] | ||
| 170 | if build_gir | ||
| 171 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ] | ||
| 172 | - sdp_gen_sources += [gnome.generate_gir(gstsdp, | ||
| 173 | + sdp_gir = gnome.generate_gir(gstsdp, | ||
| 174 | sources : gst_sdp_sources + gst_sdp_headers, | ||
| 175 | namespace : 'GstSdp', | ||
| 176 | nsversion : api_version, | ||
| 177 | @@ -34,7 +34,9 @@ if build_gir | ||
| 178 | install : true, | ||
| 179 | extra_args : gst_gir_extra_args, | ||
| 180 | dependencies : rtsp_deps | ||
| 181 | - )] | ||
| 182 | + ) | ||
| 183 | + | ||
| 184 | + sdp_gen_sources += [sdp_gir] | ||
| 185 | endif | ||
| 186 | |||
| 187 | sdp_dep = declare_dependency(link_with: gstsdp, | ||
| 188 | diff --git a/gst-libs/gst/tag/meson.build b/gst-libs/gst/tag/meson.build | ||
| 189 | index 27e66fd63..5ec37392a 100644 | ||
| 190 | --- a/gst-libs/gst/tag/meson.build | ||
| 191 | +++ b/gst-libs/gst/tag/meson.build | ||
| 192 | @@ -93,7 +93,7 @@ gsttag = library('gsttag-@0@'.format(api_version), | ||
| 193 | |||
| 194 | if build_gir | ||
| 195 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/tag/tag.h' ] | ||
| 196 | - tag_gen_sources += [gnome.generate_gir(gsttag, | ||
| 197 | + tag_gir = gnome.generate_gir(gsttag, | ||
| 198 | sources : tag_sources + tag_headers + [gsttag_h] + [gsttag_c], | ||
| 199 | namespace : 'GstTag', | ||
| 200 | nsversion : api_version, | ||
| 201 | @@ -104,7 +104,8 @@ if build_gir | ||
| 202 | install : true, | ||
| 203 | extra_args : gst_gir_extra_args, | ||
| 204 | dependencies : tag_deps | ||
| 205 | - )] | ||
| 206 | + ) | ||
| 207 | + tag_gen_sources += [tag_gir] | ||
| 208 | endif | ||
| 209 | |||
| 210 | tag_dep = declare_dependency(link_with: gsttag, | ||
| 211 | diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build | ||
| 212 | index b4dfcdf65..036c3a6a7 100644 | ||
| 213 | --- a/gst-libs/gst/video/meson.build | ||
| 214 | +++ b/gst-libs/gst/video/meson.build | ||
| 215 | @@ -135,7 +135,7 @@ gstvideo = library('gstvideo-@0@'.format(api_version), | ||
| 216 | |||
| 217 | if build_gir | ||
| 218 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ] | ||
| 219 | - video_gen_sources += [gnome.generate_gir(gstvideo, | ||
| 220 | + video_gir = gnome.generate_gir(gstvideo, | ||
| 221 | sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h], | ||
| 222 | namespace : 'GstVideo', | ||
| 223 | nsversion : api_version, | ||
| 224 | @@ -146,7 +146,8 @@ if build_gir | ||
| 225 | install : true, | ||
| 226 | extra_args : gst_gir_extra_args, | ||
| 227 | dependencies : gstvideo_deps | ||
| 228 | - )] | ||
| 229 | + ) | ||
| 230 | + video_gen_sources += [video_gir] | ||
| 231 | endif | ||
| 232 | |||
| 233 | video_dep = declare_dependency(link_with : gstvideo, | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-viv-fb-Make-sure-config.h-is-included.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch index 731ba8733..b8fc8827e 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-viv-fb-Make-sure-config.h-is-included.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 616cf194dfd26818ed7b776321582b8e0ff9b3f1 Mon Sep 17 00:00:00 2001 | 1 | From 70a702af3a3a4afcadbc53d61c4c45f31f96b2cc Mon Sep 17 00:00:00 2001 |
| 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> |
| 3 | Date: Tue, 21 May 2019 14:01:11 +0200 | 3 | Date: Tue, 21 May 2019 14:01:11 +0200 |
| 4 | Subject: [PATCH] viv-fb: Make sure config.h is included | 4 | Subject: [PATCH] viv-fb: Make sure config.h is included |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-glimagesink-Downrank-to-marginal.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-glimagesink-Downrank-to-marginal.patch index fc67a4868..94a61465e 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-glimagesink-Downrank-to-marginal.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-glimagesink-Downrank-to-marginal.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f18f1206ec44f4154e60546ecb82823f7a6569d7 Mon Sep 17 00:00:00 2001 | 1 | From b975be9c4630536ec1315773be29900371d21930 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Thu, 24 Sep 2015 19:47:32 +0300 | 3 | Date: Thu, 24 Sep 2015 19:47:32 +0300 |
| 4 | Subject: [PATCH] glimagesink: Downrank to marginal | 4 | Subject: [PATCH] glimagesink: Downrank to marginal |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch new file mode 100644 index 000000000..0fa3dd30d --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From 1718197bf6ebf3d8784a55126609aa8770fff682 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Xavier Claessens <xavier.claessens@collabora.com> | ||
| 3 | Date: Mon, 26 Apr 2021 14:25:03 -0400 | ||
| 4 | Subject: [PATCH] gstgl: Fix build when Meson >= 0.58.0rc1 | ||
| 5 | |||
| 6 | "implicit_include_directories: false" now also means that current build | ||
| 7 | directory is not added to include paths by default any more. We have to | ||
| 8 | add it manually because we have some custom_target() that generate | ||
| 9 | headers in current build directory. | ||
| 10 | |||
| 11 | See https://github.com/mesonbuild/meson/issues/8700. | ||
| 12 | |||
| 13 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1125> | ||
| 14 | Upstream-Status: Backport | ||
| 15 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 16 | |||
| 17 | --- | ||
| 18 | gst-libs/gst/gl/meson.build | 15 ++++++++++++--- | ||
| 19 | 1 file changed, 12 insertions(+), 3 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
| 22 | index ae19d7aca..3ad7ddcf6 100644 | ||
| 23 | --- a/gst-libs/gst/gl/meson.build | ||
| 24 | +++ b/gst-libs/gst/gl/meson.build | ||
| 25 | @@ -1023,11 +1023,20 @@ if build_gstgl | ||
| 26 | command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@']) | ||
| 27 | gen_sources = [gl_enumtypes_h] | ||
| 28 | |||
| 29 | + common_args = gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'] | ||
| 30 | + | ||
| 31 | + # We have custom_target() that generate headers in the current build dir, | ||
| 32 | + # but with implicit_include_directories: false, meson >= 0.58.0 won't include | ||
| 33 | + # it by default. We cannot use include_directories('.') here because it would | ||
| 34 | + # also include current source dir which is what we want to avoid because | ||
| 35 | + # case-insensitive FS would include gst-libs/gl/egl/egl.h as EGL/egl.h. | ||
| 36 | + common_args += '-I@0@'.format(meson.current_build_dir()) | ||
| 37 | + | ||
| 38 | gstgl = library('gstgl-' + api_version, | ||
| 39 | gl_sources, gl_egl_sources, gl_x11_sources, gl_wayland_sources, gl_priv_sources, gl_enumtypes_c, gl_enumtypes_h, | ||
| 40 | - c_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], | ||
| 41 | - cpp_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], | ||
| 42 | - objc_args : gst_plugins_base_args + gl_cpp_args + gl_objc_args + ['-DBUILDING_GST_GL'], | ||
| 43 | + c_args : common_args, | ||
| 44 | + cpp_args : common_args, | ||
| 45 | + objc_args : common_args + gl_objc_args, | ||
| 46 | include_directories : [configinc, libsinc, gl_includes], | ||
| 47 | version : libversion, | ||
| 48 | soversion : soversion, | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend deleted file mode 100644 index d92bdf3ca..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
| 2 | PACKAGECONFIG_GL_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
| 3 | |||
| 4 | # For mainline BSP we need to enable 'gbm' Window system | ||
| 5 | PACKAGECONFIG_GL_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl gbm', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend new file mode 100644 index 000000000..1c62f31dc --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | PACKAGECONFIG_GL:imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
| 2 | PACKAGECONFIG_GL:imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
| 3 | |||
| 4 | # For mainline BSP we need to enable 'gbm' Window system | ||
| 5 | PACKAGECONFIG_GL:use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl gbm', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.2.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.0.imx.bb index db0b740fa..142e0ba55 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.2.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.0.imx.bb | |||
| @@ -1,28 +1,26 @@ | |||
| 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 2 | 2 | ||
| 3 | DESCRIPTION = "'Base' GStreamer plugins and helper libraries" | ||
| 4 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 5 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues" | ||
| 3 | LICENSE = "GPLv2+ & LGPLv2+" | 6 | LICENSE = "GPLv2+ & LGPLv2+" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d" |
| 5 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607" | ||
| 6 | 8 | ||
| 7 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-base.git;protocol=https" | 9 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-base.git;protocol=https" |
| 8 | SRCBRANCH = "MM_04.05.06_2008_L5.4.47" | 10 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
| 9 | SRCREV = "3c4aa2a58576d68f6e684efa58609665679c9969" | ||
| 10 | SRC_URI = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} \ | 11 | SRC_URI = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} \ |
| 11 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | 12 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ |
| 12 | file://0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch \ | 13 | file://0004-glimagesink-Downrank-to-marginal.patch \ |
| 13 | file://0002-meson-Add-variables-for-gir-files.patch \ | 14 | file://4ef5c91697a141fea7317aff7f0f28e5a861db99.patch \ |
| 14 | file://0005-viv-fb-Make-sure-config.h-is-included.patch \ | ||
| 15 | file://0009-glimagesink-Downrank-to-marginal.patch \ | ||
| 16 | file://0001-gst-libs-gst-gl-wayland-fix-meson-build.patch \ | ||
| 17 | file://0001-meson-viv-fb-code-must-link-against-libg2d.patch \ | ||
| 18 | " | 15 | " |
| 16 | SRCREV = "69554a26c932481acb7c5691038c367eca60e5bc" | ||
| 19 | 17 | ||
| 20 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 21 | 19 | ||
| 22 | DEPENDS += "iso-codes util-linux zlib" | 20 | DEPENDS += "iso-codes util-linux zlib" |
| 23 | DEPENDS_append_imxgpu2d = " virtual/libg2d" | 21 | DEPENDS:append:imxgpu2d = " virtual/libg2d" |
| 24 | 22 | ||
| 25 | inherit use-imx-headers gobject-introspection gtk-doc | 23 | inherit gobject-introspection use-imx-headers |
| 26 | 24 | ||
| 27 | DEFAULT_PREFERENCE = "-1" | 25 | DEFAULT_PREFERENCE = "-1" |
| 28 | 26 | ||
| @@ -36,7 +34,7 @@ PACKAGECONFIG ??= " \ | |||
| 36 | ${GSTREAMER_ORC} \ | 34 | ${GSTREAMER_ORC} \ |
| 37 | ${PACKAGECONFIG_GL} \ | 35 | ${PACKAGECONFIG_GL} \ |
| 38 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ | 36 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ |
| 39 | ogg pango png theora vorbis \ | 37 | jpeg ogg pango png theora vorbis \ |
| 40 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ | 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ |
| 41 | " | 39 | " |
| 42 | 40 | ||
| @@ -71,24 +69,22 @@ PACKAGECONFIG[egl] = ",,virtual/egl" | |||
| 71 | # OpenGL window systems (except for X11) | 69 | # OpenGL window systems (except for X11) |
| 72 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" | 70 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" |
| 73 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" | 71 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" |
| 72 | PACKAGECONFIG[dispmanx] = ",,virtual/libomxil" | ||
| 74 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" | 73 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" |
| 75 | 74 | ||
| 75 | OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}" | ||
| 76 | |||
| 76 | EXTRA_OEMESON += " \ | 77 | EXTRA_OEMESON += " \ |
| 78 | -Ddoc=disabled \ | ||
| 77 | -Dgl-graphene=disabled \ | 79 | -Dgl-graphene=disabled \ |
| 78 | ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ | 80 | ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ |
| 79 | ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ | 81 | ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ |
| 80 | ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ | 82 | ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ |
| 81 | -Dextra_imx_incdir=${STAGING_INCDIR_IMX} \ | 83 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ |
| 82 | " | 84 | " |
| 83 | 85 | ||
| 84 | GTKDOC_MESON_OPTION = "gtk_doc" | 86 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" |
| 85 | GTKDOC_MESON_ENABLE_FLAG = "enabled" | 87 | FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" |
| 86 | GTKDOC_MESON_DISABLE_FLAG = "disabled" | ||
| 87 | |||
| 88 | FILES_${PN} += "${libdir}/gstreamer-1.0/include" | ||
| 89 | FILES_${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" | ||
| 90 | |||
| 91 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
| 92 | 88 | ||
| 93 | def get_opengl_cmdline_list(switch_name, options, d): | 89 | def get_opengl_cmdline_list(switch_name, options, d): |
| 94 | selected_options = [] | 90 | selected_options = [] |
| @@ -100,3 +96,7 @@ def get_opengl_cmdline_list(switch_name, options, d): | |||
| 100 | return '-D' + switch_name + '=' + ','.join(selected_options) | 96 | return '-D' + switch_name + '=' + ','.join(selected_options) |
| 101 | else: | 97 | else: |
| 102 | return '' | 98 | return '' |
| 99 | |||
| 100 | CVE_PRODUCT += "gst-plugins-base" | ||
| 101 | |||
| 102 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend deleted file mode 100644 index 8565c6a53..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
| 2 | PACKAGECONFIG_GL_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
| 3 | PACKAGECONFIG_GL_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.0.imx.bb index 8413bf103..706fdb614 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.0.imx.bb | |||
| @@ -1,13 +1,12 @@ | |||
| 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 2 | 2 | ||
| 3 | |||
| 4 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-good.git;protocol=https" | 3 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-good.git;protocol=https" |
| 5 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | 4 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
| 6 | 5 | ||
| 7 | SRC_URI = " \ | 6 | SRC_URI = " \ |
| 8 | ${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} \ | 7 | ${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} \ |
| 9 | " | 8 | " |
| 10 | SRCREV = "6005e8199ea19878f269b058ffbbbcaa314472d8" | 9 | SRCREV = "3160acd37304f67238b8ceae2a95ee4951f9c718" |
| 11 | 10 | ||
| 12 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
| 13 | 12 | ||
| @@ -15,12 +14,11 @@ S = "${WORKDIR}/git" | |||
| 15 | 14 | ||
| 16 | LICENSE = "GPLv2+ & LGPLv2.1+" | 15 | LICENSE = "GPLv2+ & LGPLv2.1+" |
| 17 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 16 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 18 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \ | ||
| 19 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" | 17 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" |
| 20 | 18 | ||
| 21 | DEPENDS += "gstreamer1.0-plugins-base libcap zlib" | 19 | DEPENDS += "gstreamer1.0-plugins-base libcap zlib" |
| 22 | RPROVIDES_${PN}-pulseaudio += "${PN}-pulse" | 20 | RPROVIDES:${PN}-pulseaudio += "${PN}-pulse" |
| 23 | RPROVIDES_${PN}-soup += "${PN}-souphttpsrc" | 21 | RPROVIDES:${PN}-soup += "${PN}-souphttpsrc" |
| 24 | 22 | ||
| 25 | PACKAGECONFIG ??= " \ | 23 | PACKAGECONFIG ??= " \ |
| 26 | ${GSTREAMER_ORC} \ | 24 | ${GSTREAMER_ORC} \ |
| @@ -74,6 +72,6 @@ EXTRA_OEMESON += " \ | |||
| 74 | -Dwaveform=disabled \ | 72 | -Dwaveform=disabled \ |
| 75 | " | 73 | " |
| 76 | 74 | ||
| 77 | FILES_${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs" | 75 | FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs" |
| 78 | 76 | ||
| 79 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 77 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb index 7c6025dd9..26f25d723 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb | |||
| @@ -8,9 +8,9 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base libimxdmabuffer" | |||
| 8 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder | 8 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder |
| 9 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is | 9 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is |
| 10 | # built (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) | 10 | # built (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) |
| 11 | RDEPENDS_gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good gstreamer1.0-plugins-bad" | 11 | RDEPENDS:gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good gstreamer1.0-plugins-bad" |
| 12 | RDEPENDS_gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" | 12 | RDEPENDS:gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" |
| 13 | RDEPENDS_gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" | 13 | RDEPENDS:gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" |
| 14 | 14 | ||
| 15 | PV .= "+git${SRCPV}" | 15 | PV .= "+git${SRCPV}" |
| 16 | 16 | ||
| @@ -28,22 +28,22 @@ inherit pkgconfig meson use-imx-headers | |||
| 28 | # is needed to improve performance. | 28 | # is needed to improve performance. |
| 29 | LIBG2D_DPU_OPTION = "-Dg2d-based-on-dpu=false" | 29 | LIBG2D_DPU_OPTION = "-Dg2d-based-on-dpu=false" |
| 30 | LIBG2D_DEPENDENCIES = "virtual/libg2d" | 30 | LIBG2D_DEPENDENCIES = "virtual/libg2d" |
| 31 | LIBG2D_DPU_OPTION_imxdpu = "-Dg2d-based-on-dpu=true" | 31 | LIBG2D_DPU_OPTION:imxdpu = "-Dg2d-based-on-dpu=true" |
| 32 | LIBG2D_DEPENDENCIES_imxdpu = "virtual/libg2d libdrm" | 32 | LIBG2D_DEPENDENCIES:imxdpu = "virtual/libg2d libdrm" |
| 33 | 33 | ||
| 34 | EXTRA_OEMESON += "-Dimx-headers-path=${STAGING_INCDIR_IMX}" | 34 | EXTRA_OEMESON += "-Dimx-headers-path=${STAGING_INCDIR_IMX}" |
| 35 | 35 | ||
| 36 | PACKAGECONFIG ?= "uniaudiodec" | 36 | PACKAGECONFIG ?= "uniaudiodec" |
| 37 | PACKAGECONFIG_append_imxgpu2d = " g2d" | 37 | PACKAGECONFIG:append:imxgpu2d = " g2d" |
| 38 | PACKAGECONFIG_append_imxvpu = " vpu" | 38 | PACKAGECONFIG:append:imxvpu = " vpu" |
| 39 | PACKAGECONFIG_append_imxipu = " ipu" | 39 | PACKAGECONFIG:append:imxipu = " ipu" |
| 40 | PACKAGECONFIG_append_imxpxp = " pxp" | 40 | PACKAGECONFIG:append:imxpxp = " pxp" |
| 41 | # The custom imxv4l2 elements are only available on the i.MX6. | 41 | # The custom imxv4l2 elements are only available on the i.MX6. |
| 42 | # The 2D blitter sinks require an MXC framebuffer, which | 42 | # The 2D blitter sinks require an MXC framebuffer, which |
| 43 | # is not available anymore on the i.MX8 (since these SoCs | 43 | # is not available anymore on the i.MX8 (since these SoCs |
| 44 | # now use KMS instead of the old Linux framebuffer). | 44 | # now use KMS instead of the old Linux framebuffer). |
| 45 | PACKAGECONFIG_append_mx6 = " imx2dvideosink v4l2" | 45 | PACKAGECONFIG:append:mx6 = " imx2dvideosink v4l2" |
| 46 | PACKAGECONFIG_append_mx7 = " imx2dvideosink" | 46 | PACKAGECONFIG:append:mx7 = " imx2dvideosink" |
| 47 | 47 | ||
| 48 | PACKAGECONFIG[g2d] = "-Dg2d=enabled ${LIBG2D_DPU_OPTION},-Dg2d=disabled,${LIBG2D_DEPENDENCIES}" | 48 | PACKAGECONFIG[g2d] = "-Dg2d=enabled ${LIBG2D_DPU_OPTION},-Dg2d=disabled,${LIBG2D_DEPENDENCIES}" |
| 49 | PACKAGECONFIG[pxp] = "-Dpxp=enabled,-Dpxp=disabled," | 49 | PACKAGECONFIG[pxp] = "-Dpxp=enabled,-Dpxp=disabled," |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.18.0.bb index 2a1cc3fdc..65ac1636f 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.16.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.18.0.bb | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 2 | 2 | ||
| 3 | DESCRIPTION = "'Ugly GStreamer plugins" | ||
| 4 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 5 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/issues" | ||
| 6 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 4 | file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068" | 8 | file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068" |
| 5 | 9 | ||
| @@ -7,10 +11,9 @@ LICENSE = "GPLv2+ & LGPLv2.1+ & LGPLv2+" | |||
| 7 | LICENSE_FLAGS = "commercial" | 11 | LICENSE_FLAGS = "commercial" |
| 8 | 12 | ||
| 9 | SRC_URI = " \ | 13 | SRC_URI = " \ |
| 10 | http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ | 14 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ |
| 11 | " | 15 | " |
| 12 | SRC_URI[md5sum] = "1ec343c58d4b17d682f7befa8453c11c" | 16 | SRC_URI[sha256sum] = "686644e45e08258ae240c4519376668ad8d34ea6d0f6ab556473c317bfb7e082" |
| 13 | SRC_URI[sha256sum] = "e30964c5f031c32289e0b25e176c3c95a5737f2052dfc81d0f7427ef0233a4c2" | ||
| 14 | 17 | ||
| 15 | S = "${WORKDIR}/gst-plugins-ugly-${PV}" | 18 | S = "${WORKDIR}/gst-plugins-ugly-${PV}" |
| 16 | 19 | ||
| @@ -32,8 +35,9 @@ PACKAGECONFIG[mpeg2dec] = "-Dmpeg2dec=enabled,-Dmpeg2dec=disabled,mpeg2dec" | |||
| 32 | PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264" | 35 | PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264" |
| 33 | 36 | ||
| 34 | EXTRA_OEMESON += " \ | 37 | EXTRA_OEMESON += " \ |
| 38 | -Ddoc=disabled \ | ||
| 35 | -Dsidplay=disabled \ | 39 | -Dsidplay=disabled \ |
| 36 | " | 40 | " |
| 37 | 41 | ||
| 38 | FILES_${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" | 42 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" |
| 39 | FILES_${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" | 43 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc b/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc deleted file mode 100644 index b69806704..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | inherit ptest-gnome | ||
| 2 | |||
| 3 | TEST_FILES_PATH = "${datadir}/installed-tests/gstreamer-1.0/test-files" | ||
| 4 | RUN_PTEST_FILE = "${D}${PTEST_PATH}/run-ptest" | ||
| 5 | |||
| 6 | EXTRA_OEMESON += "-Dtest-files-path=${TEST_FILES_PATH}" | ||
| 7 | |||
| 8 | GST_TEST_SUITE_NAME ?= "gstreamer-1.0" | ||
| 9 | |||
| 10 | # Using do_install_ptest_base instead of do_install_ptest, since | ||
| 11 | # the default do_install_ptest_base is hardcoded to expect Makefiles. | ||
| 12 | do_install_ptest_base() { | ||
| 13 | # Generate run-ptest file | ||
| 14 | echo "#!/usr/bin/env sh" > "${RUN_PTEST_FILE}" | ||
| 15 | echo "gnome-desktop-testing-runner ${GST_TEST_SUITE_NAME}" >> "${RUN_PTEST_FILE}" | ||
| 16 | chmod 0755 "${RUN_PTEST_FILE}" | ||
| 17 | |||
| 18 | # Install additional files required by tests | ||
| 19 | if [ -d "${S}/tests/files" ] ; then | ||
| 20 | install -d "${D}/${TEST_FILES_PATH}" | ||
| 21 | install -m 0644 "${S}/tests/files"/* "${D}/${TEST_FILES_PATH}" | ||
| 22 | fi | ||
| 23 | } | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.18.0.bb index 0a3c35ffd..4ac30c288 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.16.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.18.0.bb | |||
| @@ -8,12 +8,11 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" | |||
| 8 | 8 | ||
| 9 | PNREAL = "gst-rtsp-server" | 9 | PNREAL = "gst-rtsp-server" |
| 10 | 10 | ||
| 11 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \ | 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \ |
| 12 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | ||
| 13 | " | 12 | " |
| 14 | 13 | ||
| 15 | SRC_URI[md5sum] = "adc4460239ec2eccf58ad9752ce53bfd" | 14 | SRC_URI[md5sum] = "77fe28c702a83566811ab5c7bbe99ab2" |
| 16 | SRC_URI[sha256sum] = "198e9eec1a3e32dc810d3fbf3a714850a22c6288d4a5c8e802c5ff984af03f19" | 15 | SRC_URI[sha256sum] = "2ad19311054cbf2df0d0622936bc703dedc06ced706df46a3d3a3ea5a4b7c70f" |
| 17 | 16 | ||
| 18 | S = "${WORKDIR}/${PNREAL}-${PV}" | 17 | S = "${WORKDIR}/${PNREAL}-${PV}" |
| 19 | 18 | ||
| @@ -28,5 +27,4 @@ GIR_MESON_ENABLE_FLAG = "enabled" | |||
| 28 | GIR_MESON_DISABLE_FLAG = "disabled" | 27 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 29 | 28 | ||
| 30 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well | 29 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well |
| 31 | LIBV = "1.0" | ||
| 32 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc | 30 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch index 67a872cdd..23ebd5c60 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch | |||
| @@ -1,25 +1,44 @@ | |||
| 1 | From a1d7c582392c8bc87fa9411af77b20e011944357 Mon Sep 17 00:00:00 2001 | 1 | From fd8f49dba8c09d47425da80f5faab3bfa4a7c962 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Jose Quaresma <quaresma.jose@gmail.com> |
| 3 | Date: Thu, 25 Jan 2018 17:55:02 +0200 | 3 | Date: Sat, 10 Oct 2020 19:09:03 +0000 |
| 4 | Subject: [PATCH] gst/gstpluginloader.c: when env var is set do not fall | 4 | Subject: [PATCH 1/3] gstpluginloader: when env var is set do not fall through |
| 5 | through to system plugin scanner | 5 | to system plugin scanner |
| 6 | 6 | ||
| 7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. | 7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. |
| 8 | 8 | ||
| 9 | Falling through to the one installed on the system is problamatic in cross-compilation | 9 | Falling through to the one installed on the system is problamatic in cross-compilation |
| 10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. | 10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. |
| 11 | 11 | ||
| 12 | Upstream-Status: Pending | 12 | taken from: |
| 13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 13 | http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch?id=0db7ba34ca41b107042306d13a6f0162885c123b |
| 14 | |||
| 15 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/669> | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/9f958058697e6fbf5bde325228034572331d1a3a] | ||
| 18 | |||
| 19 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 14 | --- | 20 | --- |
| 15 | gst/gstpluginloader.c | 4 +--- | 21 | gst/gstpluginloader.c | 15 +++++++-------- |
| 16 | 1 file changed, 1 insertion(+), 3 deletions(-) | 22 | 1 file changed, 7 insertions(+), 8 deletions(-) |
| 17 | 23 | ||
| 18 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c | 24 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c |
| 19 | index 430829d..3a75731 100644 | 25 | index d1e404d98..c626bf263 100644 |
| 20 | --- a/gst/gstpluginloader.c | 26 | --- a/gst/gstpluginloader.c |
| 21 | +++ b/gst/gstpluginloader.c | 27 | +++ b/gst/gstpluginloader.c |
| 22 | @@ -471,9 +471,7 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | 28 | @@ -464,20 +464,19 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) |
| 29 | if (loader->child_running) | ||
| 30 | return TRUE; | ||
| 31 | |||
| 32 | - /* Find the gst-plugin-scanner: first try the env-var if it is set, | ||
| 33 | - * otherwise use the installed version */ | ||
| 34 | + /* Find the gst-plugin-scanner */ | ||
| 35 | env = g_getenv ("GST_PLUGIN_SCANNER_1_0"); | ||
| 36 | if (env == NULL) | ||
| 37 | env = g_getenv ("GST_PLUGIN_SCANNER"); | ||
| 38 | |||
| 39 | if (env != NULL && *env != '\0') { | ||
| 40 | + /* use the env-var if it is set */ | ||
| 41 | GST_LOG ("Trying GST_PLUGIN_SCANNER env var: %s", env); | ||
| 23 | helper_bin = g_strdup (env); | 42 | helper_bin = g_strdup (env); |
| 24 | res = gst_plugin_loader_try_helper (loader, helper_bin); | 43 | res = gst_plugin_loader_try_helper (loader, helper_bin); |
| 25 | g_free (helper_bin); | 44 | g_free (helper_bin); |
| @@ -27,9 +46,24 @@ index 430829d..3a75731 100644 | |||
| 27 | - | 46 | - |
| 28 | - if (!res) { | 47 | - if (!res) { |
| 29 | + } else { | 48 | + } else { |
| 49 | + /* use the installed version */ | ||
| 30 | GST_LOG ("Trying installed plugin scanner"); | 50 | GST_LOG ("Trying installed plugin scanner"); |
| 31 | 51 | ||
| 32 | #ifdef G_OS_WIN32 | 52 | #ifdef G_OS_WIN32 |
| 53 | @@ -497,10 +496,10 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | ||
| 54 | #endif | ||
| 55 | res = gst_plugin_loader_try_helper (loader, helper_bin); | ||
| 56 | g_free (helper_bin); | ||
| 57 | + } | ||
| 58 | |||
| 59 | - if (!res) { | ||
| 60 | - GST_INFO ("No gst-plugin-scanner available, or not working"); | ||
| 61 | - } | ||
| 62 | + if (!res) { | ||
| 63 | + GST_INFO ("No gst-plugin-scanner available, or not working"); | ||
| 64 | } | ||
| 65 | |||
| 66 | return loader->child_running; | ||
| 33 | -- | 67 | -- |
| 34 | 2.15.1 | 68 | 2.29.2 |
| 35 | 69 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch new file mode 100644 index 000000000..96abef17b --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | From 598d108e2c438d8f2ecd3bf948fa3ebbd3681490 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
| 3 | Date: Fri, 14 Aug 2020 16:38:26 +0100 | ||
| 4 | Subject: [PATCH 2/3] Remove unused valgrind detection | ||
| 5 | |||
| 6 | Having this just to log a debug message in case we're | ||
| 7 | running inside valgrind doesn't seem very useful, and | ||
| 8 | the code that used to use this no longer exists it seems. | ||
| 9 | |||
| 10 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/595> | ||
| 11 | |||
| 12 | Upstream-Status: Backport [a2cbf75523cdf8a4df1baa7007d86ef455972245] | ||
| 13 | |||
| 14 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 15 | --- | ||
| 16 | gst/gst_private.h | 2 -- | ||
| 17 | gst/gstinfo.c | 39 --------------------------------------- | ||
| 18 | meson.build | 1 - | ||
| 19 | 3 files changed, 42 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/gst/gst_private.h b/gst/gst_private.h | ||
| 22 | index eefd044d9..8252ede51 100644 | ||
| 23 | --- a/gst/gst_private.h | ||
| 24 | +++ b/gst/gst_private.h | ||
| 25 | @@ -116,8 +116,6 @@ G_GNUC_INTERNAL gboolean _priv_plugin_deps_env_vars_changed (GstPlugin * plugin | ||
| 26 | |||
| 27 | G_GNUC_INTERNAL gboolean _priv_plugin_deps_files_changed (GstPlugin * plugin); | ||
| 28 | |||
| 29 | -G_GNUC_INTERNAL gboolean _priv_gst_in_valgrind (void); | ||
| 30 | - | ||
| 31 | /* init functions called from gst_init(). */ | ||
| 32 | G_GNUC_INTERNAL void _priv_gst_quarks_initialize (void); | ||
| 33 | G_GNUC_INTERNAL void _priv_gst_mini_object_initialize (void); | ||
| 34 | diff --git a/gst/gstinfo.c b/gst/gstinfo.c | ||
| 35 | index 5d317877b..097f8b20d 100644 | ||
| 36 | --- a/gst/gstinfo.c | ||
| 37 | +++ b/gst/gstinfo.c | ||
| 38 | @@ -305,36 +305,6 @@ static gboolean pretty_tags = PRETTY_TAGS_DEFAULT; | ||
| 39 | static volatile gint G_GNUC_MAY_ALIAS __default_level = GST_LEVEL_DEFAULT; | ||
| 40 | static volatile gint G_GNUC_MAY_ALIAS __use_color = GST_DEBUG_COLOR_MODE_ON; | ||
| 41 | |||
| 42 | -/* FIXME: export this? */ | ||
| 43 | -gboolean | ||
| 44 | -_priv_gst_in_valgrind (void) | ||
| 45 | -{ | ||
| 46 | - static enum | ||
| 47 | - { | ||
| 48 | - GST_VG_UNCHECKED, | ||
| 49 | - GST_VG_NO_VALGRIND, | ||
| 50 | - GST_VG_INSIDE | ||
| 51 | - } | ||
| 52 | - in_valgrind = GST_VG_UNCHECKED; | ||
| 53 | - | ||
| 54 | - if (in_valgrind == GST_VG_UNCHECKED) { | ||
| 55 | -#ifdef HAVE_VALGRIND_VALGRIND_H | ||
| 56 | - if (RUNNING_ON_VALGRIND) { | ||
| 57 | - GST_CAT_INFO (GST_CAT_GST_INIT, "we're running inside valgrind"); | ||
| 58 | - in_valgrind = GST_VG_INSIDE; | ||
| 59 | - } else { | ||
| 60 | - GST_CAT_LOG (GST_CAT_GST_INIT, "not doing extra valgrind stuff"); | ||
| 61 | - in_valgrind = GST_VG_NO_VALGRIND; | ||
| 62 | - } | ||
| 63 | -#else | ||
| 64 | - in_valgrind = GST_VG_NO_VALGRIND; | ||
| 65 | -#endif | ||
| 66 | - g_assert (in_valgrind == GST_VG_NO_VALGRIND || | ||
| 67 | - in_valgrind == GST_VG_INSIDE); | ||
| 68 | - } | ||
| 69 | - return (in_valgrind == GST_VG_INSIDE); | ||
| 70 | -} | ||
| 71 | - | ||
| 72 | static gchar * | ||
| 73 | _replace_pattern_in_gst_debug_file_name (gchar * name, const char *token, | ||
| 74 | guint val) | ||
| 75 | @@ -463,9 +433,6 @@ _priv_gst_debug_init (void) | ||
| 76 | _priv_GST_CAT_PROTECTION = | ||
| 77 | _gst_debug_category_new ("GST_PROTECTION", 0, "protection"); | ||
| 78 | |||
| 79 | - /* print out the valgrind message if we're in valgrind */ | ||
| 80 | - _priv_gst_in_valgrind (); | ||
| 81 | - | ||
| 82 | env = g_getenv ("GST_DEBUG_OPTIONS"); | ||
| 83 | if (env != NULL) { | ||
| 84 | if (strstr (env, "full_tags") || strstr (env, "full-tags")) | ||
| 85 | @@ -2503,12 +2470,6 @@ gst_debug_construct_win_color (guint colorinfo) | ||
| 86 | return 0; | ||
| 87 | } | ||
| 88 | |||
| 89 | -gboolean | ||
| 90 | -_priv_gst_in_valgrind (void) | ||
| 91 | -{ | ||
| 92 | - return FALSE; | ||
| 93 | -} | ||
| 94 | - | ||
| 95 | void | ||
| 96 | _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, | ||
| 97 | const gchar * func, gint line, GObject * obj, const gchar * msg, | ||
| 98 | diff --git a/meson.build b/meson.build | ||
| 99 | index ce1921aa4..7a84d0981 100644 | ||
| 100 | --- a/meson.build | ||
| 101 | +++ b/meson.build | ||
| 102 | @@ -200,7 +200,6 @@ check_headers = [ | ||
| 103 | 'sys/wait.h', | ||
| 104 | 'ucontext.h', | ||
| 105 | 'unistd.h', | ||
| 106 | - 'valgrind/valgrind.h', | ||
| 107 | 'sys/resource.h', | ||
| 108 | 'sys/uio.h', | ||
| 109 | ] | ||
| 110 | -- | ||
| 111 | 2.29.2 | ||
| 112 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch deleted file mode 100644 index 1ed7198a5..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 35db4a2433fbdf8612cf98b5aab5b14aeb5372f8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
| 3 | Date: Thu, 17 Oct 2019 12:13:35 +0100 | ||
| 4 | Subject: [PATCH] meson: build gir even when cross-compiling if introspection | ||
| 5 | was enabled explicitly | ||
| 6 | |||
| 7 | This can be made to work in certain circumstances when | ||
| 8 | cross-compiling, so default to not building g-i stuff | ||
| 9 | when cross-compiling, but allow it if introspection was | ||
| 10 | enabled explicitly via -Dintrospection=enabled. | ||
| 11 | |||
| 12 | Fixes #454 and #381. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [35db4a2433fbdf8612cf98b5aab5b14aeb5372f8] | ||
| 15 | |||
| 16 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 17 | --- | ||
| 18 | meson.build | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/meson.build b/meson.build | ||
| 22 | index 90d98d8eb..a47e7f34e 100644 | ||
| 23 | --- a/meson.build | ||
| 24 | +++ b/meson.build | ||
| 25 | @@ -466,7 +466,7 @@ rt_lib = cc.find_library('rt', required : false) | ||
| 26 | gir = find_program('g-ir-scanner', required : get_option('introspection')) | ||
| 27 | gnome = import('gnome') | ||
| 28 | |||
| 29 | -build_gir = gir.found() and not meson.is_cross_build() | ||
| 30 | +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) | ||
| 31 | |||
| 32 | gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ | ||
| 33 | 'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \ | ||
| 34 | -- | ||
| 35 | 2.17.1 | ||
| 36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch deleted file mode 100644 index f553340f4..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch +++ /dev/null | |||
| @@ -1,74 +0,0 @@ | |||
| 1 | From f6c7973c03d9ba7dab60c496e768c5e6c4ee824c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 3 | Date: Sun, 20 Oct 2019 10:36:44 +0200 | ||
| 4 | Subject: [PATCH] meson: Add valgrind feature | ||
| 5 | |||
| 6 | This allows for enabling/disabling Valgrind support. Since Valgrind is | ||
| 7 | an external dependency, such a feature is needed by build environemnts | ||
| 8 | such as Yocto to make sure builds are deterministic. These changes also | ||
| 9 | add more Valgrind specific configure log output. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 14 | --- | ||
| 15 | meson.build | 23 ++++++++++++++++++++++- | ||
| 16 | meson_options.txt | 1 + | ||
| 17 | 2 files changed, 23 insertions(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/meson.build b/meson.build | ||
| 20 | index b55ecc5..4751761 100644 | ||
| 21 | --- a/meson.build | ||
| 22 | +++ b/meson.build | ||
| 23 | @@ -199,7 +199,6 @@ check_headers = [ | ||
| 24 | 'sys/wait.h', | ||
| 25 | 'ucontext.h', | ||
| 26 | 'unistd.h', | ||
| 27 | - 'valgrind/valgrind.h', | ||
| 28 | 'sys/resource.h', | ||
| 29 | ] | ||
| 30 | |||
| 31 | @@ -214,6 +213,28 @@ foreach h : check_headers | ||
| 32 | endif | ||
| 33 | endforeach | ||
| 34 | |||
| 35 | +valgrind_option = get_option('valgrind') | ||
| 36 | +if valgrind_option.disabled() | ||
| 37 | + message('Valgrind support not requested; disabled.') | ||
| 38 | +else | ||
| 39 | + valgrind_header = 'valgrind/valgrind.h' | ||
| 40 | + has_valgrind_header = cc.has_header(valgrind_header) | ||
| 41 | + if has_valgrind_header | ||
| 42 | + message('Valgrind support requested, and header ' + valgrind_header + \ | ||
| 43 | + ' found. Enabled Valgrind support.') | ||
| 44 | + define = 'HAVE_' + valgrind_header.underscorify().to_upper() | ||
| 45 | + cdata.set(define, 1) | ||
| 46 | + else | ||
| 47 | + if valgrind_option.enabled() | ||
| 48 | + error('Valgrind support requested and set as required, but header ' + \ | ||
| 49 | + valgrind_header + ' not found.') | ||
| 50 | + else | ||
| 51 | + message('Valgrind support requested, but header ' + valgrind_header + \ | ||
| 52 | + ' not found. Disabling Valgrind support.') | ||
| 53 | + endif | ||
| 54 | + endif | ||
| 55 | +endif | ||
| 56 | + | ||
| 57 | if cc.has_member('struct tm', 'tm_gmtoff', prefix : '#include <time.h>') | ||
| 58 | cdata.set('HAVE_TM_GMTOFF', 1) | ||
| 59 | endif | ||
| 60 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 61 | index e7ff7ba..8afde39 100644 | ||
| 62 | --- a/meson_options.txt | ||
| 63 | +++ b/meson_options.txt | ||
| 64 | @@ -19,6 +19,7 @@ option('memory-alignment', type: 'combo', | ||
| 65 | |||
| 66 | # Feature options | ||
| 67 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
| 68 | +option('valgrind', type : 'feature', value : 'auto', description : 'Enable Valgrind support') | ||
| 69 | option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces') | ||
| 70 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
| 71 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
| 72 | -- | ||
| 73 | 2.17.1 | ||
| 74 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch new file mode 100644 index 000000000..e0e64e2c7 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 1db36347d05d88835519368442e9aa89c64091ad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Seungha Yang <seungha@centricular.com> | ||
| 3 | Date: Tue, 15 Sep 2020 00:54:58 +0900 | ||
| 4 | Subject: [PATCH] tests: seek: Don't use too strict timeout for validation | ||
| 5 | |||
| 6 | Expected segment-done message might not be seen within expected | ||
| 7 | time if system is not powerful enough. | ||
| 8 | |||
| 9 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/625> | ||
| 10 | |||
| 11 | Upstream-Status: Backport [https://cgit.freedesktop.org/gstreamer/gstreamer/commit?id=f44312ae5d831438fcf8041162079c65321c588c] | ||
| 12 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
| 13 | --- | ||
| 14 | tests/check/pipelines/seek.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/tests/check/pipelines/seek.c b/tests/check/pipelines/seek.c | ||
| 18 | index 28bb8846d..5f7447bc5 100644 | ||
| 19 | --- a/tests/check/pipelines/seek.c | ||
| 20 | +++ b/tests/check/pipelines/seek.c | ||
| 21 | @@ -521,7 +521,7 @@ GST_START_TEST (test_loopback_2) | ||
| 22 | |||
| 23 | GST_INFO ("wait for segment done message"); | ||
| 24 | |||
| 25 | - msg = gst_bus_timed_pop_filtered (bus, (GstClockTime) 2 * GST_SECOND, | ||
| 26 | + msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, | ||
| 27 | GST_MESSAGE_SEGMENT_DONE | GST_MESSAGE_ERROR); | ||
| 28 | fail_unless (msg, "no message within the timed window"); | ||
| 29 | fail_unless_equals_string (GST_MESSAGE_TYPE_NAME (msg), "segment-done"); | ||
| 30 | -- | ||
| 31 | 2.29.2 | ||
| 32 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch deleted file mode 100644 index 0e6c44ea3..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch +++ /dev/null | |||
| @@ -1,257 +0,0 @@ | |||
| 1 | From b843400284751968862751dfe93853f151551c64 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 3 | Date: Fri, 25 Oct 2019 00:06:26 +0200 | ||
| 4 | Subject: [PATCH] meson: Add option for installed tests | ||
| 5 | |||
| 6 | This adds an option for producing installed versions of the unit tests. | ||
| 7 | These versions don't need meson to run (only a small shell script). This | ||
| 8 | makes it easier to run cross compiled tests on a target machine. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 13 | --- | ||
| 14 | build-aux/gen-installed-test-desc.py | 18 ++++++ | ||
| 15 | build-aux/gen-installed-test-shscript.py | 25 ++++++++ | ||
| 16 | meson_options.txt | 2 + | ||
| 17 | tests/check/meson.build | 46 +++++++++++++- | ||
| 18 | tests/files/testfile | 80 ++++++++++++++++++++++++ | ||
| 19 | 5 files changed, 170 insertions(+), 1 deletion(-) | ||
| 20 | create mode 100644 build-aux/gen-installed-test-desc.py | ||
| 21 | create mode 100644 build-aux/gen-installed-test-shscript.py | ||
| 22 | create mode 100644 tests/files/testfile | ||
| 23 | |||
| 24 | diff --git a/build-aux/gen-installed-test-desc.py b/build-aux/gen-installed-test-desc.py | ||
| 25 | new file mode 100644 | ||
| 26 | index 0000000..69e8a0f | ||
| 27 | --- /dev/null | ||
| 28 | +++ b/build-aux/gen-installed-test-desc.py | ||
| 29 | @@ -0,0 +1,18 @@ | ||
| 30 | +import sys | ||
| 31 | +import os | ||
| 32 | +import argparse | ||
| 33 | + | ||
| 34 | +def write_template(filename, data): | ||
| 35 | + with open(filename, 'w') as f: | ||
| 36 | + f.write(data) | ||
| 37 | + | ||
| 38 | +def build_template(testdir, testname): | ||
| 39 | + return "[Test]\nType=session\nExec={}\n".format(os.path.join(testdir, testname)) | ||
| 40 | + | ||
| 41 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
| 42 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
| 43 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
| 44 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
| 45 | +args = argparser.parse_args() | ||
| 46 | + | ||
| 47 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
| 48 | diff --git a/build-aux/gen-installed-test-shscript.py b/build-aux/gen-installed-test-shscript.py | ||
| 49 | new file mode 100644 | ||
| 50 | index 0000000..5da86fb | ||
| 51 | --- /dev/null | ||
| 52 | +++ b/build-aux/gen-installed-test-shscript.py | ||
| 53 | @@ -0,0 +1,25 @@ | ||
| 54 | +import sys | ||
| 55 | +import os | ||
| 56 | +import argparse | ||
| 57 | + | ||
| 58 | +def write_template(filename, data): | ||
| 59 | + with open(filename, 'w') as f: | ||
| 60 | + f.write(data) | ||
| 61 | + | ||
| 62 | +def build_template(testdir, testname): | ||
| 63 | + return ''.join([ | ||
| 64 | + "#!/usr/bin/env sh\n", | ||
| 65 | + "export GST_STATE_IGNORE_ELEMENTS=''\n", | ||
| 66 | + "export CK_DEFAULT_TIMEOUT=20\n", | ||
| 67 | + "export GST_PLUGIN_LOADING_WHITELIST='gstreamer'\n", | ||
| 68 | + "{}\n".format(os.path.join(testdir, testname)), | ||
| 69 | + ]) | ||
| 70 | + | ||
| 71 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
| 72 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
| 73 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
| 74 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
| 75 | +args = argparser.parse_args() | ||
| 76 | + | ||
| 77 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
| 78 | +os.chmod(args.output, 0o755) | ||
| 79 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 80 | index 8afde39..8884dcc 100644 | ||
| 81 | --- a/meson_options.txt | ||
| 82 | +++ b/meson_options.txt | ||
| 83 | @@ -16,6 +16,8 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso | ||
| 84 | option('memory-alignment', type: 'combo', | ||
| 85 | choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], | ||
| 86 | value: 'malloc') | ||
| 87 | +option('installed-tests', type : 'boolean', value : false, description : 'enable installed tests') | ||
| 88 | +option('test-files-path', type : 'string', description : 'Path where to find test files') | ||
| 89 | |||
| 90 | # Feature options | ||
| 91 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
| 92 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 93 | index 04da83f..2db7f76 100644 | ||
| 94 | --- a/tests/check/meson.build | ||
| 95 | +++ b/tests/check/meson.build | ||
| 96 | @@ -118,11 +118,17 @@ if add_languages('cpp', required : false) | ||
| 97 | ] | ||
| 98 | endif | ||
| 99 | |||
| 100 | +test_files_path = get_option('test-files-path') | ||
| 101 | +if test_files_path == '' | ||
| 102 | + test_files_path = meson.current_source_dir() + '/../files' | ||
| 103 | +endif | ||
| 104 | +message('Using path "@0@" as the path to read test files from'.format(test_files_path)) | ||
| 105 | + | ||
| 106 | test_defines = [ | ||
| 107 | '-UG_DISABLE_ASSERT', | ||
| 108 | '-UG_DISABLE_CAST_CHECKS', | ||
| 109 | '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"', | ||
| 110 | - '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"', | ||
| 111 | + '-DTESTFILE="@0@"'.format(test_files_path + '/testfile'), | ||
| 112 | '-DGST_USE_UNSTABLE_API', | ||
| 113 | '-DGST_DISABLE_DEPRECATED', | ||
| 114 | ] | ||
| 115 | @@ -137,6 +143,14 @@ endif | ||
| 116 | glib_deps = [gio_dep, gobject_dep, gmodule_dep, glib_dep] | ||
| 117 | gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_dep] | ||
| 118 | |||
| 119 | +installed_tests_datadir = join_paths(prefix, get_option('datadir'), 'installed-tests', 'gstreamer-1.0') | ||
| 120 | +installed_tests_execdir = join_paths(prefix, libexecdir, 'installed-tests', 'gstreamer-1.0') | ||
| 121 | +installed_tests_enabled = get_option('installed-tests') | ||
| 122 | + | ||
| 123 | +python = import('python').find_installation() | ||
| 124 | +gen_installed_test_desc = files('../../build-aux/gen-installed-test-desc.py') | ||
| 125 | +gen_installed_test_shscript = files('../../build-aux/gen-installed-test-shscript.py') | ||
| 126 | + | ||
| 127 | foreach t : core_tests | ||
| 128 | fname = t[0] | ||
| 129 | test_name = fname.split('.')[0].underscorify() | ||
| 130 | @@ -150,8 +164,38 @@ foreach t : core_tests | ||
| 131 | include_directories : [configinc], | ||
| 132 | link_with : link_with_libs, | ||
| 133 | dependencies : test_deps + glib_deps + gst_deps, | ||
| 134 | + install_dir: installed_tests_execdir, | ||
| 135 | + install: installed_tests_enabled | ||
| 136 | ) | ||
| 137 | |||
| 138 | + if installed_tests_enabled | ||
| 139 | + installed_test_shscript = test_name + '.sh' | ||
| 140 | + shscript = custom_target (test_name + '_shscript', | ||
| 141 | + output: installed_test_shscript, | ||
| 142 | + command: [ | ||
| 143 | + python, | ||
| 144 | + gen_installed_test_shscript, | ||
| 145 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
| 146 | + '--testname=@0@'.format(test_name), | ||
| 147 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_shscript)), | ||
| 148 | + ], | ||
| 149 | + install: true, | ||
| 150 | + install_dir: installed_tests_execdir) | ||
| 151 | + | ||
| 152 | + installed_test_desc = test_name + '.test' | ||
| 153 | + data = custom_target(test_name + '_desc', | ||
| 154 | + output: installed_test_desc, | ||
| 155 | + command: [ | ||
| 156 | + python, | ||
| 157 | + gen_installed_test_desc, | ||
| 158 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
| 159 | + '--testname=@0@'.format(installed_test_shscript), | ||
| 160 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_desc)), | ||
| 161 | + ], | ||
| 162 | + install: true, | ||
| 163 | + install_dir: installed_tests_datadir) | ||
| 164 | + endif | ||
| 165 | + | ||
| 166 | env = environment() | ||
| 167 | env.set('GST_PLUGIN_PATH_1_0', meson.build_root()) | ||
| 168 | env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') | ||
| 169 | diff --git a/tests/files/testfile b/tests/files/testfile | ||
| 170 | new file mode 100644 | ||
| 171 | index 0000000..89954e0 | ||
| 172 | --- /dev/null | ||
| 173 | +++ b/tests/files/testfile | ||
| 174 | @@ -0,0 +1,80 @@ | ||
| 175 | +................................................................................ | ||
| 176 | +................................................................................ | ||
| 177 | +................................................................................ | ||
| 178 | +................................................................................ | ||
| 179 | +................................................................................ | ||
| 180 | +................................................................................ | ||
| 181 | +................................................................................ | ||
| 182 | +................................................................................ | ||
| 183 | +................................................................................ | ||
| 184 | +................................................................................ | ||
| 185 | +................................................................................ | ||
| 186 | +................................................................................ | ||
| 187 | +................................................................................ | ||
| 188 | +................................................................................ | ||
| 189 | +................................................................................ | ||
| 190 | +................................................................................ | ||
| 191 | +................................................................................ | ||
| 192 | +................................................................................ | ||
| 193 | +................................................................................ | ||
| 194 | +................................................................................ | ||
| 195 | +................................................................................ | ||
| 196 | +................................................................................ | ||
| 197 | +................................................................................ | ||
| 198 | +................................................................................ | ||
| 199 | +................................................................................ | ||
| 200 | +................................................................................ | ||
| 201 | +................................................................................ | ||
| 202 | +................................................................................ | ||
| 203 | +................................................................................ | ||
| 204 | +................................................................................ | ||
| 205 | +................................................................................ | ||
| 206 | +................................................................................ | ||
| 207 | +................................................................................ | ||
| 208 | +................................................................................ | ||
| 209 | +................................................................................ | ||
| 210 | +................................................................................ | ||
| 211 | +................................................................................ | ||
| 212 | +................................................................................ | ||
| 213 | +................................................................................ | ||
| 214 | +................................................................................ | ||
| 215 | +................................................................................ | ||
| 216 | +................................................................................ | ||
| 217 | +................................................................................ | ||
| 218 | +................................................................................ | ||
| 219 | +................................................................................ | ||
| 220 | +................................................................................ | ||
| 221 | +................................................................................ | ||
| 222 | +................................................................................ | ||
| 223 | +................................................................................ | ||
| 224 | +................................................................................ | ||
| 225 | +................................................................................ | ||
| 226 | +................................................................................ | ||
| 227 | +................................................................................ | ||
| 228 | +................................................................................ | ||
| 229 | +................................................................................ | ||
| 230 | +................................................................................ | ||
| 231 | +................................................................................ | ||
| 232 | +................................................................................ | ||
| 233 | +................................................................................ | ||
| 234 | +................................................................................ | ||
| 235 | +................................................................................ | ||
| 236 | +................................................................................ | ||
| 237 | +................................................................................ | ||
| 238 | +................................................................................ | ||
| 239 | +................................................................................ | ||
| 240 | +................................................................................ | ||
| 241 | +................................................................................ | ||
| 242 | +................................................................................ | ||
| 243 | +................................................................................ | ||
| 244 | +................................................................................ | ||
| 245 | +................................................................................ | ||
| 246 | +................................................................................ | ||
| 247 | +................................................................................ | ||
| 248 | +................................................................................ | ||
| 249 | +................................................................................ | ||
| 250 | +................................................................................ | ||
| 251 | +................................................................................ | ||
| 252 | +................................................................................ | ||
| 253 | +................................................................................ | ||
| 254 | +................................................................................ | ||
| 255 | -- | ||
| 256 | 2.17.1 | ||
| 257 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch new file mode 100644 index 000000000..6f571a12d --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 122e5ac3dd16a461b6ae595605490c8f5d1c3a9d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 3 | Date: Sun, 11 Apr 2021 19:48:13 +0100 | ||
| 4 | Subject: [PATCH 1/4] tests: respect the idententaion used in meson | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
| 7 | |||
| 8 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 9 | --- | ||
| 10 | tests/check/meson.build | 10 +++++----- | ||
| 11 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 14 | index a617cf159..b2636714b 100644 | ||
| 15 | --- a/tests/check/meson.build | ||
| 16 | +++ b/tests/check/meson.build | ||
| 17 | @@ -146,11 +146,11 @@ foreach t : core_tests | ||
| 18 | |||
| 19 | if not skip_test | ||
| 20 | exe = executable(test_name, fname, | ||
| 21 | - c_args : gst_c_args + test_defines, | ||
| 22 | - cpp_args : gst_c_args + test_defines, | ||
| 23 | - include_directories : [configinc], | ||
| 24 | - link_with : link_with_libs, | ||
| 25 | - dependencies : test_deps + glib_deps + gst_deps, | ||
| 26 | + c_args : gst_c_args + test_defines, | ||
| 27 | + cpp_args : gst_c_args + test_defines, | ||
| 28 | + include_directories : [configinc], | ||
| 29 | + link_with : link_with_libs, | ||
| 30 | + dependencies : test_deps + glib_deps + gst_deps, | ||
| 31 | ) | ||
| 32 | |||
| 33 | env = environment() | ||
| 34 | -- | ||
| 35 | 2.31.1 | ||
| 36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch new file mode 100644 index 000000000..b77fb5797 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | From c9e93c7a3e4d2773abef4f5e1464af24f36700b3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 3 | Date: Sun, 11 Apr 2021 19:48:13 +0100 | ||
| 4 | Subject: [PATCH 2/4] tests: add support for install the tests | ||
| 5 | |||
| 6 | This will provide to run the tests using the gnome-desktop-testing [1] | ||
| 7 | |||
| 8 | [1] https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
| 11 | |||
| 12 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 13 | --- | ||
| 14 | meson.build | 5 +++++ | ||
| 15 | meson_options.txt | 1 + | ||
| 16 | template.test.in | 3 +++ | ||
| 17 | tests/check/meson.build | 22 +++++++++++++++++++++- | ||
| 18 | 4 files changed, 30 insertions(+), 1 deletion(-) | ||
| 19 | create mode 100644 template.test.in | ||
| 20 | |||
| 21 | diff --git a/meson.build b/meson.build | ||
| 22 | index c4e8774f5..1abf4eb26 100644 | ||
| 23 | --- a/meson.build | ||
| 24 | +++ b/meson.build | ||
| 25 | @@ -562,6 +562,11 @@ if bashcomp_dep.found() | ||
| 26 | endif | ||
| 27 | endif | ||
| 28 | |||
| 29 | +installed_tests_metadir = join_paths(datadir, 'installed-tests', meson.project_name()) | ||
| 30 | +installed_tests_execdir = join_paths(libexecdir, 'installed-tests', meson.project_name()) | ||
| 31 | +installed_tests_enabled = get_option('installed-tests') | ||
| 32 | +installed_tests_template = files('template.test.in') | ||
| 33 | + | ||
| 34 | plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0') | ||
| 35 | |||
| 36 | pkgconfig = import('pkgconfig') | ||
| 37 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 38 | index c8cee3762..b5da40eaa 100644 | ||
| 39 | --- a/meson_options.txt | ||
| 40 | +++ b/meson_options.txt | ||
| 41 | @@ -15,6 +15,7 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso | ||
| 42 | option('memory-alignment', type: 'combo', | ||
| 43 | choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], | ||
| 44 | value: 'malloc') | ||
| 45 | +option('installed-tests', type : 'boolean', value : false, description : 'Enable installed tests') | ||
| 46 | |||
| 47 | # Feature options | ||
| 48 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
| 49 | diff --git a/template.test.in b/template.test.in | ||
| 50 | new file mode 100644 | ||
| 51 | index 000000000..f701627f8 | ||
| 52 | --- /dev/null | ||
| 53 | +++ b/template.test.in | ||
| 54 | @@ -0,0 +1,3 @@ | ||
| 55 | +[Test] | ||
| 56 | +Type=session | ||
| 57 | +Exec=@installed_tests_dir@/@program@ | ||
| 58 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 59 | index b2636714b..a697a7b06 100644 | ||
| 60 | --- a/tests/check/meson.build | ||
| 61 | +++ b/tests/check/meson.build | ||
| 62 | @@ -124,10 +124,16 @@ test_defines = [ | ||
| 63 | '-UG_DISABLE_ASSERT', | ||
| 64 | '-UG_DISABLE_CAST_CHECKS', | ||
| 65 | '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"', | ||
| 66 | - '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"', | ||
| 67 | '-DGST_DISABLE_DEPRECATED', | ||
| 68 | ] | ||
| 69 | |||
| 70 | +testfile = meson.current_source_dir() + '/meson.build' | ||
| 71 | +if installed_tests_enabled | ||
| 72 | + install_data(testfile, install_dir : installed_tests_metadir, rename : 'testfile') | ||
| 73 | + testfile = installed_tests_metadir + '/testfile' | ||
| 74 | +endif | ||
| 75 | +test_defines += '-DTESTFILE="@0@"'.format(testfile) | ||
| 76 | + | ||
| 77 | # sanity checking | ||
| 78 | if get_option('check').disabled() | ||
| 79 | if get_option('tests').enabled() | ||
| 80 | @@ -151,6 +157,8 @@ foreach t : core_tests | ||
| 81 | include_directories : [configinc], | ||
| 82 | link_with : link_with_libs, | ||
| 83 | dependencies : test_deps + glib_deps + gst_deps, | ||
| 84 | + install_dir: installed_tests_execdir, | ||
| 85 | + install: installed_tests_enabled, | ||
| 86 | ) | ||
| 87 | |||
| 88 | env = environment() | ||
| 89 | @@ -162,6 +170,18 @@ foreach t : core_tests | ||
| 90 | env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') | ||
| 91 | env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer') | ||
| 92 | |||
| 93 | + if installed_tests_enabled | ||
| 94 | + test_conf = configuration_data() | ||
| 95 | + test_conf.set('installed_tests_dir', join_paths(prefix, installed_tests_execdir)) | ||
| 96 | + test_conf.set('program', test_name) | ||
| 97 | + configure_file( | ||
| 98 | + input: installed_tests_template, | ||
| 99 | + output: test_name + '.test', | ||
| 100 | + install_dir: installed_tests_metadir, | ||
| 101 | + configuration: test_conf | ||
| 102 | + ) | ||
| 103 | + endif | ||
| 104 | + | ||
| 105 | test(test_name, exe, env: env, timeout : 3 * 60) | ||
| 106 | endif | ||
| 107 | endforeach | ||
| 108 | -- | ||
| 109 | 2.31.1 | ||
| 110 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch new file mode 100644 index 000000000..46813cec3 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From e82dedec1803922656e92285fc1bb75b2cdc0aad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 3 | Date: Sat, 24 Apr 2021 10:34:47 +0100 | ||
| 4 | Subject: [PATCH 3/4] tests: use a dictionaries for environment | ||
| 5 | |||
| 6 | meson environment() can't be passed to configure_file and it is needed for installed_tests, | ||
| 7 | use a dictionary as this is simplest solution to install the environment. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
| 10 | |||
| 11 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 12 | --- | ||
| 13 | tests/check/meson.build | 19 +++++++++++-------- | ||
| 14 | 1 file changed, 11 insertions(+), 8 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 17 | index a697a7b06..f64524904 100644 | ||
| 18 | --- a/tests/check/meson.build | ||
| 19 | +++ b/tests/check/meson.build | ||
| 20 | @@ -161,14 +161,17 @@ foreach t : core_tests | ||
| 21 | install: installed_tests_enabled, | ||
| 22 | ) | ||
| 23 | |||
| 24 | - env = environment() | ||
| 25 | - env.set('GST_PLUGIN_PATH_1_0', meson.build_root()) | ||
| 26 | - env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') | ||
| 27 | - env.set('GST_STATE_IGNORE_ELEMENTS', '') | ||
| 28 | - env.set('CK_DEFAULT_TIMEOUT', '20') | ||
| 29 | - env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name)) | ||
| 30 | - env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') | ||
| 31 | - env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer') | ||
| 32 | + # environment() can't be passed to configure_file and it is needed for installed_tests | ||
| 33 | + # use a dictionary as this is simplest solution to install the environment | ||
| 34 | + env = { | ||
| 35 | + 'GST_PLUGIN_PATH_1_0': meson.build_root(), | ||
| 36 | + 'GST_PLUGIN_SYSTEM_PATH_1_0': '', | ||
| 37 | + 'GST_STATE_IGNORE_ELEMENTS': '', | ||
| 38 | + 'CK_DEFAULT_TIMEOUT': '20', | ||
| 39 | + 'GST_REGISTRY': '@0@/@1@.registry'.format(meson.current_build_dir(), test_name), | ||
| 40 | + 'GST_PLUGIN_SCANNER_1_0': gst_scanner_dir + '/gst-plugin-scanner', | ||
| 41 | + 'GST_PLUGIN_LOADING_WHITELIST': 'gstreamer', | ||
| 42 | + } | ||
| 43 | |||
| 44 | if installed_tests_enabled | ||
| 45 | test_conf = configuration_data() | ||
| 46 | -- | ||
| 47 | 2.31.1 | ||
| 48 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch new file mode 100644 index 000000000..eabe7bcbe --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | From 57d2965e979f886e03eecd7e351bf01812053971 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 3 | Date: Sun, 2 May 2021 01:58:01 +0100 | ||
| 4 | Subject: [PATCH 4/4] tests: install the environment for installed_tests | ||
| 5 | |||
| 6 | - adapt the test environment for installed_tests | ||
| 7 | - install the test environment for installed_tests | ||
| 8 | - run the tests using the installed environment | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
| 11 | |||
| 12 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 13 | --- | ||
| 14 | template.test.in | 2 +- | ||
| 15 | tests/check/meson.build | 18 ++++++++++++++++++ | ||
| 16 | 2 files changed, 19 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/template.test.in b/template.test.in | ||
| 19 | index f701627f8..9a3fbdd09 100644 | ||
| 20 | --- a/template.test.in | ||
| 21 | +++ b/template.test.in | ||
| 22 | @@ -1,3 +1,3 @@ | ||
| 23 | [Test] | ||
| 24 | Type=session | ||
| 25 | -Exec=@installed_tests_dir@/@program@ | ||
| 26 | +Exec=sh -c 'set -aex && source @installed_tests_dir@/@program@.env && exec @installed_tests_dir@/@program@' | ||
| 27 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 28 | index f64524904..a67e0f8dd 100644 | ||
| 29 | --- a/tests/check/meson.build | ||
| 30 | +++ b/tests/check/meson.build | ||
| 31 | @@ -183,6 +183,24 @@ foreach t : core_tests | ||
| 32 | install_dir: installed_tests_metadir, | ||
| 33 | configuration: test_conf | ||
| 34 | ) | ||
| 35 | + | ||
| 36 | + env += {'GST_REGISTRY': '~/.cache/gstreamer-1.0/@0@.registry'.format(test_name)} | ||
| 37 | + configure_file( | ||
| 38 | + output: test_name + '.env', | ||
| 39 | + install_dir: installed_tests_execdir, | ||
| 40 | + configuration : env, | ||
| 41 | + ) | ||
| 42 | + # helper to convert a meson environment dictionay object exported with configure_file | ||
| 43 | + # this also remove not needed variables for the installed tests | ||
| 44 | + meson.add_postconf_script('sed', '-i', | ||
| 45 | + '-e', '/^#define/!d', | ||
| 46 | + '-e', 's/^#define //g', | ||
| 47 | + '-e', '/^GST_PLUGIN_PATH_1_0/d', | ||
| 48 | + '-e', '/^GST_PLUGIN_SYSTEM_PATH_1_0/d', | ||
| 49 | + '-e', '/^GST_PLUGIN_SCANNER_1_0/d', | ||
| 50 | + '-e', 's/ /=/', | ||
| 51 | + join_paths(meson.current_build_dir(), test_name + '.env') | ||
| 52 | + ) | ||
| 53 | endif | ||
| 54 | |||
| 55 | test(test_name, exe, env: env, timeout : 3 * 60) | ||
| 56 | -- | ||
| 57 | 2.31.1 | ||
| 58 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch b/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch deleted file mode 100644 index 7ca3d5ad4..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | Currently gstreamer configuration depends on whether setcap is found on the host | ||
| 2 | system. Turn this into a configure option to make builds deterinistic. | ||
| 3 | |||
| 4 | RP 2020/2/19 | ||
| 5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Index: gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
| 9 | =================================================================== | ||
| 10 | --- gstreamer-1.16.1.orig/libs/gst/helpers/meson.build | ||
| 11 | +++ gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
| 12 | @@ -73,7 +73,12 @@ if have_ptp | ||
| 13 | endif | ||
| 14 | endif | ||
| 15 | |||
| 16 | - setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
| 17 | + setcap_feature = get_option('setcap') | ||
| 18 | + if setcap_feature.disabled() | ||
| 19 | + setcap = find_program('dontexist', required : false) | ||
| 20 | + else | ||
| 21 | + setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
| 22 | + endif | ||
| 23 | |||
| 24 | # user/group to change to in gst-ptp-helper | ||
| 25 | ptp_helper_setuid_user = get_option('ptp-helper-setuid-user') | ||
| 26 | Index: gstreamer-1.16.1/meson_options.txt | ||
| 27 | =================================================================== | ||
| 28 | --- gstreamer-1.16.1.orig/meson_options.txt | ||
| 29 | +++ gstreamer-1.16.1/meson_options.txt | ||
| 30 | @@ -26,6 +26,7 @@ option('libunwind', type : 'feature', va | ||
| 31 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
| 32 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
| 33 | option('bash-completion', type : 'feature', value : 'auto', description : 'Install bash completion files') | ||
| 34 | +option('setcap', type : 'feature', value : 'auto', description : 'Use setcap') | ||
| 35 | |||
| 36 | # Common feature options | ||
| 37 | option('examples', type : 'feature', value : 'auto', yield : true) | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest b/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest new file mode 100755 index 000000000..0cfa955f0 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #!/usr/bin/env sh | ||
| 2 | gnome-desktop-testing-runner gstreamer | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0_1.16.2.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0_1.18.0.imx.bb index 8bbc16c87..13d1682a7 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0_1.16.2.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0_1.18.0.imx.bb | |||
| @@ -6,28 +6,29 @@ BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | |||
| 6 | SECTION = "multimedia" | 6 | SECTION = "multimedia" |
| 7 | LICENSE = "LGPLv2+" | 7 | LICENSE = "LGPLv2+" |
| 8 | 8 | ||
| 9 | DEPENDS = "glib-2.0 glib-2.0-native libcap libxml2 bison-native flex-native" | 9 | DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native" |
| 10 | 10 | ||
| 11 | inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection gtk-doc | 11 | inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome |
| 12 | 12 | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ |
| 14 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" | 14 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" |
| 15 | 15 | ||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 16 | # Use i.MX fork of GST for customizations | 18 | # Use i.MX fork of GST for customizations |
| 17 | GST1.0_SRC ?= "gitsm://source.codeaurora.org/external/imx/gstreamer.git;protocol=https" | 19 | GST1.0_SRC ?= "gitsm://source.codeaurora.org/external/imx/gstreamer.git;protocol=https" |
| 18 | SRCBRANCH = "MM_04.05.06_2008_L5.4.47" | 20 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
| 19 | 21 | SRC_URI = "${GST1.0_SRC};branch=${SRCBRANCH} \ | |
| 20 | SRC_URI = " \ | 22 | file://run-ptest \ |
| 21 | ${GST1.0_SRC};branch=${SRCBRANCH} \ | 23 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ |
| 22 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ | 24 | file://0002-Remove-unused-valgrind-detection.patch \ |
| 23 | file://0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | 25 | file://0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch \ |
| 24 | file://0003-meson-Add-valgrind-feature.patch \ | 26 | file://0004-tests-respect-the-idententaion-used-in-meson.patch \ |
| 25 | file://0004-meson-Add-option-for-installed-tests.patch \ | 27 | file://0005-tests-add-support-for-install-the-tests.patch \ |
| 26 | file://capfix.patch \ | 28 | file://0006-tests-use-a-dictionaries-for-environment.patch \ |
| 27 | " | 29 | file://0007-tests-install-the-environment-for-installed_tests.patch \ |
| 28 | SRCREV = "8514bc61ccab208a65e387eab9347276a8e770e7" | 30 | " |
| 29 | 31 | SRCREV = "2f20fd10eaf8629b3e8c134424c38412c4d3bd86" | |
| 30 | S = "${WORKDIR}/git" | ||
| 31 | 32 | ||
| 32 | DEFAULT_PREFERENCE = "-1" | 33 | DEFAULT_PREFERENCE = "-1" |
| 33 | 34 | ||
| @@ -38,14 +39,14 @@ PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ | |||
| 38 | 39 | ||
| 39 | PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false" | 40 | PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false" |
| 40 | PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false" | 41 | PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false" |
| 42 | PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled" | ||
| 41 | PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled" | 43 | PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled" |
| 42 | PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled-tests=true,-Dtests=disabled -Dinstalled-tests=false" | 44 | PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled-tests=true,-Dtests=disabled -Dinstalled-tests=false" |
| 43 | PACKAGECONFIG[valgrind] = "-Dvalgrind=enabled,-Dvalgrind=disabled,valgrind," | ||
| 44 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | 45 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" |
| 45 | PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils" | 46 | PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils" |
| 46 | PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion" | 47 | PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion" |
| 47 | PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled" | 48 | PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled" |
| 48 | PACKAGECONFIG[setcap] = "-Dsetcap=enabled,-Dsetcap=disabled,libcap libcap-native" | 49 | PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native" |
| 49 | 50 | ||
| 50 | # TODO: put this in a gettext.bbclass patch | 51 | # TODO: put this in a gettext.bbclass patch |
| 51 | def gettext_oemeson(d): | 52 | def gettext_oemeson(d): |
| @@ -57,28 +58,25 @@ def gettext_oemeson(d): | |||
| 57 | return '-Dnls=enabled' | 58 | return '-Dnls=enabled' |
| 58 | 59 | ||
| 59 | EXTRA_OEMESON += " \ | 60 | EXTRA_OEMESON += " \ |
| 61 | -Ddoc=disabled \ | ||
| 60 | -Dexamples=disabled \ | 62 | -Dexamples=disabled \ |
| 61 | -Ddbghelp=disabled \ | 63 | -Ddbghelp=disabled \ |
| 62 | ${@gettext_oemeson(d)} \ | 64 | ${@gettext_oemeson(d)} \ |
| 63 | " | 65 | " |
| 64 | 66 | ||
| 65 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
| 66 | GTKDOC_MESON_ENABLE_FLAG = "enabled" | ||
| 67 | GTKDOC_MESON_DISABLE_FLAG = "disabled" | ||
| 68 | |||
| 69 | GIR_MESON_ENABLE_FLAG = "enabled" | 67 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 70 | GIR_MESON_DISABLE_FLAG = "disabled" | 68 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 71 | 69 | ||
| 72 | PACKAGES += "${PN}-bash-completion" | 70 | PACKAGES += "${PN}-bash-completion" |
| 73 | 71 | ||
| 74 | # Add the core element plugins to the main package | 72 | # Add the core element plugins to the main package |
| 75 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" | 73 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" |
| 76 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include" | 74 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include" |
| 77 | FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*" | 75 | FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*" |
| 78 | FILES_${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb ${datadir}/glib-2.0/gdb" | 76 | FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb" |
| 79 | 77 | ||
| 80 | CVE_PRODUCT = "gstreamer" | 78 | CVE_PRODUCT = "gstreamer" |
| 81 | 79 | ||
| 82 | require recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc | 80 | PTEST_BUILD_HOST_FILES = "" |
| 83 | 81 | ||
| 84 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 82 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb deleted file mode 100644 index c8bb6cd8a..000000000 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb +++ /dev/null | |||
| @@ -1,84 +0,0 @@ | |||
| 1 | # Copyright (C) 2014,2016 Freescale Semiconductor | ||
| 2 | # Copyright 2017-2019 NXP | ||
| 3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. | ||
| 4 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 5 | |||
| 6 | DESCRIPTION = "Gstreamer freescale plugins" | ||
| 7 | LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" | ||
| 8 | SECTION = "multimedia" | ||
| 9 | |||
| 10 | DEPENDS = "imx-codec imx-parser gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 11 | DEPENDS_append_mx6 = " imx-lib" | ||
| 12 | DEPENDS_append_mx7 = " imx-lib" | ||
| 13 | DEPENDS_append_imxvpu = " imx-vpuwrap libdrm" | ||
| 14 | |||
| 15 | # For backwards compatibility | ||
| 16 | RREPLACES_${PN} = "gst1.0-fsl-plugin" | ||
| 17 | RPROVIDES_${PN} = "gst1.0-fsl-plugin" | ||
| 18 | RCONFLICTS_${PN} = "gst1.0-fsl-plugin" | ||
| 19 | |||
| 20 | LIC_FILES_CHKSUM = "file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
| 21 | file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" | ||
| 22 | |||
| 23 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | ||
| 24 | |||
| 25 | SRC_URI = " \ | ||
| 26 | git://source.codeaurora.org/external/imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH} \ | ||
| 27 | " | ||
| 28 | SRCREV = "659ec4947d6b1903d26e4ec9e40ae251a659935d" | ||
| 29 | |||
| 30 | S = "${WORKDIR}/git" | ||
| 31 | |||
| 32 | inherit autotools pkgconfig use-imx-headers | ||
| 33 | |||
| 34 | PLATFORM_mx6 = "MX6" | ||
| 35 | PLATFORM_mx6sl = "MX6SL" | ||
| 36 | PLATFORM_mx6sx = "MX6SX" | ||
| 37 | PLATFORM_mx6ul = "MX6UL" | ||
| 38 | PLATFORM_mx6sll = "MX6SLL" | ||
| 39 | PLATFORM_mx7= "MX7D" | ||
| 40 | PLATFORM_mx7ulp= "MX7ULP" | ||
| 41 | PLATFORM_mx8 = "MX8" | ||
| 42 | |||
| 43 | # Todo add a mechanism to map possible build targets | ||
| 44 | EXTRA_OECONF = "PLATFORM=${PLATFORM} \ | ||
| 45 | CPPFLAGS="-I${STAGING_INCDIR_IMX}" \ | ||
| 46 | CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \ | ||
| 47 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', bb.utils.contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}" | ||
| 48 | |||
| 49 | PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" | ||
| 50 | |||
| 51 | # Add codec list that the beep plugin run-time depended | ||
| 52 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" | ||
| 53 | RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " | ||
| 54 | |||
| 55 | # overlaysink rely on G2D, | ||
| 56 | # cannot be supported on i.MX6SLL & i.MX6UL & i.MX6ULL & i.MX7D | ||
| 57 | PACKAGECONFIG ?= "" | ||
| 58 | PACKAGECONFIG_imxgpu2d = "overlaysink" | ||
| 59 | |||
| 60 | |||
| 61 | # FIXME: Add all features | ||
| 62 | # feature from excluded mm packages | ||
| 63 | PACKAGECONFIG[ac3] += ",,imx-ac3codec,imx-ac3codec" | ||
| 64 | # feature from special mm packages | ||
| 65 | PACKAGECONFIG[aacp] += ",,imx-aacpcodec,imx-aacpcodec" | ||
| 66 | MSDEPENDS = "imx-msparser imx-mscodec" | ||
| 67 | PACKAGECONFIG[wma10dec] += ",,${MSDEPENDS},${MSDEPENDS}" | ||
| 68 | PACKAGECONFIG[wma8enc] += "--enable-wma8enc,--disable-wma8enc,${MSDEPENDS},${MSDEPENDS}" | ||
| 69 | OVDEPENDS = "virtual/libg2d" | ||
| 70 | PACKAGECONFIG[overlaysink] += "--enable-overlaysink,--disable-overlaysink, ${OVDEPENDS}" | ||
| 71 | |||
| 72 | FILES_${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" | ||
| 73 | |||
| 74 | FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" | ||
| 75 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" | ||
| 76 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
| 77 | FILES_${PN}-gplay = "${bindir}/gplay-1.0" | ||
| 78 | FILES_${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" | ||
| 79 | FILES_${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" | ||
| 80 | FILES_${PN}-grecorder = "${bindir}/grecorder-1.0" | ||
| 81 | FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" | ||
| 82 | FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" | ||
| 83 | |||
| 84 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb new file mode 100644 index 000000000..9d43a1757 --- /dev/null +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | # Copyright (C) 2014,2016 Freescale Semiconductor | ||
| 2 | # Copyright 2017-2021 NXP | ||
| 3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. | ||
| 4 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 5 | |||
| 6 | DESCRIPTION = "Gstreamer freescale plugins" | ||
| 7 | LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" | ||
| 8 | SECTION = "multimedia" | ||
| 9 | |||
| 10 | DEPENDS = "imx-codec imx-parser gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 11 | DEPENDS:append:mx6 = " imx-lib" | ||
| 12 | DEPENDS:append:mx7 = " imx-lib" | ||
| 13 | DEPENDS:append:imxvpu = " imx-vpuwrap libdrm" | ||
| 14 | |||
| 15 | # For backwards compatibility | ||
| 16 | RREPLACES:${PN} = "gst1.0-fsl-plugin" | ||
| 17 | RPROVIDES:${PN} = "gst1.0-fsl-plugin" | ||
| 18 | RCONFLICTS:${PN} = "gst1.0-fsl-plugin" | ||
| 19 | |||
| 20 | LIC_FILES_CHKSUM = "file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
| 21 | file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" | ||
| 22 | |||
| 23 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" | ||
| 24 | |||
| 25 | |||
| 26 | SRC_URI = "git://source.codeaurora.org/external/imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH}" | ||
| 27 | SRCREV = "057e6bfbc208ce31e8ed0af0264dd1e86de05808" | ||
| 28 | |||
| 29 | S = "${WORKDIR}/git" | ||
| 30 | |||
| 31 | inherit meson pkgconfig use-imx-headers | ||
| 32 | |||
| 33 | PLATFORM:mx6 = "MX6" | ||
| 34 | PLATFORM:mx6sl = "MX6SL" | ||
| 35 | PLATFORM:mx6sx = "MX6SX" | ||
| 36 | PLATFORM:mx6ul = "MX6UL" | ||
| 37 | PLATFORM:mx6sll = "MX6SLL" | ||
| 38 | PLATFORM:mx7= "MX7D" | ||
| 39 | PLATFORM:mx7ulp= "MX7ULP" | ||
| 40 | PLATFORM:mx8 = "MX8" | ||
| 41 | |||
| 42 | # Todo add a mechanism to map possible build targets | ||
| 43 | EXTRA_OEMESON = "-Dplatform=${PLATFORM} \ | ||
| 44 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | ||
| 45 | " | ||
| 46 | |||
| 47 | PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" | ||
| 48 | |||
| 49 | # Add codec list that the beep plugin run-time depended | ||
| 50 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" | ||
| 51 | RDEPENDS:${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " | ||
| 52 | |||
| 53 | # overlaysink rely on G2D, | ||
| 54 | # cannot be supported on i.MX6SLL & i.MX6UL & i.MX6ULL & i.MX7D | ||
| 55 | PACKAGECONFIG ?= "" | ||
| 56 | PACKAGECONFIG:imxgpu2d = "overlaysink" | ||
| 57 | |||
| 58 | |||
| 59 | # FIXME: Add all features | ||
| 60 | # feature from excluded mm packages | ||
| 61 | PACKAGECONFIG[ac3] = ",,imx-ac3codec,imx-ac3codec" | ||
| 62 | # feature from special mm packages | ||
| 63 | PACKAGECONFIG[aacp] = ",,imx-aacpcodec,imx-aacpcodec" | ||
| 64 | MSDEPENDS = "imx-msparser imx-mscodec" | ||
| 65 | PACKAGECONFIG[wma10dec] = ",,${MSDEPENDS},${MSDEPENDS}" | ||
| 66 | PACKAGECONFIG[wma8enc] = ",,${MSDEPENDS},${MSDEPENDS}" | ||
| 67 | PACKAGECONFIG[overlaysink] += ",,virtual/libg2d" | ||
| 68 | |||
| 69 | FILES:${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" | ||
| 70 | |||
| 71 | FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" | ||
| 72 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" | ||
| 73 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
| 74 | FILES:${PN}-gplay = "${bindir}/gplay-1.0" | ||
| 75 | FILES:${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" | ||
| 76 | FILES:${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" | ||
| 77 | FILES:${PN}-grecorder = "${bindir}/grecorder-1.0" | ||
| 78 | FILES:${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" | ||
| 79 | FILES:${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" | ||
| 80 | |||
| 81 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
