summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-17 12:01:14 -0300
committerColin Walters <walters@verbum.org>2016-12-10 10:44:23 -0500
commiteea2447c4e4c1c98fda3ba212a9a9bbcc8655c90 (patch)
treed1f6e49563bdb0b8e9a497e1f3142d019992e681 /giscanner/scannermain.py
parent36d1a22eefa5020ba75002a2b0c348017c7ab2e3 (diff)
downloadgobject-introspection-eea2447c4e4c1c98fda3ba212a9a9bbcc8655c90.tar.gz
scanner: Add a way to specify extra libraries to link against
Currently the only way to get a library to link against the dumper program is through '--link' which implies that library will be defined in the 'libraries' field of the .gir. When using libtool, we link against dependencies of that library as the .la defines that, but when using --no-libtool that won't happen and the user needs to be able to define to what other libraries the program needs to be link against, and this is what the new --extra-library argument is about. https://bugzilla.gnome.org/show_bug.cgi?id=774625
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-xgiscanner/scannermain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 633496fc..095a43fb 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -140,6 +140,9 @@ def _get_option_parser():
parser.add_option("-l", "--library",
action="append", dest="libraries", default=[],
help="libraries of this unit")
+ parser.add_option("", "--extra-library",
+ action="append", dest="extra_libraries", default=[],
+ help="Extra libraries to link the binary against")
parser.add_option("-L", "--library-path",
action="append", dest="library_paths", default=[],
help="directories to search for libraries")