diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-08-13 23:06:51 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-08-17 00:22:19 -0400 |
commit | fa71c815d441ab922b1e5501f534f2c3d1fceef8 (patch) | |
tree | a86335d50e2fe924969ca29c6ef40b6aecdb338e /tests | |
parent | af6bcb48d777f683384d9b8497e1b0edba5b16e7 (diff) | |
download | gobject-introspection-fa71c815d441ab922b1e5501f534f2c3d1fceef8.tar.gz |
Support passing --library=lib<foo>.la
In addition to the current --library=<foo>, support --library=lib<foo>.la.
This makes it unambiguous that we are referencing an uninstalled
library and allows accurate extraction of the shared library name
for the uninstalled library.
* tests/scanner/Makefile.am tests/offsets/Makefile.am: Use the
new form of --library=. Also some LD_LIBRARY_PATH frobbing as needed.
*-expected.gir *-expected.tgir: We now pick out the shared library
accurately, so fix shared-library="" in our reference girs. (The
comparison may need some pre-sanitization now to work on non-ELF)
http://bugzilla.gnome.org/show_bug.cgi?id=591669
Diffstat (limited to 'tests')
-rw-r--r-- | tests/offsets/Makefile.am | 9 | ||||
-rw-r--r-- | tests/scanner/GtkFrob-1.0-expected.gir | 2 | ||||
-rw-r--r-- | tests/scanner/GtkFrob-1.0-expected.tgir | 2 | ||||
-rw-r--r-- | tests/scanner/Makefile.am | 10 | ||||
-rw-r--r-- | tests/scanner/annotation-1.0-expected.gir | 2 | ||||
-rw-r--r-- | tests/scanner/annotation-1.0-expected.tgir | 2 | ||||
-rw-r--r-- | tests/scanner/drawable-1.0-expected.gir | 2 | ||||
-rw-r--r-- | tests/scanner/drawable-1.0-expected.tgir | 2 | ||||
-rw-r--r-- | tests/scanner/foo-1.0-expected.gir | 5 | ||||
-rw-r--r-- | tests/scanner/foo-1.0-expected.tgir | 2 | ||||
-rw-r--r-- | tests/scanner/utility-1.0-expected.gir | 2 | ||||
-rw-r--r-- | tests/scanner/utility-1.0-expected.tgir | 2 |
12 files changed, 23 insertions, 19 deletions
diff --git a/tests/offsets/Makefile.am b/tests/offsets/Makefile.am index b292ef6e..c725bbc0 100644 --- a/tests/offsets/Makefile.am +++ b/tests/offsets/Makefile.am @@ -22,7 +22,7 @@ offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile $(CHECK_DEBUG) $(SCANNER) \ --include=GObject-2.0 \ --libtool="$(SHAVE_SAVED_LIBTOOL)" \ - --library=offsets \ + --library=liboffsets.la \ --namespace=offsets \ --nsversion=1.0 \ --pkg gobject-2.0 \ @@ -30,7 +30,8 @@ offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile --output $@ %.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile - $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@ + LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:$(builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \ + $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@ CLEANFILES += offsets-1.0.gir offsets-1.0.typelib @@ -52,8 +53,8 @@ CLEANFILES += gitestoffsets.c ############################################################ check-local: offsets-1.0.typelib - LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:} GI_TYPELIB_PATH=:$(top_builddir)/gir \ - gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected + LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:$(builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \ + GI_TYPELIB_PATH=:$(top_builddir)/gir gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected diff -u offsets.compiled offsets.introspected CLEANFILES += offsets.compiled offsets.introspected diff --git a/tests/scanner/GtkFrob-1.0-expected.gir b/tests/scanner/GtkFrob-1.0-expected.gir index 423c0539..7b8c500b 100644 --- a/tests/scanner/GtkFrob-1.0-expected.gir +++ b/tests/scanner/GtkFrob-1.0-expected.gir @@ -11,7 +11,7 @@ and/or use gtk-doc annotations. --> <package name="gobject-2.0"/> <namespace name="GtkFrob" version="1.0" - shared-library="gtkfrob" + shared-library="libgtkfrob.so" c:prefix="Gtk"> <function name="language_manager_get_default" c:identifier="gtk_frob_language_manager_get_default"> diff --git a/tests/scanner/GtkFrob-1.0-expected.tgir b/tests/scanner/GtkFrob-1.0-expected.tgir index 0d101be3..078d65f6 100644 --- a/tests/scanner/GtkFrob-1.0-expected.tgir +++ b/tests/scanner/GtkFrob-1.0-expected.tgir @@ -5,7 +5,7 @@ xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> <include name="GObject" version="2.0"/> <include name="GLib" version="2.0"/> - <namespace name="GtkFrob" version="1.0" shared-library="gtkfrob" c:prefix="Gtk"> + <namespace name="GtkFrob" version="1.0" shared-library="libgtkfrob.so" c:prefix="Gtk"> <function name="language_manager_get_default" c:identifier="gtk_frob_language_manager_get_default"> <return-value transfer-ownership="none"> <type name="none"/> diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am index 36aedbf7..2c6ac7ab 100644 --- a/tests/scanner/Makefile.am +++ b/tests/scanner/Makefile.am @@ -43,7 +43,7 @@ annotation-1.0.gir: libannotation.la annotation.c annotation.h utility-1.0.gir $ --include=GObject-2.0 \ --include=utility-1.0 \ --libtool="$(LIBTOOL)" \ - --library=annotation \ + --library=libannotation.la \ --namespace=annotation \ --nsversion=1.0 \ --pkg gobject-2.0 \ @@ -56,7 +56,7 @@ drawable-1.0.gir: libdrawable.la drawable.c drawable.h utility-1.0.gir $(SCANNER --include=GObject-2.0 \ --include=utility-1.0 \ --libtool="$(LIBTOOL)" \ - --library=drawable \ + --library=libdrawable.la \ --namespace=drawable \ --nsversion=1.0 \ --pkg gobject-2.0 \ @@ -70,7 +70,7 @@ foo-1.0.gir: libfoo.la foo.c foo.h utility-1.0.gir $(SCANNER_BIN) $(SCANNER_LIBS --include=utility-1.0 \ --c-include="foo.h" \ --libtool="$(LIBTOOL)" \ - --library=foo \ + --library=libfoo.la \ --namespace=foo \ --nsversion=1.0 \ --pkg gobject-2.0 \ @@ -82,7 +82,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 \ + --library=libutility.la \ --namespace=utility \ --nsversion=1.0 \ --pkg gobject-2.0 \ @@ -95,7 +95,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 \ + --library=libgtkfrob.la \ --namespace=GtkFrob \ --strip-prefix=Gtk \ --nsversion=1.0 \ diff --git a/tests/scanner/annotation-1.0-expected.gir b/tests/scanner/annotation-1.0-expected.gir index 3715edca..f01d01fa 100644 --- a/tests/scanner/annotation-1.0-expected.gir +++ b/tests/scanner/annotation-1.0-expected.gir @@ -12,7 +12,7 @@ and/or use gtk-doc annotations. --> <package name="gobject-2.0"/> <namespace name="annotation" version="1.0" - shared-library="annotation" + shared-library="libannotation.so" c:prefix="annotation"> <callback name="Callback" c:type="AnnotationCallback" diff --git a/tests/scanner/annotation-1.0-expected.tgir b/tests/scanner/annotation-1.0-expected.tgir index 76a20edb..b22080ae 100644 --- a/tests/scanner/annotation-1.0-expected.tgir +++ b/tests/scanner/annotation-1.0-expected.tgir @@ -6,7 +6,7 @@ <include name="utility" version="1.0"/> <include name="GObject" version="2.0"/> <include name="GLib" version="2.0"/> - <namespace name="annotation" version="1.0" shared-library="annotation" c:prefix="annotation"> + <namespace name="annotation" version="1.0" shared-library="libannotation.so" c:prefix="annotation"> <callback name="Callback"> <return-value transfer-ownership="none"> <type name="int"/> diff --git a/tests/scanner/drawable-1.0-expected.gir b/tests/scanner/drawable-1.0-expected.gir index 6f82e3ab..da637770 100644 --- a/tests/scanner/drawable-1.0-expected.gir +++ b/tests/scanner/drawable-1.0-expected.gir @@ -12,7 +12,7 @@ and/or use gtk-doc annotations. --> <package name="gobject-2.0"/> <namespace name="drawable" version="1.0" - shared-library="drawable" + shared-library="libdrawable.so" c:prefix="drawable"> <class name="TestDrawable" c:type="TestDrawable" diff --git a/tests/scanner/drawable-1.0-expected.tgir b/tests/scanner/drawable-1.0-expected.tgir index 618cf3af..705235e7 100644 --- a/tests/scanner/drawable-1.0-expected.tgir +++ b/tests/scanner/drawable-1.0-expected.tgir @@ -6,7 +6,7 @@ <include name="utility" version="1.0"/> <include name="GObject" version="2.0"/> <include name="GLib" version="2.0"/> - <namespace name="drawable" version="1.0" shared-library="drawable" c:prefix="drawable"> + <namespace name="drawable" version="1.0" shared-library="libdrawable.so" c:prefix="drawable"> <class name="TestDrawable" parent="GObject.Object" glib:type-struct="TestDrawableClass" abstract="1" glib:type-name="TestDrawable" glib:get-type="test_drawable_get_type"> <field name="parent_instance"> <type name="GObject.Object"/> diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir index 839a8dc1..85e2ace0 100644 --- a/tests/scanner/foo-1.0-expected.gir +++ b/tests/scanner/foo-1.0-expected.gir @@ -11,7 +11,10 @@ and/or use gtk-doc annotations. --> <include name="utility" version="1.0"/> <package name="gobject-2.0"/> <c:include name="foo.h"/> - <namespace name="foo" version="1.0" shared-library="foo" c:prefix="foo"> + <namespace name="foo" + version="1.0" + shared-library="libfoo.so" + c:prefix="foo"> <alias name="List" target="GLib.SList" c:type="FooList"/> <alias name="ObjectCookie" target="any" c:type="FooObjectCookie"/> <alias name="XEvent" target="none" c:type="FooXEvent"/> diff --git a/tests/scanner/foo-1.0-expected.tgir b/tests/scanner/foo-1.0-expected.tgir index 9a43eccb..fe09907c 100644 --- a/tests/scanner/foo-1.0-expected.tgir +++ b/tests/scanner/foo-1.0-expected.tgir @@ -6,7 +6,7 @@ <include name="utility" version="1.0"/> <include name="GObject" version="2.0"/> <include name="GLib" version="2.0"/> - <namespace name="foo" version="1.0" shared-library="foo" c:prefix="foo"> + <namespace name="foo" version="1.0" shared-library="libfoo.so" c:prefix="foo"> <enumeration name="ASingle"> <member name="some_single_enum" value="0"/> </enumeration> diff --git a/tests/scanner/utility-1.0-expected.gir b/tests/scanner/utility-1.0-expected.gir index 8c6a602b..1b2fe84f 100644 --- a/tests/scanner/utility-1.0-expected.gir +++ b/tests/scanner/utility-1.0-expected.gir @@ -11,7 +11,7 @@ and/or use gtk-doc annotations. --> <package name="gobject-2.0"/> <namespace name="utility" version="1.0" - shared-library="utility" + shared-library="libutility.so" c:prefix="utility"> <alias name="Glyph" target="uint32" c:type="UtilityGlyph"/> <record name="Buffer" c:type="UtilityBuffer"> diff --git a/tests/scanner/utility-1.0-expected.tgir b/tests/scanner/utility-1.0-expected.tgir index d25bd59f..ec4597a7 100644 --- a/tests/scanner/utility-1.0-expected.tgir +++ b/tests/scanner/utility-1.0-expected.tgir @@ -5,7 +5,7 @@ xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> <include name="GObject" version="2.0"/> <include name="GLib" version="2.0"/> - <namespace name="utility" version="1.0" shared-library="utility" c:prefix="utility"> + <namespace name="utility" version="1.0" shared-library="libutility.so" c:prefix="utility"> <record name="Buffer"> <field name="data" writable="1"> <type name="any"/> |