diff options
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 295 |
1 files changed, 211 insertions, 84 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6e68880..eb27a9e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,126 +1,253 @@ -XCORE_DIR = $(top_srcdir)/xcore -MODULES_DIR = $(top_srcdir)/modules +noinst_PROGRAMS = \ + test-soft-image \ + test-surround-view \ + test-device-manager \ + $(NULL) -TEST_BASE_CXXFLAGS = $(XCAM_CXXFLAGS) -if HAVE_LIBDRM -TEST_BASE_CXXFLAGS += $(LIBDRM_CFLAGS) $(LIBDRM_LIBS) +if HAVE_LIBCL +noinst_PROGRAMS += \ + test-cl-image \ + test-image-blend \ + test-pipe-manager \ + test-binary-kernel \ + test-image-stitching \ + test-video-stabilization \ + $(NULL) endif -if USE_LOCAL_ATOMISP -TEST_BASE_CXXFLAGS += -I$(top_srcdir)/ext/atomisp +if HAVE_GLES +noinst_PROGRAMS += \ + test-gles-handler \ + $(NULL) 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 +if HAVE_VULKAN noinst_PROGRAMS += \ - test-poll-thread \ - $(NULL) + test-vk-handler \ + $(NULL) endif -if HAVE_LIBCL +if ENABLE_RENDER noinst_PROGRAMS += \ - test-cl-image \ - test-binary-kernel \ - test-pipe-manager \ - test-image-blend \ - test-image-stitching \ - test-video-stabilization \ - $(NULL) + test-render-surround-view \ + $(NULL) +endif -TEST_BASE_LA += $(top_builddir)/modules/ocl/libxcam_ocl.la +if ENABLE_DNN +noinst_PROGRAMS += \ + test-dnn-inference \ + $(NULL) +endif if HAVE_OPENCV noinst_PROGRAMS += \ - test-image-deblurring \ - $(NULL) - -TEST_BASE_CXXFLAGS += $(OPENCV_CFLAGS) -TEST_BASE_LA += $(OPENCV_LIBS) -endif + test-image-deblurring \ + $(NULL) endif -TEST_BASE_LA += \ - $(top_builddir)/xcore/libxcam_core.la \ - $(NULL) +TEST_BASE_CXXFLAGS = \ + $(XCAM_CXXFLAGS) \ + -I$(top_srcdir)/xcore \ + -I$(top_srcdir)/modules \ + $(NULL) -test_device_manager_SOURCES = test-device-manager.cpp -test_device_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS) -test_device_manager_LDADD = $(TEST_BASE_LA) +TEST_BASE_LA = \ + $(top_builddir)/xcore/libxcam_core.la \ + $(NULL) -if ENABLE_IA_AIQ -ISP_LA = $(top_builddir)/modules/isp/libxcam_isp.la +if HAVE_OPENCV +XCAM_OCV_CFLAGS = $(OPENCV_CFLAGS) +XCAM_OCV_LIBS = $(OPENCV_LIBS) +XCAM_OCV_LA = $(top_builddir)/modules/ocv/libxcam_ocv.la +endif -test_device_manager_LDADD += $(ISP_LA) +if HAVE_LIBDRM +TEST_DRM_CFLAGS = $(LIBDRM_CFLAGS) +TEST_DRM_LIBS = \ + -ldrm_intel \ + $(LIBDRM_LIBS) \ + $(NULL) +endif -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) +test_device_manager_SOURCES = test-device-manager.cpp +test_device_manager_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(TEST_DRM_CFLAGS) \ + $(NULL) +test_device_manager_LDADD = \ + $(TEST_BASE_LA) \ + $(TEST_DRM_LIBS) \ + $(NULL) +if USE_LOCAL_ATOMISP +test_device_manager_CXXFLAGS += -I$(top_srcdir)/ext/atomisp +endif +if ENABLE_IA_AIQ +test_device_manager_LDADD += $(top_builddir)/modules/isp/libxcam_isp.la endif if HAVE_LIBCL +test_device_manager_LDADD += $(top_builddir)/modules/ocl/libxcam_ocl.la + +TEST_OCL_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(TEST_DRM_CFLAGS) \ + $(NULL) + +TEST_OCL_LDADD = \ + $(TEST_BASE_LA) \ + $(TEST_DRM_LIBS) \ + $(top_builddir)/modules/ocl/libxcam_ocl.la \ + $(NULL) + test_cl_image_SOURCES = test-cl-image.cpp -test_cl_image_CXXFLAGS = $(TEST_BASE_CXXFLAGS) -test_cl_image_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) +test_cl_image_CXXFLAGS = $(TEST_OCL_CXXFLAGS) +test_cl_image_LDADD = $(TEST_OCL_LDADD) test_binary_kernel_SOURCES = test-binary-kernel.cpp -test_binary_kernel_CXXFLAGS = $(TEST_BASE_CXXFLAGS) -test_binary_kernel_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) +test_binary_kernel_CXXFLAGS = $(TEST_OCL_CXXFLAGS) +test_binary_kernel_LDADD = $(TEST_OCL_LDADD) test_pipe_manager_SOURCES = test-pipe-manager.cpp -test_pipe_manager_CXXFLAGS = $(TEST_BASE_CXXFLAGS) -test_pipe_manager_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) +test_pipe_manager_CXXFLAGS = $(TEST_OCL_CXXFLAGS) +test_pipe_manager_LDADD = $(TEST_OCL_LDADD) 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_blend_CXXFLAGS = $(TEST_OCL_CXXFLAGS) +test_image_blend_LDADD = $(TEST_OCL_LDADD) test_image_stitching_SOURCES = test-image-stitching.cpp -test_image_stitching_CXXFLAGS = $(TEST_BASE_CXXFLAGS) +test_image_stitching_CXXFLAGS = \ + $(TEST_OCL_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) test_image_stitching_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) + $(TEST_OCL_LDADD) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(NULL) test_video_stabilization_SOURCES = test-video-stabilization.cpp -test_video_stabilization_CXXFLAGS = $(TEST_BASE_CXXFLAGS) +test_video_stabilization_CXXFLAGS = \ + $(TEST_OCL_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) test_video_stabilization_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) + $(TEST_OCL_LDADD) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(NULL) +endif if HAVE_OPENCV test_image_deblurring_SOURCES = test-image-deblurring.cpp -test_image_deblurring_CXXFLAGS = $(TEST_BASE_CXXFLAGS) - $(NULL) +test_image_deblurring_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) test_image_deblurring_LDADD = \ - $(TEST_BASE_LA) \ - $(NULL) -endif + $(TEST_BASE_LA) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(NULL) endif +TEST_SOFT_LA = $(top_builddir)/modules/soft/libxcam_soft.la + 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) +test_soft_image_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) +test_soft_image_LDADD = \ + $(TEST_BASE_LA) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(TEST_SOFT_LA) \ + $(NULL) + +if HAVE_GLES +TEST_GLES_LA = $(top_builddir)/modules/gles/libxcam_gles.la +endif +if HAVE_VULKAN +TEST_VK_LA = $(top_builddir)/modules/vulkan/libxcam_vulkan.la +endif + +test_surround_view_SOURCES = test-surround-view.cpp +test_surround_view_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) +test_surround_view_LDADD = \ + $(TEST_BASE_LA) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(TEST_SOFT_LA) \ + $(TEST_GLES_LA) \ + $(TEST_VK_LA) \ + $(NULL) + +if HAVE_VULKAN +test_vk_handler_SOURCES = test-vk-handler.cpp +test_vk_handler_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(LIBVULKAN_CFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) +test_vk_handler_LDADD = \ + $(TEST_BASE_LA) \ + $(LIBVULKAN_LIBS) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(TEST_VK_LA) \ + $(NULL) +endif + +if HAVE_GLES +test_gles_handler_SOURCES = test-gles-handler.cpp +test_gles_handler_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) +test_gles_handler_LDADD = \ + $(TEST_BASE_LA) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(TEST_GLES_LA) \ + $(NULL) +endif + +if ENABLE_RENDER +TEST_RENDER_LA = $(top_builddir)/modules/render/libxcam_render.la + +test_render_surround_view_SOURCES = test-render-surround-view.cpp +test_render_surround_view_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + $(XCAM_OCV_CFLAGS) \ + $(NULL) +test_render_surround_view_LDADD = \ + $(TEST_BASE_LA) \ + $(XCAM_OCV_LIBS) \ + $(XCAM_OCV_LA) \ + $(TEST_SOFT_LA) \ + $(TEST_GLES_LA) \ + $(TEST_VK_LA) \ + $(TEST_RENDER_LA) \ + $(NULL) +endif + +if ENABLE_DNN +TEST_DNN_INFERENCE_LA = $(top_builddir)/modules/dnn/libxcam_dnn.la + +test_dnn_inference_SOURCES = test-dnn-inference.cpp +test_dnn_inference_CXXFLAGS = \ + $(TEST_BASE_CXXFLAGS) \ + -I$(OPENVINO_IE_INC_PATH)/include \ + -I$(OPENVINO_IE_INC_PATH)/src/extension \ + $(NULL) + +test_dnn_inference_LDADD = \ + $(TEST_BASE_LA) \ + $(TEST_DNN_INFERENCE_LA) \ + $(NULL) +endif + |