summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-01-04 00:36:18 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2021-01-04 00:36:18 +0000
commitc1c91ac39a0cdf8a575fc8746b15d01559f92815 (patch)
tree6e53d967f4cf579d4afba5e5bb5e53ef7f5fbd76 /build-aux
parent9326d96a149c71358faf032b709c047a79d7e13b (diff)
downloadgdk-pixbuf-c1c91ac39a0cdf8a575fc8746b15d01559f92815.tar.gz
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.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/gen-resources.py9
1 files changed, 8 insertions, 1 deletions
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: