blob: 6e688807ef8845e3b44c0b55edcbeaad60c90d37 (
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
|
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 \
$(NULL)
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
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)
|