Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 1 | lib_LTLIBRARIES = libxcam_core.la |
| 2 | |
| 3 | PTHREAD_LDFLAGS = -pthread |
| 4 | |
| 5 | XCAM_CORE_CXXFLAGS = $(XCAM_CXXFLAGS) |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 6 | XCAM_CORE_LIBS = -ldl \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 7 | $(NULL) |
| 8 | |
| 9 | if DEBUG |
| 10 | endif |
| 11 | |
| 12 | if HAVE_IA_AIQ |
| 13 | if USE_LOCAL_AIQ |
| 14 | IA_IMAGING_CFLAGS = \ |
| 15 | -I$(top_srcdir)/ext/ia_imaging/include \ |
| 16 | $(NULL) |
| 17 | |
| 18 | IA_IMAGING_LIBS = \ |
| 19 | -L$(top_srcdir)/ext/ia_imaging/lib \ |
| 20 | -lia_aiq \ |
| 21 | -lia_isp_2_2 \ |
| 22 | -lia_cmc_parser \ |
| 23 | -lia_mkn \ |
| 24 | -lia_nvm \ |
| 25 | -lia_tools \ |
| 26 | -lia_log \ |
| 27 | $(NULL) |
| 28 | |
| 29 | else |
| 30 | IA_IMAGING_CFLAGS = $(IA_AIQ_CFLAGS) |
| 31 | IA_IMAGING_LIBS = $(IA_AIQ_LIBS) |
| 32 | endif |
| 33 | |
| 34 | XCAM_CORE_CXXFLAGS += \ |
| 35 | $(IA_IMAGING_CFLAGS) \ |
| 36 | $(NULL) |
| 37 | |
| 38 | XCAM_CORE_LIBS += \ |
| 39 | $(IA_IMAGING_LIBS) \ |
| 40 | $(NULL) |
| 41 | |
| 42 | endif |
| 43 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 44 | if USE_LOCAL_ATOMISP |
| 45 | XCAM_CORE_CXXFLAGS += \ |
| 46 | -I$(top_srcdir)/ext/atomisp \ |
| 47 | $(NULL) |
| 48 | endif |
| 49 | |
| 50 | xcam_sources = \ |
| 51 | atomisp_device.cpp \ |
Wind Yuan | 78ec1f7 | 2015-01-26 16:25:59 +0800 | [diff] [blame] | 52 | analyzer_loader.cpp \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 53 | device_manager.cpp \ |
| 54 | handler_interface.cpp \ |
| 55 | image_processor.cpp \ |
| 56 | isp_controller.cpp \ |
| 57 | isp_image_processor.cpp \ |
| 58 | isp_config_translator.cpp \ |
| 59 | poll_thread.cpp \ |
| 60 | sensor_descriptor.cpp \ |
| 61 | v4l2_buffer_proxy.cpp \ |
| 62 | v4l2_device.cpp \ |
Wind Yuan | 41c9378 | 2015-03-18 15:36:02 +0800 | [diff] [blame] | 63 | video_buffer.cpp \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 64 | x3a_analyzer.cpp \ |
| 65 | x3a_analyzer_manager.cpp \ |
| 66 | x3a_analyzer_simple.cpp \ |
| 67 | x3a_image_process_center.cpp \ |
| 68 | x3a_isp_config.cpp \ |
| 69 | x3a_result.cpp \ |
Wind Yuan | f2e8fb0 | 2015-01-26 16:24:49 +0800 | [diff] [blame] | 70 | x3a_result_factory.cpp \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 71 | x3a_statistics_queue.cpp \ |
| 72 | xcam_common.cpp \ |
| 73 | xcam_thread.cpp \ |
| 74 | $(NULL) |
| 75 | |
| 76 | if HAVE_IA_AIQ |
| 77 | xcam_sources += \ |
| 78 | libtbd.c \ |
| 79 | xcam_cpf_reader.c \ |
| 80 | aiq_handler.cpp \ |
| 81 | x3a_analyzer_aiq.cpp \ |
| 82 | $(NULL) |
| 83 | endif |
| 84 | |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 85 | if HAVE_LIBCL |
| 86 | XCAM_CORE_CXXFLAGS += \ |
| 87 | $(LIBCL_CFLAGS) \ |
Wind Yuan | ffe3559 | 2015-02-11 16:05:12 +0800 | [diff] [blame] | 88 | -I$(top_srcdir)/cl_kernel \ |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 89 | $(NULL) |
| 90 | |
| 91 | XCAM_CORE_LIBS += \ |
| 92 | $(LIBCL_LIBS) \ |
| 93 | $(NULL) |
| 94 | |
| 95 | xcam_sources += \ |
| 96 | cl_context.cpp \ |
| 97 | cl_device.cpp \ |
| 98 | cl_kernel.cpp \ |
| 99 | cl_memory.cpp \ |
| 100 | cl_image_handler.cpp \ |
| 101 | cl_image_processor.cpp \ |
Wind Yuan | d50fde6 | 2015-03-25 17:43:49 +0800 | [diff] [blame^] | 102 | cl_3a_image_processor.cpp \ |
Wind Yuan | 8792678 | 2015-02-15 15:53:15 +0800 | [diff] [blame] | 103 | cl_demo_handler.cpp \ |
Wind Yuan | d50fde6 | 2015-03-25 17:43:49 +0800 | [diff] [blame^] | 104 | cl_blc_handler.cpp \ |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 105 | drm_bo_buffer.cpp \ |
Wind Yuan | ce2778b | 2015-03-18 15:32:12 +0800 | [diff] [blame] | 106 | cl_hdr_handler.cpp \ |
| 107 | cl_demosaic_handler.cpp \ |
wangfei | 6ea2221 | 2015-03-23 19:10:26 +0800 | [diff] [blame] | 108 | cl_csc_handler.cpp \ |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 109 | $(NULL) |
| 110 | endif |
| 111 | |
| 112 | if HAVE_LIBDRM |
| 113 | XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS) |
| 114 | XCAM_CORE_LIBS += \ |
| 115 | -ldrm_intel \ |
| 116 | $(LIBDRM_LIBS) \ |
| 117 | $(NULL) |
| 118 | |
| 119 | xcam_sources += \ |
| 120 | drm_display.cpp \ |
| 121 | drm_v4l2_buffer.cpp \ |
| 122 | $(NULL) |
| 123 | endif |
| 124 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 125 | libxcam_core_la_CXXFLAGS = \ |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 126 | $(XCAM_CORE_CXXFLAGS) \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 127 | $(NULL) |
| 128 | |
| 129 | libxcam_core_la_SOURCES = \ |
| 130 | $(xcam_sources) \ |
| 131 | $(NULL) |
| 132 | |
| 133 | libxcam_core_la_LDFLAGS = \ |
| 134 | -no-undefined \ |
| 135 | $(PTHREAD_LDFLAGS) \ |
| 136 | $(NULL) |
| 137 | |
| 138 | libxcam_core_la_LIBADD = \ |
| 139 | $(XCAM_CORE_LIBS) \ |
| 140 | $(NULL) |
| 141 | |
| 142 | |
| 143 | libxcam_coreincludedir = $(includedir)/xcam |
| 144 | |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 145 | nobase_libxcam_coreinclude_HEADERS = \ |
| 146 | base/xcam_3a_result.h \ |
| 147 | base/xcam_3a_types.h \ |
| 148 | base/xcam_3a_description.h \ |
| 149 | base/xcam_params.h \ |
| 150 | base/xcam_common.h \ |
| 151 | base/xcam_defs.h \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 152 | device_manager.h \ |
| 153 | handler_interface.h \ |
| 154 | image_processor.h \ |
| 155 | safe_list.h \ |
| 156 | smartptr.h \ |
| 157 | v4l2_buffer_proxy.h \ |
| 158 | v4l2_device.h \ |
| 159 | video_buffer.h \ |
| 160 | x3a_analyzer.h \ |
| 161 | x3a_analyzer_manager.h \ |
| 162 | x3a_event.h \ |
| 163 | x3a_image_process_center.h \ |
| 164 | x3a_isp_config.h \ |
| 165 | x3a_result.h \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 166 | xcam_mutex.h \ |
| 167 | xcam_thread.h \ |
| 168 | xcam_utils.h \ |
| 169 | $(NULL) |
| 170 | |
John Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 171 | if HAVE_LIBDRM |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 172 | nobase_libxcam_coreinclude_HEADERS += \ |
John Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 173 | drm_display.h \ |
| 174 | drm_v4l2_buffer.h \ |
| 175 | $(NULL) |
| 176 | endif |