diff options
author | Colin Walters <walters@src.gnome.org> | 2008-08-28 21:19:22 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-08-28 21:19:22 +0000 |
commit | 33ce153ff89ca8511cbb557cc510e9ae08f7999e (patch) | |
tree | e9741ac0ceb20be978516f88b8cc4e3318198a65 /tools/compiler.c | |
parent | 20311dea2f0423f9a7655e648da6a01c62422645 (diff) | |
download | gobject-introspection-33ce153ff89ca8511cbb557cc510e9ae08f7999e.tar.gz |
Expand aliases when generating typelibs
* gir/Makefile.am: Use --includedir
* girepository/girparser.c: Recursively parse
includes to pull in aliases and expand them.
We need this to avoid putting unknown names in
the typelibs.
* tools/compiler.c: Add --includedir option.
svn path=/trunk/; revision=512
Diffstat (limited to 'tools/compiler.c')
-rw-r--r-- | tools/compiler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/compiler.c b/tools/compiler.c index b7112f22..4c47cb6d 100644 --- a/tools/compiler.c +++ b/tools/compiler.c @@ -36,6 +36,7 @@ gboolean code = FALSE; gboolean no_init = FALSE; +gchar **includedirs = NULL; gchar **input = NULL; gchar *output = NULL; gchar *mname = NULL; @@ -160,6 +161,7 @@ static GOptionEntry options[] = { { "code", 0, 0, G_OPTION_ARG_NONE, &code, "emit C code", NULL }, { "no-init", 0, 0, G_OPTION_ARG_NONE, &no_init, "do not create _init() function", NULL }, + { "includedir", 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &includedirs, "include directories in GIR search path", NULL }, { "output", 'o', 0, G_OPTION_ARG_FILENAME, &output, "output file", "FILE" }, { "module", 'm', 0, G_OPTION_ARG_STRING, &mname, "module to compile", "NAME" }, { "shared-library", 'l', 0, G_OPTION_ARG_FILENAME, &shlib, "shared library", "FILE" }, |