aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/tests/Makefile.am
blob: 94266a1d4ab75ca917f4c959ffdf701f8a9347d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AM_CFLAGS = \
	$(PTHREAD_CFLAGS)
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/gtest/include \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/mapi \
	-I$(top_builddir)/src/mapi/glapi \
	-I$(top_srcdir)/src/mapi/glapi \
	-I$(top_builddir)/src/mesa \
	-I$(top_srcdir)/src/mesa \
	-I$(top_srcdir)/include \
	$(DEFINES) $(INCLUDE_DIRS)

TESTS = main-test
check_PROGRAMS = main-test

main_test_SOURCES =			\
	enum_strings.cpp

main_test_LDADD = \
	$(top_builddir)/src/mesa/libmesa.la \
	$(top_builddir)/src/gtest/libgtest.la \
	$(PTHREAD_LIBS) \
	$(DLOPEN_LIBS) \
	$(CLOCK_LIB)

if HAVE_SHARED_GLAPI
main_test_SOURCES +=			\
	dispatch_sanity.cpp		\
	mesa_formats.cpp			\
	mesa_extensions.cpp			\
	program_state_string.cpp

main_test_LDADD += \
	$(top_builddir)/src/mapi/shared-glapi/libglapi.la
else
main_test_SOURCES +=			\
	stubs.cpp
endif

EXTRA_DIST = meson.build