[gdk-pixbuf/macos-ci] Deal with glib-compile-resources not in the PATH
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/macos-ci] Deal with glib-compile-resources not in the PATH
- Date: Mon, 4 Jan 2021 00:41:46 +0000 (UTC)
commit c1c91ac39a0cdf8a575fc8746b15d01559f92815
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jan 4 00:36:18 2021 +0000
Deal with glib-compile-resources not in the PATH
The gen-resources.py script must be aware of the location of
glib-compile-resources, in case it's not in the PATH.
build-aux/gen-resources.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/build-aux/gen-resources.py b/build-aux/gen-resources.py
index 3f790b6c9..4bf507efc 100644
--- a/build-aux/gen-resources.py
+++ b/build-aux/gen-resources.py
@@ -8,6 +8,7 @@ import argparse
import os
argparser = argparse.ArgumentParser(description='Compile resources')
+argparser.add_argument('--glib-compile-resources', metavar='PATH', help='Path to glib-compile-resources')
argparser.add_argument('--pixdata', metavar='PATH', help='Path to gdk-pixbuf-pixdata')
argparser.add_argument('--loaders', metavar='PATH', help='Path to the loaders.cache file')
argparser.add_argument('--sourcedir', metavar='PATH', help='Path to the source directory')
@@ -20,7 +21,13 @@ group.add_argument('--source', help='Generate source file', action='store_true')
args = argparser.parse_args()
-cmd = ['glib-compile-resources']
+cmd = []
+
+if args.glib_compile_resources:
+ cmd += [args.glib_compile_resources]
+else:
+ cmd += ['glib-compile-resources']
+
if args.header:
cmd += ['--generate-header']
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]