summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: 0d361889ed3661e31657c33f45b1c92148fa12ab (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
AUTOMAKE_OPTIONS = subdir-objects

AM_CXXFLAGS =								\
	-I$(top_srcdir)/test/gtest/include				\
	$(NULL)

AM_CPPFLAGS =								\
	-DGTEST_HAS_PTHREAD=1						\
	-DGTEST_USE_OWN_TR1_TUPLE=0					\
	-DGTEST_LANG_CXX11=1						\
	-DGTEST_HAS_TR1_TUPLE=1						\
	-DPTHREADS							\
	-DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""			\
	-DTEST_VA_DRIVERS_PATH="\"$(abs_top_builddir)/src/.libs\""	\
	-std=c++11							\
	$(NULL)

AM_LDFLAGS =								\
	-pthread							\
	$(NULL)

# libgtest
noinst_LTLIBRARIES = libgtest.la

libgtest_la_SOURCES =							\
	gtest/src/gtest-all.cc						\
	gtest/src/gtest_main.cc						\
	$(NULL)

libgtest_la_CXXFLAGS =							\
	-I$(top_srcdir)/test/gtest					\
	$(AM_CXXFLAGS)							\
	$(NULL)

EXTRA_DIST =								\
	gtest/docs							\
	gtest/include							\
	gtest/src							\
	gtest/README.md							\
	gtest/LICENSE							\
	meson.build							\
	$(NULL)

# test_i965_drv_video
noinst_PROGRAMS = test_i965_drv_video
noinst_HEADERS =							\
	i965_avce_test_common.h						\
	i965_config_test.h						\
	i965_internal_decl.h						\
	i965_jpeg_test_data.h						\
	i965_streamable.h						\
	i965_test_environment.h						\
	i965_test_fixture.h						\
	i965_test_image_utils.h						\
	test.h								\
	test_utils.h							\
	$(NULL)

test_i965_drv_video_SOURCES =						\
	i965_avcd_config_test.cpp					\
	i965_avce_config_test.cpp					\
	i965_avce_context_test.cpp					\
	i965_avce_test_common.cpp					\
	i965_chipset_test.cpp						\
	i965_config_test.cpp						\
	i965_initialize_test.cpp					\
	i965_jpeg_test_data.cpp						\
	i965_jpeg_decode_test.cpp					\
	i965_jpeg_encode_test.cpp					\
	i965_jpegd_config_test.cpp					\
	i965_jpege_config_test.cpp					\
	i965_surface_test.cpp						\
	i965_test_environment.cpp					\
	i965_test_fixture.cpp						\
	i965_test_image_utils.cpp					\
	object_heap_test.cpp						\
	test_main.cpp							\
	$(NULL)

test_i965_drv_video_LDFLAGS =						\
	$(DRM_LDFLAGS)							\
	$(LIBVA_DEPS_LDFLAGS)						\
	$(LIBVA_DRM_DEPS_LDFLAGS)					\
	$(AM_LDFLAGS)							\
	$(NULL)

test_i965_drv_video_LDADD =						\
	$(top_builddir)/src/libi965_drv_video.la			\
	libgtest.la							\
	$(DRM_LIBS)							\
	$(LIBVA_DEPS_LIBS)						\
	$(LIBVA_DRM_DEPS_LIBS)						\
	-ldrm_intel -lm -ldl						\
	$(NULL)

test_i965_drv_video_CPPFLAGS =						\
	-I$(top_srcdir)/src						\
	$(DRM_CFLAGS)							\
	$(LIBVA_DEPS_CFLAGS)						\
	$(LIBVA_DRM_DEPS_CFLAGS)					\
	$(AM_CPPFLAGS)							\
	$(NULL)

test_i965_drv_video_CXXFLAGS =						\
	-Wall -Werror							\
	$(AM_CXXFLAGS)							\
	$(NULL)

check-local: test_i965_drv_video
	$(builddir)/test_i965_drv_video