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