blob: 9e24685da74638371eda0f94bc905aec8c225c7c [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)
6XCAM_CORE_LIBS = \
7 $(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
44
45if HAVE_LIBDRM
46XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS)
47XCAM_CORE_LIBS += $(LIBDRM_LIBS)
48endif
49
50if USE_LOCAL_ATOMISP
51XCAM_CORE_CXXFLAGS += \
52 -I$(top_srcdir)/ext/atomisp \
53 $(NULL)
54endif
55
56xcam_sources = \
57 atomisp_device.cpp \
58 device_manager.cpp \
59 handler_interface.cpp \
60 image_processor.cpp \
61 isp_controller.cpp \
62 isp_image_processor.cpp \
63 isp_config_translator.cpp \
64 poll_thread.cpp \
65 sensor_descriptor.cpp \
66 v4l2_buffer_proxy.cpp \
67 v4l2_device.cpp \
68 x3a_analyzer.cpp \
69 x3a_analyzer_manager.cpp \
70 x3a_analyzer_simple.cpp \
71 x3a_image_process_center.cpp \
72 x3a_isp_config.cpp \
73 x3a_result.cpp \
Wind Yuanf2e8fb02015-01-26 16:24:49 +080074 x3a_result_factory.cpp \
Wind Yuan75564b12015-01-15 06:51:15 -050075 x3a_statistics_queue.cpp \
76 xcam_common.cpp \
77 xcam_thread.cpp \
78 $(NULL)
79
John Ye1503c6b2015-01-22 13:26:33 +080080if HAVE_LIBDRM
81xcam_sources += \
82 drm_display.cpp \
83 drm_v4l2_buffer.cpp \
84 $(NULL)
85endif
86
Wind Yuan75564b12015-01-15 06:51:15 -050087if HAVE_IA_AIQ
88xcam_sources += \
89 libtbd.c \
90 xcam_cpf_reader.c \
91 aiq_handler.cpp \
92 x3a_analyzer_aiq.cpp \
93 $(NULL)
94endif
95
96libxcam_core_la_CXXFLAGS = \
97 $(XCAM_CORE_CXXFLAGS) \
98 $(NULL)
99
100libxcam_core_la_SOURCES = \
101 $(xcam_sources) \
102 $(NULL)
103
104libxcam_core_la_LDFLAGS = \
105 -no-undefined \
106 $(PTHREAD_LDFLAGS) \
107 $(NULL)
108
109libxcam_core_la_LIBADD = \
110 $(XCAM_CORE_LIBS) \
111 $(NULL)
112
113
114libxcam_coreincludedir = $(includedir)/xcam
115
116libxcam_coreinclude_HEADERS = \
117 device_manager.h \
118 handler_interface.h \
119 image_processor.h \
120 safe_list.h \
121 smartptr.h \
122 v4l2_buffer_proxy.h \
123 v4l2_device.h \
124 video_buffer.h \
125 x3a_analyzer.h \
126 x3a_analyzer_manager.h \
127 x3a_event.h \
128 x3a_image_process_center.h \
129 x3a_isp_config.h \
130 x3a_result.h \
131 xcam_3a_result.h \
132 xcam_3a_types.h \
133 xcam_common.h \
134 xcam_defs.h \
135 xcam_mutex.h \
136 xcam_thread.h \
137 xcam_utils.h \
138 $(NULL)
139
John Ye1503c6b2015-01-22 13:26:33 +0800140if HAVE_LIBDRM
141libxcam_coreinclude_HEADERS += \
142 drm_display.h \
143 drm_v4l2_buffer.h \
144 $(NULL)
145endif