diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-11-12 12:04:54 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-12 12:04:54 +0000 |
commit | 8401f6e5cbc509011e2b8e462806e3f678f905c8 (patch) | |
tree | 0fa1ff28f008743c993e3b3c5dce8cc93425f2d2 /tools | |
parent | bb360d7d309488419d944d6ac4a4457bdcefe580 (diff) | |
download | gobject-introspection-8401f6e5cbc509011e2b8e462806e3f678f905c8.tar.gz |
Add a GIRepository-2.0.gir. Change the libtool lookup slightly so we can
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* gir/Makefile.am:
* giscanner/glibtransformer.py:
* tools/g-ir-scanner:
Add a GIRepository-2.0.gir. Change the libtool lookup slightly
so we can just pass in --library=foo/bar/baz.la and the scanner
does the right thing.
Don't warn for _get_type() functions if they don't take any
parameters
svn path=/trunk/; revision=890
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/g-ir-scanner | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner index 82bbf34d..337f9b6e 100755 --- a/tools/g-ir-scanner +++ b/tools/g-ir-scanner @@ -211,7 +211,6 @@ def main(args): if not options.libraries: _error("Must specify --library at least one primary library") - libraries = options.libraries for package in options.packages: output = subprocess.Popen(['pkg-config', '--cflags', package], @@ -252,7 +251,6 @@ def main(args): os.environ['LPATH'] = ':'.join([lpath, library_path]) else: os.environ['LPATH'] = library_path - filenames = [] for arg in args: if (arg.endswith('.c') or @@ -290,9 +288,10 @@ def main(args): # Transform the C AST nodes into higher level # GLib/GObject nodes glibtransformer = GLibTransformer(transformer, noclosure=options.noclosure) + libraries = [] if options.libraries: for library in options.libraries: - glibtransformer.add_library(library) + libraries.append(glibtransformer.add_library(library)) namespace = glibtransformer.parse() |