gobject-introspection r977 - in trunk: . docs gir giscanner tests/everything tests/offsets tests/scanner tools
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r977 - in trunk: . docs gir giscanner tests/everything tests/offsets tests/scanner tools
- Date: Wed, 26 Nov 2008 15:47:35 +0000 (UTC)
Author: walters
Date: Wed Nov 26 15:47:35 2008
New Revision: 977
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=977&view=rev
Log:
Add --libtool option which we expect Automake-using people to pass
Modified:
trunk/ChangeLog
trunk/docs/g-ir-scanner.1
trunk/gir/Makefile.am
trunk/giscanner/dumper.py
trunk/tests/everything/Makefile.am
trunk/tests/offsets/Makefile.am
trunk/tests/scanner/Makefile.am
trunk/tools/g-ir-scanner
Modified: trunk/docs/g-ir-scanner.1
==============================================================================
--- trunk/docs/g-ir-scanner.1 (original)
+++ trunk/docs/g-ir-scanner.1 Wed Nov 26 15:47:35 2008
@@ -51,6 +51,9 @@
Disable usage of libtool for compiling stub introspection binary. Use this
if your build system does not require libtool.
.TP
+.B \---libtool
+Full path to libtool executable. Typically used for Automake systems.
+.TP
.B ---nsversion=VERSION
The namespace version. For instance 1.0. This is usually the platform version,
eg 2.0 for Gtk+, not 2.12.7.
Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am (original)
+++ trunk/gir/Makefile.am Wed Nov 26 15:47:35 2008
@@ -19,6 +19,7 @@
--noclosure \
--output $@ \
--strip-prefix=g \
+ --libtool="$(LIBTOOL)" \
--library=$(GLIB_LIBRARY) \
$(CPPFLAGS) \
-I$(GLIB_INCLUDEDIR) \
@@ -49,6 +50,7 @@
--noclosure \
--output $@ \
--strip-prefix=g \
+ --libtool="$(LIBTOOL)" \
--include=GLib-2.0 \
--library=$(GOBJECT_LIBRARY) \
-I$(GOBJECT_INCLUDEDIR) \
@@ -75,6 +77,7 @@
--noclosure \
--output $@ \
--strip-prefix=g \
+ --libtool="$(LIBTOOL)" \
--include=GLib-2.0 \
--library=$(GMODULE_LIBRARY) \
-I$(GMODULE_INCLUDEDIR) \
@@ -106,6 +109,7 @@
--noclosure \
--output $@ \
--strip-prefix=g \
+ --libtool="$(LIBTOOL)" \
--include=GObject-2.0 \
--library=$(GIO_LIBRARY) \
-I$(GIO_INCLUDEDIR) \
@@ -130,6 +134,7 @@
--noclosure \
--output $@ \
--strip-prefix=g \
+ --libtool="$(LIBTOOL)" \
--include=GObject-2.0 \
--library=girepository \
-I$(srcdir)/girepository \
Modified: trunk/giscanner/dumper.py
==============================================================================
--- trunk/giscanner/dumper.py (original)
+++ trunk/giscanner/dumper.py Wed Nov 26 15:47:35 2008
@@ -128,15 +128,22 @@
def _use_libtool_infection(self):
libtool_infection = not self._options.nolibtool
if not libtool_infection:
- return False
+ return None
+
+ if self._options.libtool_path:
+ # Automake by default sets:
+ # LIBTOOL = $(SHELL) $(top_builddir)/libtool
+ # To be strictly correct we would have to parse shell. For now
+ # we simply split().
+ return self._options.libtool_path.split()
try:
subprocess.check_call(['libtool', '--version'])
except subprocess.CalledProcessError, e:
# If libtool's not installed, assume we don't need it
- return False
+ return None
- return True
+ return ['libtool']
def _compile(self, output, *sources):
args = [self._compiler_cmd]
@@ -159,8 +166,10 @@
def _link(self, output, *sources):
args = []
- if self._use_libtool_infection():
- args.extend(['libtool', '--mode=link'])
+ libtool = self._use_libtool_infection()
+ if libtool:
+ args.extend(libtool)
+ args.append('--mode=link')
args.extend([self._linker_cmd, '-o', output])
Modified: trunk/tests/everything/Makefile.am
==============================================================================
--- trunk/tests/everything/Makefile.am (original)
+++ trunk/tests/everything/Makefile.am Wed Nov 26 15:47:35 2008
@@ -33,6 +33,7 @@
Everything-$(TYPELIB_VERSION).gir: libgirepository-everything.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
+ --libtool="$(LIBTOOL)" \
--library=girepository-everything \
--namespace=Everything --nsversion=$(TYPELIB_VERSION) \
--pkg gobject-2.0 \
Modified: trunk/tests/offsets/Makefile.am
==============================================================================
--- trunk/tests/offsets/Makefile.am (original)
+++ trunk/tests/offsets/Makefile.am Wed Nov 26 15:47:35 2008
@@ -20,6 +20,7 @@
offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
$(CHECK_DEBUG) $(SCANNER) \
+ --libtool="$(LIBTOOL)" \
--library=offsets \
--namespace=offsets \
--nsversion=1.0 \
Modified: trunk/tests/scanner/Makefile.am
==============================================================================
--- trunk/tests/scanner/Makefile.am (original)
+++ trunk/tests/scanner/Makefile.am Wed Nov 26 15:47:35 2008
@@ -42,6 +42,7 @@
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
--include=utility-1.0 \
+ --libtool="$(LIBTOOL)" \
--library=annotation \
--namespace=annotation \
--nsversion=1.0 \
@@ -54,6 +55,7 @@
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
--include=utility-1.0 \
+ --libtool="$(LIBTOOL)" \
--library=drawable \
--namespace=drawable \
--nsversion=1.0 \
@@ -72,6 +74,7 @@
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
--include=utility-1.0 \
+ --libtool="$(LIBTOOL)" \
--library=foo \
--namespace=foo \
--nsversion=1.0 \
@@ -83,6 +86,7 @@
utility-1.0.gir: libutility.la utility.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
+ --libtool="$(LIBTOOL)" \
--library=utility \
--namespace=utility \
--nsversion=1.0 \
@@ -95,6 +99,7 @@
GtkFrob-1.0.gir: libgtkfrob.la gtkfrob.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
+ --libtool="$(LIBTOOL)" \
--library=gtkfrob \
--namespace=GtkFrob \
--strip-prefix=Gtk \
@@ -112,6 +117,7 @@
BarApp-1.0.gir: barapp $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
$(SCANNER) \
--include=GObject-2.0 \
+ --libtool="$(LIBTOOL)" \
--program=./barapp \
--namespace=BarApp \
--strip-prefix=Bar \
Modified: trunk/tools/g-ir-scanner
==============================================================================
--- trunk/tools/g-ir-scanner (original)
+++ trunk/tools/g-ir-scanner Wed Nov 26 15:47:35 2008
@@ -67,6 +67,9 @@
parser.add_option("", "--program-arg",
action="append", dest="program_args", default=[],
help="extra arguments to program")
+ parser.add_option("", "--libtool",
+ action="store", dest="libtool_path", default=None,
+ help="full path to libtool")
parser.add_option("", "--no-libtool",
action="store_true", dest="nolibtool", default=False,
help="use libtool")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]