diff options
author | Mikhail Fludkov <misha@pexip.com> | 2016-10-14 18:41:48 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2017-03-20 17:48:14 +0100 |
commit | a731db5908b79b97277be4f5138b46010c2dd616 (patch) | |
tree | 0163aaae8a804df662b1b4080f103d1cd3c59eee | |
parent | 2c329edb870787be1db4d5ecafdf221bead8b271 (diff) | |
download | pygobject-a731db5908b79b97277be4f5138b46010c2dd616.tar.gz |
tests: build libregress with disabled cairo
https://bugzilla.gnome.org/show_bug.cgi?id=772949
-rw-r--r-- | tests/Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index e6603820..042c8d50 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -32,13 +32,18 @@ GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir Makefile $(AM_V_GEN) $(INTROSPECTION_COMPILER) $< -o $@ # regress.c needs cairo -if ENABLE_CAIRO check_LTLIBRARIES += libregress.la test_typelibs += Regress-1.0.typelib nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h # We don't control the source so don't pass WARN_CFLAGS etc +if ENABLE_CAIRO libregress_la_CFLAGS = $(GIO_CFLAGS) $(CAIRO_CFLAGS) libregress_la_LDFLAGS = -module -avoid-version $(GIO_LIBS) $(CAIRO_LIBS) -no-undefined +else +libregress_la_CFLAGS = $(GIO_CFLAGS) -D_GI_DISABLE_CAIRO +libregress_la_LDFLAGS = -module -avoid-version $(GIO_LIBS) -no-undefined +endif + libregress.la: $(libregress_la_OBJECTS) $(libregress_la_DEPENDENCIES) $(AM_V_GEN) $(LINK) -rpath $(pkgpyexecdir) $(libregress_la_LDFLAGS) $(libregress_la_OBJECTS) $(libregress_la_LIBADD) $(LIBS) @@ -55,8 +60,6 @@ Regress-1.0.gir: libregress.la Makefile Regress-1.0.typelib: Regress-1.0.gir Makefile $(AM_V_GEN) $(INTROSPECTION_COMPILER) $< -o $@ -endif # ENABLE_CAIRO - gschemas.compiled: org.gnome.test.gschema.xml glib-compile-schemas --targetdir=. --schema-file=$< |