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 | 8792678 | 2015-02-15 15:53:15 +0800 | [diff] [blame] | 102 | cl_demo_handler.cpp \ |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 103 | drm_bo_buffer.cpp \ |
Wind Yuan | ce2778b | 2015-03-18 15:32:12 +0800 | [diff] [blame^] | 104 | cl_hdr_handler.cpp \ |
| 105 | cl_demosaic_handler.cpp \ |
Wind Yuan | 4009d6c | 2015-02-10 18:09:48 +0800 | [diff] [blame] | 106 | $(NULL) |
| 107 | endif |
| 108 | |
| 109 | if HAVE_LIBDRM |
| 110 | XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS) |
| 111 | XCAM_CORE_LIBS += \ |
| 112 | -ldrm_intel \ |
| 113 | $(LIBDRM_LIBS) \ |
| 114 | $(NULL) |
| 115 | |
| 116 | xcam_sources += \ |
| 117 | drm_display.cpp \ |
| 118 | drm_v4l2_buffer.cpp \ |
| 119 | $(NULL) |
| 120 | endif |
| 121 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 122 | libxcam_core_la_CXXFLAGS = \ |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 123 | $(XCAM_CORE_CXXFLAGS) \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 124 | $(NULL) |
| 125 | |
| 126 | libxcam_core_la_SOURCES = \ |
| 127 | $(xcam_sources) \ |
| 128 | $(NULL) |
| 129 | |
| 130 | libxcam_core_la_LDFLAGS = \ |
| 131 | -no-undefined \ |
| 132 | $(PTHREAD_LDFLAGS) \ |
| 133 | $(NULL) |
| 134 | |
| 135 | libxcam_core_la_LIBADD = \ |
| 136 | $(XCAM_CORE_LIBS) \ |
| 137 | $(NULL) |
| 138 | |
| 139 | |
| 140 | libxcam_coreincludedir = $(includedir)/xcam |
| 141 | |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 142 | nobase_libxcam_coreinclude_HEADERS = \ |
| 143 | base/xcam_3a_result.h \ |
| 144 | base/xcam_3a_types.h \ |
| 145 | base/xcam_3a_description.h \ |
| 146 | base/xcam_params.h \ |
| 147 | base/xcam_common.h \ |
| 148 | base/xcam_defs.h \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 149 | device_manager.h \ |
| 150 | handler_interface.h \ |
| 151 | image_processor.h \ |
| 152 | safe_list.h \ |
| 153 | smartptr.h \ |
| 154 | v4l2_buffer_proxy.h \ |
| 155 | v4l2_device.h \ |
| 156 | video_buffer.h \ |
| 157 | x3a_analyzer.h \ |
| 158 | x3a_analyzer_manager.h \ |
| 159 | x3a_event.h \ |
| 160 | x3a_image_process_center.h \ |
| 161 | x3a_isp_config.h \ |
| 162 | x3a_result.h \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 163 | xcam_mutex.h \ |
| 164 | xcam_thread.h \ |
| 165 | xcam_utils.h \ |
| 166 | $(NULL) |
| 167 | |
John Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 168 | if HAVE_LIBDRM |
Wind Yuan | 29a49f5 | 2015-01-26 17:57:37 +0800 | [diff] [blame] | 169 | nobase_libxcam_coreinclude_HEADERS += \ |
John Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 170 | drm_display.h \ |
| 171 | drm_v4l2_buffer.h \ |
| 172 | $(NULL) |
| 173 | endif |