diff options
author | Colin Walters <walters@verbum.org> | 2010-08-19 16:41:12 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-08-31 16:05:57 -0400 |
commit | c16ef2827e96fd11b2fd2997a59e6d90a40a5323 (patch) | |
tree | 8c0039370775dea44dc6257444feaf4200e8f59d /tests/Makefile.am | |
parent | 36aa515f1036978ced8d4ffb808260844f7229e0 (diff) | |
download | gobject-introspection-c16ef2827e96fd11b2fd2997a59e6d90a40a5323.tar.gz |
tests: Readd gimarshallingtests.[ch]
For backwards compatibility with tests, for now resurrect these
test cases (also, fix the namespacing on them while we're here).
Like Everything, these get installed in source form.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 49833f10..268ba1dd 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,14 +1,20 @@ SUBDIRS = . scanner repository offsets +EXTRA_DIST= BUILT_SOURCES= CLEANFILES= INCLUDES = $(GOBJECT_CFLAGS) LIBADD = $(GOBJECT_LIBS) -noinst_LTLIBRARIES = libeverything-1.0.la +testlib_LTLIBRARIES = libeverything-1.0.la libgimarshallingtests-1.0.la +testlibdir=$(prefix)/unused +install-testlibLTLIBRARIES: # prevent it from being installed libeverything_1_0_la_SOURCES = everything.c +libgimarshallingtests_1_0_la_SOURCES = gimarshallingtests.c + +EXTRA_DIST += gimarshallingtests.h BUILT_SOURCES += everything.c everything.h @@ -23,13 +29,29 @@ everything.c: everything-stamp.h everything.h: everything-stamp.h @true -Everything-1.0.gir: libeverything-1.0.la - $(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --reparse-validate --namespace=Everything --version=1.0 --library=libeverything-1.0.la everything.h everything.c --output=$@ +Everything-1.0.gir: libeverything-1.0.la Makefile + $(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --warn-error --reparse-validate \ + --namespace=Everything --nsversion=1.0 \ + --add-include-path=$(top_builddir)/gir --include=Gio-2.0 \ + --library=libeverything-1.0.la --output=$@ \ + everything.h everything.c Everything-1.0.typelib: Everything-1.0.gir $(AM_V_GEN) $(top_builddir)/tools/g-ir-compiler $< -o $@ +GIMarshallingTests-1.0.gir: libgimarshallingtests-1.0.la Makefile + $(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --warn-error --reparse-validate \ + --namespace=GIMarshallingTests --symbol-prefix=gi_marshalling_tests --nsversion=1.0 \ + --add-include-path=$(top_builddir)/gir --include=Gio-2.0 \ + --library=libgimarshallingtests-1.0.la --output=$@ \ + gimarshallingtests.h gimarshallingtests.c + +GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir + $(AM_V_GEN) $(top_builddir)/tools/g-ir-compiler $< -o $@ + +check: Everything-1.0.typelib GIMarshallingTests-1.0.typelib + install-data-local: - for src in everything.c everything.h; do \ + for src in everything.c everything.h gimarshallingtests.c gimarshallingtests.h; do \ install -m 644 -D $$src $(datadir)/gobject-introspection-1.0/tests/$$src; \ done |