summaryrefslogtreecommitdiff
path: root/tools/compiler.c
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-08-28 22:13:00 +0000
committerColin Walters <walters@src.gnome.org>2008-08-28 22:13:00 +0000
commit19d4a35e1c9afd899c506707aff0432d7270f208 (patch)
tree7aab9e18281f1aa94d31f1af5405cefbd1c243f5 /tools/compiler.c
parentc68a013968d6273b4b676f6006d8f5ff84716a82 (diff)
downloadgobject-introspection-19d4a35e1c9afd899c506707aff0432d7270f208.tar.gz
Fix --includedir handling
* tests/scanner/Makefile.am: Pass the right --includedir args. Add a Makefile dep. * tools/compiler.c: Pass includedirs down. * girepository/girparser.c: Actually put includedirs in context, pass down. Fix locate_gir. svn path=/trunk/; revision=514
Diffstat (limited to 'tools/compiler.c')
-rw-r--r--tools/compiler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/compiler.c b/tools/compiler.c
index 4c47cb6d..68568b60 100644
--- a/tools/compiler.c
+++ b/tools/compiler.c
@@ -201,13 +201,14 @@ main (int argc, char ** argv)
return 1;
}
- g_debug ("[parsing] start");
+ g_debug ("[parsing] start, %d includes",
+ includedirs ? g_strv_length (includedirs) : 0);
modules = NULL;
for (i = 0; input[i]; i++)
{
GList *mods;
- mods = g_ir_parse_file (input[i], &error);
+ mods = g_ir_parse_file (input[i], (const char*const*) includedirs, &error);
if (mods == NULL)
{