summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/Makefile.am
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-02-02 14:11:08 +0100
committerEric Anholt <[email protected]>2012-09-17 12:32:51 -0700
commit5dafee1853b6eac164f69d4e65658dc34785ccf9 (patch)
tree5b6500bef94e0bf111d274e68a6007f21aa2d7a4 /src/mesa/drivers/dri/common/Makefile.am
parent3f98ba9c43eabf6f88d15375cfc80ee35c425077 (diff)
dri: Reuse dri_test.c for stub glapi symbols for unit testing.
This file is used to provide stubs for the link test in gallium dri drivers. But the same stubs without the main can be used for making unit tests for code in a dri driver. Acked-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/Makefile.am')
-rw-r--r--src/mesa/drivers/dri/common/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/Makefile.am b/src/mesa/drivers/dri/common/Makefile.am
index d81bc0e3f4d..6e9d738fa52 100644
--- a/src/mesa/drivers/dri/common/Makefile.am
+++ b/src/mesa/drivers/dri/common/Makefile.am
@@ -28,11 +28,17 @@ AM_CFLAGS = \
$(API_DEFINES) \
$(LIBDRM_CFLAGS)
-noinst_LTLIBRARIES = libdricommon.la
+noinst_LTLIBRARIES = \
+ libdricommon.la \
+ libdri_test_stubs.la
libdricommon_la_SOURCES = \
utils.c \
dri_util.c \
xmlconfig.c
+libdri_test_stubs_la_SOURCES = \
+ dri_test.c
+libdri_test_stubs_la_CFLAGS = $(AM_CFLAGS) -DNO_MAIN
+
sysconf_DATA = drirc