summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2013-05-22 18:02:14 (GMT)
committerThiago Santos <thiago.sousa.santos@collabora.com>2013-05-22 18:02:14 (GMT)
commit03752ef89def58f8abdc506ae005fe4d8b6e8edf (patch)
tree5cc387fc4b638734e0d7d35efdf805d3cadfd233
parenta51230488ad79b7cd611ce6f490b0da6faaba896 (diff)
downloadcerbero-03752ef89def58f8abdc506ae005fe4d8b6e8edf.tar.gz
cerbero-03752ef89def58f8abdc506ae005fe4d8b6e8edf.tar.xz
recipes: glib: set GST_SDK_IOS for glib builds to allow ifdef-ing code
Useful for disabling parts of code we don't want on IOS, specially dynamic modules loading
-rw-r--r--recipes/glib.recipe5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/glib.recipe b/recipes/glib.recipe
index 85d7658..fd63736 100644
--- a/recipes/glib.recipe
+++ b/recipes/glib.recipe
@@ -90,10 +90,13 @@ class Recipe(recipe.Recipe):
if arch == Architecture.X86:
arch = 'i386'
self.files_devel.append(os.path.join('lib', 'glib-2.0', 'include', arch, 'glibconfig.h'))
- self.config_sh = 'CFLAGS="$CFLAGS -DHAVE_STRNDUP" ./configure'
+ extra_flags = ''
if self.config.target_platform == Platform.IOS:
# Disable mac OS X specifics
+ extra_flags = '-DGST_SDK_IOS=1'
self.configure_options += ' --disable-carbon --enable-dtrace=no --disable-modular-tests --disable-cocoa'
+
+ self.config_sh = 'CFLAGS="$CFLAGS -DHAVE_STRNDUP %s" ./configure' % extra_flags
elif self.config.target_platform == Platform.LINUX:
if self.config.target_distro == Distro.DEBIAN and self.config.target_distro_version in [DistroVersion.DEBIAN_SQUEEZE, DistroVersion.UBUNTU_LUCID, DistroVersion.UBUNTU_MAVERICK]:
self.config_sh = 'CFLAGS="%s" ./configure' % self._gio_flags('/usr/lib/gio/modules/', None, True)