Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-11-12 12:04:54 (GMT)
committer Johan Dahlin <johan@src.gnome.org>2008-11-12 12:04:54 (GMT)
commit8401f6e5cbc509011e2b8e462806e3f678f905c8 (patch)
tree0fa1ff28f008743c993e3b3c5dce8cc93425f2d2 /tools
parentbb360d7d309488419d944d6ac4a4457bdcefe580 (diff)
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-xtools/g-ir-scanner5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index 82bbf34..337f9b6 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()