• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1XCORE_DIR = $(top_srcdir)/xcore
2MODULES_DIR = $(top_srcdir)/modules
3
4TEST_BASE_CXXFLAGS = $(XCAM_CXXFLAGS)
5if HAVE_LIBDRM
6TEST_BASE_CXXFLAGS += $(LIBDRM_CFLAGS) $(LIBDRM_LIBS)
7endif
8
9if USE_LOCAL_ATOMISP
10TEST_BASE_CXXFLAGS += -I$(top_srcdir)/ext/atomisp
11endif
12
13TEST_BASE_CXXFLAGS += \
14	-I$(XCORE_DIR)   \
15	-I$(MODULES_DIR) \
16	$(NULL)
17
18TEST_BASE_LA = \
19	$(NULL)
20
21noinst_PROGRAMS = \
22	test-device-manager  \
23	test-soft-image  \
24	$(NULL)
25
26if ENABLE_IA_AIQ
27noinst_PROGRAMS += \
28	test-poll-thread     \
29	$(NULL)
30endif
31
32if HAVE_LIBCL
33noinst_PROGRAMS += \
34	test-cl-image        \
35	test-binary-kernel   \
36	test-pipe-manager    \
37	test-image-blend     \
38	test-image-stitching \
39	test-video-stabilization \
40	$(NULL)
41
42TEST_BASE_LA += $(top_builddir)/modules/ocl/libxcam_ocl.la
43
44if HAVE_OPENCV
45noinst_PROGRAMS += \
46	test-image-deblurring \
47	$(NULL)
48
49TEST_BASE_CXXFLAGS += $(OPENCV_CFLAGS)
50TEST_BASE_LA += $(OPENCV_LIBS)
51endif
52endif
53
54TEST_BASE_LA +=  \
55    $(top_builddir)/xcore/libxcam_core.la \
56	$(NULL)
57
58test_device_manager_SOURCES = test-device-manager.cpp
59test_device_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
60test_device_manager_LDADD = $(TEST_BASE_LA)
61
62if ENABLE_IA_AIQ
63ISP_LA = $(top_builddir)/modules/isp/libxcam_isp.la
64
65test_device_manager_LDADD += $(ISP_LA)
66
67test_poll_thread_SOURCES = test-poll-thread.cpp
68test_poll_thread_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
69test_poll_thread_LDADD = \
70	$(TEST_BASE_LA) $(ISP_LA)  \
71	$(NULL)
72endif
73
74if HAVE_LIBCL
75test_cl_image_SOURCES = test-cl-image.cpp
76test_cl_image_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
77test_cl_image_LDADD = \
78	$(TEST_BASE_LA)   \
79	$(NULL)
80
81test_binary_kernel_SOURCES = test-binary-kernel.cpp
82test_binary_kernel_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
83test_binary_kernel_LDADD = \
84	$(TEST_BASE_LA)        \
85	$(NULL)
86
87test_pipe_manager_SOURCES = test-pipe-manager.cpp
88test_pipe_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
89test_pipe_manager_LDADD =      \
90	$(TEST_BASE_LA)            \
91	$(NULL)
92
93test_image_blend_SOURCES = test-image-blend.cpp
94test_image_blend_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
95test_image_blend_LDADD =       \
96	$(TEST_BASE_LA)            \
97	$(NULL)
98
99test_image_stitching_SOURCES = test-image-stitching.cpp
100test_image_stitching_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
101test_image_stitching_LDADD = \
102	$(TEST_BASE_LA)          \
103	$(NULL)
104
105test_video_stabilization_SOURCES = test-video-stabilization.cpp
106test_video_stabilization_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
107test_video_stabilization_LDADD = \
108	$(TEST_BASE_LA)              \
109	$(NULL)
110
111if HAVE_OPENCV
112test_image_deblurring_SOURCES = test-image-deblurring.cpp
113test_image_deblurring_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
114	$(NULL)
115test_image_deblurring_LDADD = \
116	$(TEST_BASE_LA)           \
117	$(NULL)
118endif
119endif
120
121test_soft_image_SOURCES = test-soft-image.cpp
122test_soft_image_CXXFLAGS = $(TEST_BASE_CXXFLAGS)
123test_soft_image_LDADD =                           \
124	$(top_builddir)/modules/soft/libxcam_soft.la  \
125	$(TEST_BASE_LA)          \
126	$(NULL)
127