Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | # workaround to disable orc on mips to fix the build failure |
| 22 | # {standard input}: Assembler messages: |
| 23 | # {standard input}:46587: Error: branch out of range |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | GSTREAMER_ORC:mips = "" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 25 | PACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native" |
| 26 | |
| 27 | # TODO: put this in a gettext.bbclass patch (with variables to allow for |
| 28 | # configuring the option name and the enabled/disabled values). |
| 29 | def gettext_oemeson(d): |
| 30 | if d.getVar('USE_NLS') == 'no': |
| 31 | return '-Dnls=disabled' |
| 32 | # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set |
| 33 | if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'): |
| 34 | return '-Dnls=disabled' |
| 35 | return '-Dnls=enabled' |
| 36 | |
| 37 | # Not all plugin sets contain examples, so the -Dexamples |
| 38 | # option needs to be added conditionally. |
| 39 | GST_PLUGIN_SET_HAS_EXAMPLES ?= "1" |
| 40 | |
| 41 | EXTRA_OEMESON += " \ |
| 42 | ${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \ |
| 43 | ${@gettext_oemeson(d)} \ |
| 44 | " |
| 45 | |
| 46 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 47 | GIR_MESON_DISABLE_FLAG = "disabled" |