tests: don't link to libcairo when it was disabled
PATCH 1/2 tests: don't link to libcairo when it was disabled
Currently it's possible to have non-empty CAIRO_LIBS (because cairo was (mis)detected) and HAVE_CAIRO=0 (because user supplied --disable-cairo-tests).
Signed-off-by Marcin Ślusarz <[email protected]>
--- tests/kms/Makefile.am | 9 +++++++-- tests/modetest/Makefile.am | 5 ++++- tests/util/Makefile.am | 2 ++ 3 files changed, 13 insertions(+), 3 deletions(-)
tests/kms/Makefile.am +7 -2
@@ -30,7 +30,12 @@ noinst_PROGRAMS = \ endif kms_steal_crtc_SOURCES = kms-steal-crtc.c -kms_steal_crtc_LDADD = libkms-test.la ../util/libutil.la $(CAIRO_LIBS) +kms_steal_crtc_LDADD = libkms-test.la ../util/libutil.la kms_universal_planes_SOURCES = kms-universal-planes.c -kms_universal_planes_LDADD = libkms-test.la $(CAIRO_LIBS) +kms_universal_planes_LDADD = libkms-test.la + +if HAVE_CAIRO +kms_steal_crtc_LDADD += $(CAIRO_LIBS) +kms_universal_planes_LDADD += $(CAIRO_LIBS) +endif
tests/modetest/Makefile.am +4 -1
@@ -20,7 +20,10 @@ modetest_SOURCES = $(MODETEST_FILES) modetest_LDADD = \ $(top_builddir)/libdrm.la \ $(top_builddir)/tests/util/libutil.la \ - $(CAIRO_LIBS) \ -lpthread +if HAVE_CAIRO +modetest_LDADD += $(CAIRO_LIBS) +endif + EXTRA_DIST = Android.mk
tests/util/Makefile.am +2 -0
@@ -7,7 +7,9 @@ libutil_la_CPPFLAGS = \ -I$(top_srcdir)/include/drm \ -I$(top_srcdir) +if HAVE_CAIRO libutil_la_CFLAGS = \ $(CAIRO_CFLAGS) +endif libutil_la_SOURCES = $(UTIL_FILES)
Signature · 6 lines
2.1.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel