diff options
author | Carlos Rafael Giani <crg7475@mailbox.org> | 2020-01-12 14:59:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-16 22:33:08 +0000 |
commit | 01c1f63bdb779fe33df4b4409792f393eeee7cf9 (patch) | |
tree | f29f23b2fdfd3545298639c8d3403fd1c241a274 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | |
parent | 31e5bc2b586c51ad3b9fdb79af8b549d8d7ce743 (diff) | |
download | poky-01c1f63bdb779fe33df4b4409792f393eeee7cf9.tar.gz |
gstreamer: Add common .inc files for meson based recipes
* gstreamer1.0-plugins-common.inc
The old gstreamer1.0-plugins.inc file, adapted for meson
* gstreamer1.0-plugins-packaging.inc
The old gst-plugins-package.inc file, adapted for meson
* gstreamer1.0-ptest.inc
Common code for meson based PTest support; autogenerates the run-ptest
file and is designed to use the gnome-desktop-testing suite runner
(which is why the .inc files inherits from ptest-gnome)
(From OE-Core rev: 075aa7a617d38d6a698cee97dcb7550e72741eb5)
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc new file mode 100644 index 0000000000..ccf55500a9 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | |||
@@ -0,0 +1,47 @@ | |||
1 | # This .inc file contains the common setup for the gstreamer1.0-plugins-* | ||
2 | # plugin set recipes. | ||
3 | |||
4 | # SUMMARY is set in the actual .bb recipes | ||
5 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
6 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | ||
7 | SECTION = "multimedia" | ||
8 | |||
9 | DEPENDS = "gstreamer1.0 glib-2.0-native" | ||
10 | |||
11 | inherit gettext meson pkgconfig upstream-version-is-even | ||
12 | |||
13 | require gstreamer1.0-plugins-packaging.inc | ||
14 | |||
15 | # Orc enables runtime JIT compilation of data processing routines from Orc | ||
16 | # bytecode to SIMD instructions for various architectures (currently SSE, MMX, | ||
17 | # MIPS, Altivec and NEON are supported). | ||
18 | # This value is used in the PACKAGECONFIG values for each plugin set recipe. | ||
19 | # By modifying it, Orc can be enabled/disabled in all of these recipes at once. | ||
20 | GSTREAMER_ORC ?= "orc" | ||
21 | |||
22 | PACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native" | ||
23 | |||
24 | # TODO: put this in a gettext.bbclass patch (with variables to allow for | ||
25 | # configuring the option name and the enabled/disabled values). | ||
26 | def gettext_oemeson(d): | ||
27 | if d.getVar('USE_NLS') == 'no': | ||
28 | return '-Dnls=disabled' | ||
29 | # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set | ||
30 | if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'): | ||
31 | return '-Dnls=disabled' | ||
32 | return '-Dnls=enabled' | ||
33 | |||
34 | # Not all plugin sets contain examples, so the -Dexamples | ||
35 | # option needs to be added conditionally. | ||
36 | GST_PLUGIN_SET_HAS_EXAMPLES ?= "1" | ||
37 | |||
38 | EXTRA_OEMESON += " \ | ||
39 | ${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \ | ||
40 | ${@gettext_oemeson(d)} \ | ||
41 | " | ||
42 | |||
43 | GIR_MESON_ENABLE_FLAG = "enabled" | ||
44 | GIR_MESON_DISABLE_FLAG = "disabled" | ||
45 | |||
46 | # Dynamically generate packages for all enabled plugins | ||
47 | PACKAGES_DYNAMIC = "^${PN}-.*" | ||