summaryrefslogtreecommitdiff
path: root/giscanner/config.py.in
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-06-01 09:18:43 +0200
committerColin Walters <walters@verbum.org>2009-06-11 13:53:01 -0400
commitdb214ed923cfe9fc75432d5338e8a3b0d9c83d25 (patch)
treebc4afafbeacf2d7584bcf7bd326ad88d58991cfd /giscanner/config.py.in
parent31317a9ffa31af959dd51eedfa2f31f586687475 (diff)
downloadgobject-introspection-db214ed923cfe9fc75432d5338e8a3b0d9c83d25.tar.gz
Make g-ir-compiler find files installed by make install
When ./configure --prefix $HOME/some/where is used gobject-introspection will happily install the files into $HOME/some/where/data/gir-1.0 but it will refuse to find them. Apply the same trick as in girepository/girepository.c:init_globals to find the gir files. Unifiy the name gir-1.0 in GIR_SUFFIX and use it throughout the project, introduce GIR_DIR which holds the path to the gir files and update girparser and transformer.py to look into this path.
Diffstat (limited to 'giscanner/config.py.in')
-rw-r--r--giscanner/config.py.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/config.py.in b/giscanner/config.py.in
index 8d571309..9de1f48c 100644
--- a/giscanner/config.py.in
+++ b/giscanner/config.py.in
@@ -21,3 +21,5 @@
DATADIR = "@datarootdir@"
DATADIR = DATADIR.replace(
"${prefix}", "@prefix@")
+GIR_DIR = "@GIR_DIR@"
+GIR_SUFFIX = "@GIR_SUFFIX@"