gstreamer1.0-plugins-common.inc 1.9 KB

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