blob: 08c83deb8ec4ee755b71d0f676e988055de41979 [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 Yuan87926782015-02-15 15:53:15 +0800102 cl_demo_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800103 drm_bo_buffer.cpp \
Wind Yuance2778b2015-03-18 15:32:12 +0800104 cl_hdr_handler.cpp \
105 cl_demosaic_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800106 $(NULL)
107endif
108
109if HAVE_LIBDRM
110XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS)
111XCAM_CORE_LIBS += \
112 -ldrm_intel \
113 $(LIBDRM_LIBS) \
114 $(NULL)
115
116xcam_sources += \
117 drm_display.cpp \
118 drm_v4l2_buffer.cpp \
119 $(NULL)
120endif
121
Wind Yuan75564b12015-01-15 06:51:15 -0500122libxcam_core_la_CXXFLAGS = \
Wind Yuan29a49f52015-01-26 17:57:37 +0800123 $(XCAM_CORE_CXXFLAGS) \
Wind Yuan75564b12015-01-15 06:51:15 -0500124 $(NULL)
125
126libxcam_core_la_SOURCES = \
127 $(xcam_sources) \
128 $(NULL)
129
130libxcam_core_la_LDFLAGS = \
131 -no-undefined \
132 $(PTHREAD_LDFLAGS) \
133 $(NULL)
134
135libxcam_core_la_LIBADD = \
136 $(XCAM_CORE_LIBS) \
137 $(NULL)
138
139
140libxcam_coreincludedir = $(includedir)/xcam
141
Wind Yuan29a49f52015-01-26 17:57:37 +0800142nobase_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 Yuan75564b12015-01-15 06:51:15 -0500149 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 Yuan75564b12015-01-15 06:51:15 -0500163 xcam_mutex.h \
164 xcam_thread.h \
165 xcam_utils.h \
166 $(NULL)
167
John Ye1503c6b2015-01-22 13:26:33 +0800168if HAVE_LIBDRM
Wind Yuan29a49f52015-01-26 17:57:37 +0800169nobase_libxcam_coreinclude_HEADERS += \
John Ye1503c6b2015-01-22 13:26:33 +0800170 drm_display.h \
171 drm_v4l2_buffer.h \
172 $(NULL)
173endif