summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/Makefile.am
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-30 17:25:16 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-30 17:28:41 -0500
commit802153469d8763ed0dfe58590cee91aac1c49246 (patch)
treec08888f8e793377415a88e69bdf393835d5da867 /tests/libdimension/Makefile.am
parent4f40f29ade4a6b2c0b27ba902281718662cdde82 (diff)
downloaddimension-802153469d8763ed0dfe58590cee91aac1c49246.tar.xz
Test for GLX usability.
Diffstat (limited to 'tests/libdimension/Makefile.am')
-rw-r--r--tests/libdimension/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/libdimension/Makefile.am b/tests/libdimension/Makefile.am
index 252deba..4dbe761 100644
--- a/tests/libdimension/Makefile.am
+++ b/tests/libdimension/Makefile.am
@@ -39,7 +39,7 @@ if !GL
XFAIL_TESTS += gl-test
endif
-libdimension_tests_la_SOURCES = tests.c tests.h
+libdimension_tests_la_SOURCES = tests.h
if PGO
libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension-pgo.la
@@ -47,7 +47,12 @@ else
libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
endif
+if GLX
+libdimension_tests_la_SOURCES += display.c
libdimension_tests_la_LIBADD += -lX11 -lGL
+else
+libdimension_tests_la_SOURCES += display-stubs.c
+endif
error_test_SOURCES = error.c
error_test_LDADD = libdimension-tests.la