blob: 0ec93373b63a500a5345b83e2b97165a6afa02b8 [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 \
wangfei11987462015-03-12 15:02:57 +0800104 cl_hdr_handler.cpp \
Wind Yuan4009d6c2015-02-10 18:09:48 +0800105 $(NULL)
106endif
107
108if HAVE_LIBDRM
109XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS)
110XCAM_CORE_LIBS += \
111 -ldrm_intel \
112 $(LIBDRM_LIBS) \
113 $(NULL)
114
115xcam_sources += \
116 drm_display.cpp \
117 drm_v4l2_buffer.cpp \
118 $(NULL)
119endif
120
Wind Yuan75564b12015-01-15 06:51:15 -0500121libxcam_core_la_CXXFLAGS = \
Wind Yuan29a49f52015-01-26 17:57:37 +0800122 $(XCAM_CORE_CXXFLAGS) \
Wind Yuan75564b12015-01-15 06:51:15 -0500123 $(NULL)
124
125libxcam_core_la_SOURCES = \
126 $(xcam_sources) \
127 $(NULL)
128
129libxcam_core_la_LDFLAGS = \
130 -no-undefined \
131 $(PTHREAD_LDFLAGS) \
132 $(NULL)
133
134libxcam_core_la_LIBADD = \
135 $(XCAM_CORE_LIBS) \
136 $(NULL)
137
138
139libxcam_coreincludedir = $(includedir)/xcam
140
Wind Yuan29a49f52015-01-26 17:57:37 +0800141nobase_libxcam_coreinclude_HEADERS = \
142 base/xcam_3a_result.h \
143 base/xcam_3a_types.h \
144 base/xcam_3a_description.h \
145 base/xcam_params.h \
146 base/xcam_common.h \
147 base/xcam_defs.h \
Wind Yuan75564b12015-01-15 06:51:15 -0500148 device_manager.h \
149 handler_interface.h \
150 image_processor.h \
151 safe_list.h \
152 smartptr.h \
153 v4l2_buffer_proxy.h \
154 v4l2_device.h \
155 video_buffer.h \
156 x3a_analyzer.h \
157 x3a_analyzer_manager.h \
158 x3a_event.h \
159 x3a_image_process_center.h \
160 x3a_isp_config.h \
161 x3a_result.h \
Wind Yuan75564b12015-01-15 06:51:15 -0500162 xcam_mutex.h \
163 xcam_thread.h \
164 xcam_utils.h \
165 $(NULL)
166
John Ye1503c6b2015-01-22 13:26:33 +0800167if HAVE_LIBDRM
Wind Yuan29a49f52015-01-26 17:57:37 +0800168nobase_libxcam_coreinclude_HEADERS += \
John Ye1503c6b2015-01-22 13:26:33 +0800169 drm_display.h \
170 drm_v4l2_buffer.h \
171 $(NULL)
172endif