summaryrefslogtreecommitdiff
path: root/recipes/glib-networking-static.recipe
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/glib-networking-static.recipe')
-rw-r--r--recipes/glib-networking-static.recipe19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/glib-networking-static.recipe b/recipes/glib-networking-static.recipe
index 61a6b1c..752b9b2 100644
--- a/recipes/glib-networking-static.recipe
+++ b/recipes/glib-networking-static.recipe
@@ -17,6 +17,25 @@ class Recipe(recipe.Recipe):
self.repo_dir = self.repo_dir.replace('-static', '')
self.tmp_destdir = os.path.join(self.build_dir, 'static-build')
+ querymodule_path = None
+ if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
+ # For the universal build we need to use the right gio-querymodules
+ arch = self.config.target_arch
+
+ querymodule_path = os.path.join(self.config.prefix, arch, 'bin', 'gio-querymodules')
+ if not os.path.exists(querymodule_path):
+ querymodule_path = None
+
+ if not querymodule_path:
+ querymodule_path = os.path.join(self.config.prefix, 'bin', 'gio-querymodules')
+ if not os.path.exists(querymodule_path):
+ raise FatalError("Could not find gio-querymodules")
+
+ if not self.config.prefix_is_executable():
+ querymodule_path = 'true'
+
+ self.config_sh = 'GIO_QUERYMODULES=%s %s' % (querymodule_path, self.config_sh)
+
def install(self):
plugins_dir = os.path.join(self.config.prefix,
os.path.dirname(self.files_devel[0]))