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