diff options
author | Johan Dahlin <jdahlin@litl.com> | 2009-12-14 17:21:54 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-12-14 20:59:56 -0200 |
commit | ca7865b8b29e8a764e3511d556e16c00432c2fd2 (patch) | |
tree | 703be5f949a57e370ea9716c38506033aca0fd6d /tests/offsets | |
parent | db381df952f39a2a50ca29e83bfe1d3235edd3ee (diff) | |
download | gobject-introspection-ca7865b8b29e8a764e3511d556e16c00432c2fd2.tar.gz |
Add a Makefile.introspection
This will make it easier for third-party projects to use
introspection by having easy make rules.
Diffstat (limited to 'tests/offsets')
-rw-r--r-- | tests/offsets/Makefile.am | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/offsets/Makefile.am b/tests/offsets/Makefile.am index f1a88c80..2a68da47 100644 --- a/tests/offsets/Makefile.am +++ b/tests/offsets/Makefile.am @@ -1,8 +1,10 @@ include $(top_srcdir)/common.mk +include $(top_srcdir)/Makefile.introspection BUILT_SOURCES = CLEANFILES = EXTRA_DIST = +INTROSPECTION_GIRS = check_LTLIBRARIES = check_PROGRAMS = @@ -18,19 +20,12 @@ liboffsets_la_CPPFLAGS = $(GIREPO_CFLAGS) # dummy rpath to get built dynamically (huh?) liboffsets_la_LDFLAGS = -avoid-version -rpath $(libdir) -offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile - $(CHECK_DEBUG) $(SCANNER) \ - --include=GObject-2.0 \ - --libtool="$(LIBTOOL)" \ - --library=liboffsets.la \ - --namespace=offsets \ - --nsversion=1.0 \ - --pkg gobject-2.0 \ - $(srcdir)/offsets.h $(srcdir)/offsets.c \ - --output $@ - -%.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile - $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@ +offsets-1.0.gir: liboffsets.la offsets.h +offsets_1_0_gir_INCLUDES = GObject-2.0 +offsets_1_0_gir_LIBS = liboffsets.la +offsets_1_0_gir_PACKAGES = gobject-2.0 +offsets_1_0_gir_FILES = $(srcdir)/offsets.h $(srcdir)/offsets.c +INTROSPECTION_GIRS += offsets-1.0.gir CLEANFILES += offsets-1.0.gir offsets-1.0.typelib |