blob: 068f45732a15b3dc38af6905998b0e0137784e6e [file] [log] [blame]
Wind Yuan75564b12015-01-15 06:51:15 -05001lib_LTLIBRARIES = libxcam_core.la
2
3PTHREAD_LDFLAGS = -pthread
4
5XCAM_CORE_CXXFLAGS = $(XCAM_CXXFLAGS)
Wind Yuan29a49f52015-01-26 17:57:37 +08006XCAM_CORE_LIBS = -ldl \
Wind Yuan75564b12015-01-15 06:51:15 -05007 $(NULL)
8
9if DEBUG
10endif
11
12if HAVE_IA_AIQ
13if USE_LOCAL_AIQ
14IA_IMAGING_CFLAGS = \
15 -I$(top_srcdir)/ext/ia_imaging/include \
16 $(NULL)
17
18IA_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
29else
30IA_IMAGING_CFLAGS = $(IA_AIQ_CFLAGS)
31IA_IMAGING_LIBS = $(IA_AIQ_LIBS)
32endif
33
34XCAM_CORE_CXXFLAGS += \
35 $(IA_IMAGING_CFLAGS) \
36 $(NULL)
37
38XCAM_CORE_LIBS += \
39 $(IA_IMAGING_LIBS) \
40 $(NULL)
41
42endif
43
Wind Yuan75564b12015-01-15 06:51:15 -050044if USE_LOCAL_ATOMISP
45XCAM_CORE_CXXFLAGS += \
46 -I$(top_srcdir)/ext/atomisp \
47 $(NULL)
48endif
49
50xcam_sources = \
51 atomisp_device.cpp \
Wind Yuan78ec1f72015-01-26 16:25:59 +080052 analyzer_loader.cpp \
Wind Yuan75564b12015-01-15 06:51:15 -050053 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 Yuan41c93782015-03-18 15:36:02 +080063 video_buffer.cpp \
Wind Yuan75564b12015-01-15 06:51:15 -050064 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 Yuanf2e8fb02015-01-26 16:24:49 +080070 x3a_result_factory.cpp \
Wind Yuan75564b12015-01-15 06:51:15 -050071 x3a_statistics_queue.cpp \
72 xcam_common.cpp \
73 xcam_thread.cpp \
74 $(NULL)
75
76if HAVE_IA_AIQ
77xcam_sources += \
78 libtbd.c \
79 xcam_cpf_reader.c \
80 aiq_handler.cpp \
81 x3a_analyzer_aiq.cpp \
82 $(NULL)
83endif
84
Wind Yuan4009d6c2015-02-10 18:09:48 +080085if HAVE_LIBCL
86XCAM_CORE_CXXFLAGS += \
87 $(LIBCL_CFLAGS) \
Wind Yuanffe35592015-02-11 16:05:12 +080088 -I$(top_srcdir)/cl_kernel \
Wind Yuan4009d6c2015-02-10 18:09:48 +080089 $(NULL)
90
91XCAM_CORE_LIBS += \
92 $(LIBCL_LIBS) \
93 $(NULL)
94
95xcam_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 Yuand50fde62015-03-25 17:43:49 +0800102 cl_3a_image_processor.cpp \
Wind Yuan87926782015-02-15 15:53:15 +0800103 cl_demo_handler.cpp \
Wind Yuand50fde62015-03-25 17:43:49 +0800104 cl_blc_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800105 drm_bo_buffer.cpp \
Wind Yuance2778b2015-03-18 15:32:12 +0800106 cl_hdr_handler.cpp \
107 cl_demosaic_handler.cpp \
wangfei6ea22212015-03-23 19:10:26 +0800108 cl_csc_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800109 $(NULL)
110endif
111
112if HAVE_LIBDRM
113XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS)
114XCAM_CORE_LIBS += \
115 -ldrm_intel \
116 $(LIBDRM_LIBS) \
117 $(NULL)
118
119xcam_sources += \
120 drm_display.cpp \
121 drm_v4l2_buffer.cpp \
122 $(NULL)
123endif
124
Wind Yuan75564b12015-01-15 06:51:15 -0500125libxcam_core_la_CXXFLAGS = \
Wind Yuan29a49f52015-01-26 17:57:37 +0800126 $(XCAM_CORE_CXXFLAGS) \
Wind Yuan75564b12015-01-15 06:51:15 -0500127 $(NULL)
128
129libxcam_core_la_SOURCES = \
130 $(xcam_sources) \
131 $(NULL)
132
133libxcam_core_la_LDFLAGS = \
134 -no-undefined \
135 $(PTHREAD_LDFLAGS) \
136 $(NULL)
137
138libxcam_core_la_LIBADD = \
139 $(XCAM_CORE_LIBS) \
140 $(NULL)
141
142
143libxcam_coreincludedir = $(includedir)/xcam
144
Wind Yuan29a49f52015-01-26 17:57:37 +0800145nobase_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 Yuan75564b12015-01-15 06:51:15 -0500152 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 Yuan75564b12015-01-15 06:51:15 -0500166 xcam_mutex.h \
167 xcam_thread.h \
168 xcam_utils.h \
169 $(NULL)
170
John Ye1503c6b2015-01-22 13:26:33 +0800171if HAVE_LIBDRM
Wind Yuan29a49f52015-01-26 17:57:37 +0800172nobase_libxcam_coreinclude_HEADERS += \
John Ye1503c6b2015-01-22 13:26:33 +0800173 drm_display.h \
174 drm_v4l2_buffer.h \
175 $(NULL)
176endif