aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 3f538ffab1d883c950ad2c6e09579a7a4cddec11 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
XCORE_DIR = $(top_srcdir)/xcore
MODULES_DIR = $(top_srcdir)/modules

TEST_BASE_CXXFLAGS = $(XCAM_CXXFLAGS)
if HAVE_LIBDRM
TEST_BASE_CXXFLAGS += $(LIBDRM_CFLAGS) $(LIBDRM_LIBS)
endif

if USE_LOCAL_ATOMISP
TEST_BASE_CXXFLAGS += -I$(top_srcdir)/ext/atomisp
endif

TEST_BASE_CXXFLAGS += \
	-I$(XCORE_DIR)   \
	-I$(MODULES_DIR) \
	$(NULL)

TEST_BASE_LA = \
	$(NULL)

noinst_PROGRAMS = \
	test-device-manager  \
	test-soft-image    \
	test-surround-view \
	$(NULL)

if HAVE_OSG
noinst_PROGRAMS += \
	test-render-surround-view \
	$(NULL)
endif

if ENABLE_IA_AIQ
noinst_PROGRAMS += \
	test-poll-thread     \
	$(NULL)
endif

if HAVE_LIBCL
noinst_PROGRAMS += \
	test-cl-image        \
	test-binary-kernel   \
	test-pipe-manager    \
	test-image-blend     \
	test-image-stitching \
	test-video-stabilization \
	$(NULL)

TEST_BASE_LA += $(top_builddir)/modules/ocl/libxcam_ocl.la

if HAVE_OPENCV
noinst_PROGRAMS += \
	test-image-deblurring \
	$(NULL)

TEST_BASE_CXXFLAGS += $(OPENCV_CFLAGS)
TEST_BASE_LA += $(OPENCV_LIBS)
endif
endif

if HAVE_GLES
noinst_PROGRAMS += \
	test-gles-handler \
	$(NULL)
endif

TEST_BASE_LA +=  \
    $(top_builddir)/xcore/libxcam_core.la \
	$(NULL)

test_device_manager_SOURCES = test-device-manager.cpp
test_device_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_device_manager_LDADD = $(TEST_BASE_LA)

if ENABLE_IA_AIQ
ISP_LA = $(top_builddir)/modules/isp/libxcam_isp.la

test_device_manager_LDADD += $(ISP_LA)

test_poll_thread_SOURCES = test-poll-thread.cpp
test_poll_thread_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_poll_thread_LDADD = \
	$(TEST_BASE_LA) $(ISP_LA)  \
	$(NULL)
endif

if HAVE_LIBCL
test_cl_image_SOURCES = test-cl-image.cpp
test_cl_image_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_cl_image_LDADD = \
	$(TEST_BASE_LA)   \
	$(NULL)

test_binary_kernel_SOURCES = test-binary-kernel.cpp
test_binary_kernel_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_binary_kernel_LDADD = \
	$(TEST_BASE_LA)        \
	$(NULL)

test_pipe_manager_SOURCES = test-pipe-manager.cpp
test_pipe_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_pipe_manager_LDADD =      \
	$(TEST_BASE_LA)            \
	$(NULL)

test_image_blend_SOURCES = test-image-blend.cpp
test_image_blend_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_image_blend_LDADD =       \
	$(TEST_BASE_LA)            \
	$(NULL)

test_image_stitching_SOURCES = test-image-stitching.cpp
test_image_stitching_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_image_stitching_LDADD = \
	$(TEST_BASE_LA)          \
	$(NULL)

test_video_stabilization_SOURCES = test-video-stabilization.cpp
test_video_stabilization_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_video_stabilization_LDADD = \
	$(TEST_BASE_LA)              \
	$(NULL)

if HAVE_OPENCV
test_image_deblurring_SOURCES = test-image-deblurring.cpp
test_image_deblurring_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
	$(NULL)
test_image_deblurring_LDADD = \
	$(TEST_BASE_LA)           \
	$(NULL)
endif
endif

test_soft_image_SOURCES = test-soft-image.cpp
test_soft_image_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_soft_image_LDADD =                           \
	$(top_builddir)/modules/soft/libxcam_soft.la  \
	$(TEST_BASE_LA)          \
	$(NULL)

if HAVE_VULKAN
noinst_PROGRAMS +=     \
	test-vk-handler    \
	$(NULL)

test_vk_handler_SOURCES = test-vk-handler.cpp
test_vk_handler_CXXFLAGS =      \
	$(TEST_BASE_CXXFLAGS)       \
	$(LIBVULKAN_CFLAGS)         \
	$(NULL)

test_vk_handler_LDADD =         \
	$(top_builddir)/modules/vulkan/libxcam_vulkan.la    \
	$(TEST_BASE_LA)             \
	$(LIBVULKAN_LIBS)           \
	$(NULL)

endif

if HAVE_GLES
test_gles_handler_SOURCES = test-gles-handler.cpp
test_gles_handler_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_gles_handler_LDADD = \
	$(top_builddir)/modules/gles/libxcam_gles.la \
	$(TEST_BASE_LA) \
	$(NULL)
endif

test_surround_view_SOURCES = test-surround-view.cpp
test_surround_view_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_surround_view_LDADD = \
	$(top_builddir)/modules/soft/libxcam_soft.la \
	$(TEST_BASE_LA) \
	$(NULL)

if HAVE_GLES
test_surround_view_LDADD += \
	$(top_builddir)/modules/gles/libxcam_gles.la \
	$(NULL)
endif

if HAVE_OSG
test_render_surround_view_SOURCES = test-render-surround-view.cpp
test_render_surround_view_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
test_render_surround_view_LDADD = \
	$(top_builddir)/modules/soft/libxcam_soft.la \
	$(top_builddir)/modules/render/libxcam_render.la \
	$(TEST_BASE_LA) \
	-losgGA         \
    -losgDB         \
    -losgUtil       \
    -losgFX         \
    -losgText       \
    -losgViewer     \
    -losg           \
	$(NULL)
if HAVE_GLES
test_render_surround_view_LDADD += \
	$(top_builddir)/modules/gles/libxcam_gles.la
endif

endif