Make DRI dependencies and build depend on the target
[mesa.git] / src / glx / tests / Makefile.am
1 if HAVE_SHARED_GLAPI
2 AM_CFLAGS = $(PTHREAD_CFLAGS)
3 AM_CPPFLAGS = \
4 -I$(top_srcdir)/src/gtest/include \
5 -I$(top_srcdir)/src/mapi \
6 -I$(top_srcdir)/src/mesa \
7 -I$(top_srcdir)/src/glx \
8 -I$(top_srcdir)/include \
9 -I$(top_srcdir)/include/GL/internal \
10 $(DEFINES) \
11 $(LIBDRM_CFLAGS) \
12 $(X11_CFLAGS)
13
14 TESTS = glx-test
15 check_PROGRAMS = glx-test
16
17 glx_test_SOURCES = \
18 clientinfo_unittest.cpp \
19 create_context_unittest.cpp \
20 enum_sizes.cpp \
21 fake_glx_screen.cpp \
22 indirect_api.cpp \
23 query_renderer_unittest.cpp
24
25 if HAVE_DRI2
26 glx_test_SOURCES += \
27 query_renderer_implementation_unittest.cpp
28 endif
29
30 glx_test_LDADD = \
31 $(top_builddir)/src/glx/libglx.la \
32 $(top_builddir)/src/gtest/libgtest.la \
33 $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
34 $(PTHREAD_LIBS)
35 endif