xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# This .inc file contains the common setup for the gstreamer1.0-plugins-*
2*4882a593Smuzhiyun# plugin set recipes.
3*4882a593Smuzhiyun
4*4882a593Smuzhiyun# SUMMARY is set in the actual .bb recipes
5*4882a593SmuzhiyunHOMEPAGE = "https://gstreamer.freedesktop.org/"
6*4882a593SmuzhiyunBUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
7*4882a593SmuzhiyunSECTION = "multimedia"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunDEPENDS = "gstreamer1.0 glib-2.0-native"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit gettext meson pkgconfig upstream-version-is-even
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunrequire gstreamer1.0-plugins-packaging.inc
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# Orc enables runtime JIT compilation of data processing routines from Orc
16*4882a593Smuzhiyun# bytecode to SIMD instructions for various architectures (currently SSE, MMX,
17*4882a593Smuzhiyun# MIPS, Altivec and NEON are supported).
18*4882a593Smuzhiyun# This value is used in the PACKAGECONFIG values for each plugin set recipe.
19*4882a593Smuzhiyun# By modifying it, Orc can be enabled/disabled in all of these recipes at once.
20*4882a593SmuzhiyunGSTREAMER_ORC ?= "orc"
21*4882a593Smuzhiyun# workaround to disable orc on mips to fix the build failure
22*4882a593Smuzhiyun# {standard input}: Assembler messages:
23*4882a593Smuzhiyun# {standard input}:46587: Error: branch out of range
24*4882a593SmuzhiyunGSTREAMER_ORC:mips = ""
25*4882a593SmuzhiyunPACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native"
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun# TODO: put this in a gettext.bbclass patch (with variables to allow for
28*4882a593Smuzhiyun# configuring the option name and the enabled/disabled values).
29*4882a593Smuzhiyundef gettext_oemeson(d):
30*4882a593Smuzhiyun    if d.getVar('USE_NLS') == 'no':
31*4882a593Smuzhiyun        return '-Dnls=disabled'
32*4882a593Smuzhiyun    # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
33*4882a593Smuzhiyun    if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
34*4882a593Smuzhiyun        return '-Dnls=disabled'
35*4882a593Smuzhiyun    return '-Dnls=enabled'
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun# Not all plugin sets contain examples, so the -Dexamples
38*4882a593Smuzhiyun# option needs to be added conditionally.
39*4882a593SmuzhiyunGST_PLUGIN_SET_HAS_EXAMPLES ?= "1"
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunEXTRA_OEMESON += " \
42*4882a593Smuzhiyun    ${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \
43*4882a593Smuzhiyun    ${@gettext_oemeson(d)} \
44*4882a593Smuzhiyun"
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunGIR_MESON_ENABLE_FLAG = "enabled"
47*4882a593SmuzhiyunGIR_MESON_DISABLE_FLAG = "disabled"
48