blob: bada37de51ae9a9edfa9d6888e000d22c23ba819 [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 \
63 x3a_analyzer.cpp \
64 x3a_analyzer_manager.cpp \
65 x3a_analyzer_simple.cpp \
66 x3a_image_process_center.cpp \
67 x3a_isp_config.cpp \
68 x3a_result.cpp \
Wind Yuanf2e8fb02015-01-26 16:24:49 +080069 x3a_result_factory.cpp \
Wind Yuan75564b12015-01-15 06:51:15 -050070 x3a_statistics_queue.cpp \
71 xcam_common.cpp \
72 xcam_thread.cpp \
73 $(NULL)
74
75if HAVE_IA_AIQ
76xcam_sources += \
77 libtbd.c \
78 xcam_cpf_reader.c \
79 aiq_handler.cpp \
80 x3a_analyzer_aiq.cpp \
81 $(NULL)
82endif
83
Wind Yuan4009d6c2015-02-10 18:09:48 +080084if HAVE_LIBCL
85XCAM_CORE_CXXFLAGS += \
86 $(LIBCL_CFLAGS) \
Wind Yuanffe35592015-02-11 16:05:12 +080087 -I$(top_srcdir)/cl_kernel \
Wind Yuan4009d6c2015-02-10 18:09:48 +080088 $(NULL)
89
90XCAM_CORE_LIBS += \
91 $(LIBCL_LIBS) \
92 $(NULL)
93
94xcam_sources += \
95 cl_context.cpp \
96 cl_device.cpp \
97 cl_kernel.cpp \
98 cl_memory.cpp \
99 cl_image_handler.cpp \
100 cl_image_processor.cpp \
Wind Yuan87926782015-02-15 15:53:15 +0800101 cl_demo_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800102 drm_bo_buffer.cpp \
103 $(NULL)
104endif
105
106if HAVE_LIBDRM
107XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS)
108XCAM_CORE_LIBS += \
109 -ldrm_intel \
110 $(LIBDRM_LIBS) \
111 $(NULL)
112
113xcam_sources += \
114 drm_display.cpp \
115 drm_v4l2_buffer.cpp \
116 $(NULL)
117endif
118
Wind Yuan75564b12015-01-15 06:51:15 -0500119libxcam_core_la_CXXFLAGS = \
Wind Yuan29a49f52015-01-26 17:57:37 +0800120 $(XCAM_CORE_CXXFLAGS) \
Wind Yuan75564b12015-01-15 06:51:15 -0500121 $(NULL)
122
123libxcam_core_la_SOURCES = \
124 $(xcam_sources) \
125 $(NULL)
126
127libxcam_core_la_LDFLAGS = \
128 -no-undefined \
129 $(PTHREAD_LDFLAGS) \
130 $(NULL)
131
132libxcam_core_la_LIBADD = \
133 $(XCAM_CORE_LIBS) \
134 $(NULL)
135
136
137libxcam_coreincludedir = $(includedir)/xcam
138
Wind Yuan29a49f52015-01-26 17:57:37 +0800139nobase_libxcam_coreinclude_HEADERS = \
140 base/xcam_3a_result.h \
141 base/xcam_3a_types.h \
142 base/xcam_3a_description.h \
143 base/xcam_params.h \
144 base/xcam_common.h \
145 base/xcam_defs.h \
Wind Yuan75564b12015-01-15 06:51:15 -0500146 device_manager.h \
147 handler_interface.h \
148 image_processor.h \
149 safe_list.h \
150 smartptr.h \
151 v4l2_buffer_proxy.h \
152 v4l2_device.h \
153 video_buffer.h \
154 x3a_analyzer.h \
155 x3a_analyzer_manager.h \
156 x3a_event.h \
157 x3a_image_process_center.h \
158 x3a_isp_config.h \
159 x3a_result.h \
Wind Yuan75564b12015-01-15 06:51:15 -0500160 xcam_mutex.h \
161 xcam_thread.h \
162 xcam_utils.h \
163 $(NULL)
164
John Ye1503c6b2015-01-22 13:26:33 +0800165if HAVE_LIBDRM
Wind Yuan29a49f52015-01-26 17:57:37 +0800166nobase_libxcam_coreinclude_HEADERS += \
John Ye1503c6b2015-01-22 13:26:33 +0800167 drm_display.h \
168 drm_v4l2_buffer.h \
169 $(NULL)
170endif