summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests/Makefile.am
blob: ee3cef635075415aaeaa243a8359ed1acd02ee92 (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
INC = \
	-I$(top_builddir)/src/gtest/include \
	-I$(top_builddir)/src/mesa \
	-I$(top_builddir)/src/mapi \
	-I$(top_builddir)/src/glsl

AM_CFLAGS =  $(INC)
AM_CXXFLAGS = $(INC)

TESTS_ENVIRONMENT= \
	export PYTHON2=$(PYTHON2); \
	export PYTHON_FLAGS=$(PYTHON_FLAGS);

TESTS = \
	optimization-test \
	ralloc-test \
	uniform-initializer-test

check_PROGRAMS = 				\
	ralloc-test				\
	uniform-initializer-test

uniform_initializer_test_SOURCES =		\
	copy_constant_to_storage_tests.cpp	\
	set_uniform_initializer_tests.cpp	\
	uniform_initializer_utils.cpp
uniform_initializer_test_CFLAGS = 		\
	$(PTHREAD_CFLAGS)
uniform_initializer_test_LDADD =		\
	$(top_builddir)/src/gtest/libgtest.la	\
	$(top_builddir)/src/glsl/libglsl.la	\
	$(top_builddir)/src/mesa/libmesa.la	\
	$(PTHREAD_LIBS)

ralloc_test_SOURCES = ralloc_test.cpp $(top_builddir)/src/glsl/ralloc.c
ralloc_test_CFLAGS = $(PTHREAD_CFLAGS)
ralloc_test_LDADD = $(top_builddir)/src/gtest/libgtest.la $(PTHREAD_LIBS)