diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-19 18:54:40 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-11-19 18:54:40 +0100 |
commit | dab94600227e7ea9501da0296b9ba28087ebfe59 (patch) | |
tree | 9fcc086982f3ff65a25a7a879c3bcdf1bf6781a6 /recipes | |
parent | 027c4e5049deea5c43051fd234b497e526b11220 (diff) |
recipes: Don't build tests on IOS
We can't really execute them anyway, and removes the issues with
'system()' not being available on IOS
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/orc.recipe | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/recipes/orc.recipe b/recipes/orc.recipe index 6f361f7e..c1992e2e 100644 --- a/recipes/orc.recipe +++ b/recipes/orc.recipe @@ -10,12 +10,17 @@ class Recipe(recipe.Recipe): autoreconf = True configure_options = '--enable-static' - files_libs = ['liborc-0.4', 'liborc-test-0.4'] + files_libs = ['liborc-0.4'] files_devel = ['include/orc-0.4', 'lib/pkgconfig/orc-0.4.pc', - 'bin/orc-bugreport%(bext)s', 'share/aclocal/orc.m4', - 'bin/orcc%(bext)s'] + 'share/aclocal/orc.m4', 'bin/orcc%(bext)s'] def prepare(self): + # Don't build testing helper library on ios + if self.config.target_platform in [Platform.IOS]: + self.configure_options += ' --disable-tests ' + else: + self.files_libs.append('liborc-test-0.4') + self.files_devel.append('bin/orc-bugreport%(bext)s') self.append_env['CFLAGS'] = " -Wno-error " self.append_env['CXXFLAGS'] = " -Wno-error " self.append_env['CPPFLAGS'] = " -Wno-error " |