3 if ENABLE_INTROSPECTION
4 noinst_LTLIBRARIES += libregress.la libgimarshallingtests.la
6 nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h
7 libregress_la_CFLAGS = $(GIO_CFLAGS) $(PYCAIRO_CFLAGS)
8 libregress_la_LDFLAGS = -module -avoid-version $(GIO_LIBS) $(PYCAIRO_LIBS)
9 nodist_libgimarshallingtests_la_SOURCES = $(GI_DATADIR)/tests/gimarshallingtests.c $(GI_DATADIR)/tests/gimarshallingtests.h
10 libgimarshallingtests_la_CFLAGS = $(GLIB_CFLAGS)
11 libgimarshallingtests_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS)
13 # This is a hack to make sure a shared library is built
14 libregress.la: $(libregress_la_OBJECTS) $(libregress_la_DEPENDENCIES)
15 $(LINK) -rpath $(pkgpyexecdir) $(libregress_la_LDFLAGS) $(libregress_la_OBJECTS) $(libregress_la_LIBADD) $(LIBS)
17 libgimarshallingtests.la: $(libgimarshallingtests_la_OBJECTS) $(libgimarshallingtests_la_DEPENDENCIES)
18 $(LINK) -rpath $(pkgpyexecdir) $(libgimarshallingtests_la_LDFLAGS) $(libgimarshallingtests_la_OBJECTS) $(libgimarhallingtests_la_LIBADD) $(LIBS)
20 # g-i doesn't ship these as shared libraries anymore; we build them here
21 Regress-1.0.gir: libregress.la Makefile
22 $(AM_V_GEN) g-ir-scanner --include=cairo-1.0 --include=Gio-2.0 \
23 --namespace=Regress --nsversion=1.0 \
24 --warn-all --warn-error \
25 --library=libregress.la \
26 --libtool="$(top_builddir)/libtool" \
28 $(nodist_libregress_la_SOURCES)
29 Regress-1.0.typelib: Regress-1.0.gir Makefile
30 $(AM_V_GEN) g-ir-compiler $< -o $@
32 GIMarshallingTests-1.0.gir: libgimarshallingtests.la Makefile
33 $(AM_V_GEN) g-ir-scanner --include=Gio-2.0 \
34 --namespace=GIMarshallingTests --nsversion=1.0 --symbol-prefix=gi_marshalling_tests \
35 --warn-all --warn-error \
36 --library=libgimarshallingtests.la \
37 --libtool="$(top_builddir)/libtool" \
39 $(nodist_libgimarshallingtests_la_SOURCES)
40 GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir Makefile
41 $(AM_V_GEN) g-ir-compiler $< -o $@
43 CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib
46 noinst_LTLIBRARIES += testhelper.la
48 testhelper_la_CFLAGS = -I$(top_srcdir)/gobject -I$(top_srcdir)/glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
49 testhelper_la_LDFLAGS = -module -avoid-version
50 testhelper_la_LIBADD = $(GLIB_LIBS)
51 testhelper_la_SOURCES = \
57 # This is a hack to make sure a shared library is built
58 testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
59 $(LINK) -rpath $(pkgpyexecdir) $(testhelper_la_LDFLAGS) $(testhelper_la_OBJECTS) $(testhelper_la_LIBADD) $(LIBS)
63 test -L $@ || $(LN_S) .libs/$@ $@
66 all: $(LTLIBRARIES:.la=.so)
89 if ENABLE_INTROSPECTION
104 EXTRA_DIST += $(TEST_FILES)
107 rm -f $(LTLIBRARIES:.la=.so) file.txt~
110 check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib
111 TEST_FILES="$(TEST_FILES)" PYTHONPATH=$(top_builddir):$(top_builddir)/tests:$${PYTHONPATH:+:$$PYTHONPATH} LD_LIBRARY_PATH=$(builddir)/.libs:$$LD_LIBRARY_PATH GI_TYPELIB_PATH=$(builddir) $(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py
114 EXEC_NAME="gdb --args" $(MAKE) check
117 EXEC_NAME="valgrind" G_SLICE=always-malloc G_DEBUG=gc-friendly $(MAKE) check