summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc/Makefile.am
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-09-04 21:16:04 -0700
committerAndreas Boll <[email protected]>2013-01-10 22:01:09 +0100
commitc236fa82c233b84a40c8198c39dd5daf0e23d07c (patch)
treefdde402ad7359716a208d7c0e6dcbc23ca22415c /src/gallium/state_trackers/xvmc/Makefile.am
parent984562d63020160da831d4ae03f46031748ce601 (diff)
state_trackers/xvmc/test: Convert to automake
Diffstat (limited to 'src/gallium/state_trackers/xvmc/Makefile.am')
-rw-r--r--src/gallium/state_trackers/xvmc/Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xvmc/Makefile.am b/src/gallium/state_trackers/xvmc/Makefile.am
index b3b2e2f4ad3..973ac5dfa18 100644
--- a/src/gallium/state_trackers/xvmc/Makefile.am
+++ b/src/gallium/state_trackers/xvmc/Makefile.am
@@ -35,6 +35,29 @@ libxvmctracker_la_SOURCES = \
subpicture.c \
attributes.c
+check_PROGRAMS = \
+ tests/test_context \
+ tests/test_surface \
+ tests/test_subpicture \
+ tests/test_blocks \
+ tests/test_rendering
+TESTS = $(check_PROGRAMS)
+noinst_PROGRAMS = tests/xvmc_bench
+
+TEST_LIBS = -lXvMCW -lXvMC -lXv -lX11
+tests_test_context_SOURCES = tests/test_context.c tests/testlib.c
+tests_test_context_LDADD = $(TEST_LIBS)
+tests_test_surface_SOURCES = tests/test_surface.c tests/testlib.c
+tests_test_surface_LDADD = $(TEST_LIBS)
+tests_test_subpicture_SOURCES = tests/test_subpicture.c tests/testlib.c
+tests_test_subpicture_LDADD = $(TEST_LIBS)
+tests_test_blocks_SOURCES = tests/test_blocks.c tests/testlib.c
+tests_test_blocks_LDADD = $(TEST_LIBS)
+tests_test_rendering_SOURCES = tests/test_rendering.c tests/testlib.c
+tests_test_rendering_LDADD = $(TEST_LIBS)
+tests_xvmc_bench_SOURCES = tests/xvmc_bench.c tests/testlib.c
+tests_xvmc_bench_LDADD = $(TEST_LIBS)
+
#XXX: Delete this when all targets that rely on xvmctracker are converted to automake.
all-local: libxvmctracker.la
ln -f $(builddir)/.libs/libxvmctracker.a $(builddir)/libxvmctracker.a