blob: a3d5ba6dfafd5dcaca78819ee737635d5c910a96 [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 \
74 x3a_statistics_queue.cpp \
75 xcam_common.cpp \
76 xcam_thread.cpp \
77 $(NULL)
78
79if HAVE_IA_AIQ
80xcam_sources += \
81 libtbd.c \
82 xcam_cpf_reader.c \
83 aiq_handler.cpp \
84 x3a_analyzer_aiq.cpp \
85 $(NULL)
86endif
87
88libxcam_core_la_CXXFLAGS = \
89 $(XCAM_CORE_CXXFLAGS) \
90 $(NULL)
91
92libxcam_core_la_SOURCES = \
93 $(xcam_sources) \
94 $(NULL)
95
96libxcam_core_la_LDFLAGS = \
97 -no-undefined \
98 $(PTHREAD_LDFLAGS) \
99 $(NULL)
100
101libxcam_core_la_LIBADD = \
102 $(XCAM_CORE_LIBS) \
103 $(NULL)
104
105
106libxcam_coreincludedir = $(includedir)/xcam
107
108libxcam_coreinclude_HEADERS = \
109 device_manager.h \
110 handler_interface.h \
111 image_processor.h \
112 safe_list.h \
113 smartptr.h \
114 v4l2_buffer_proxy.h \
115 v4l2_device.h \
116 video_buffer.h \
117 x3a_analyzer.h \
118 x3a_analyzer_manager.h \
119 x3a_event.h \
120 x3a_image_process_center.h \
121 x3a_isp_config.h \
122 x3a_result.h \
123 xcam_3a_result.h \
124 xcam_3a_types.h \
125 xcam_common.h \
126 xcam_defs.h \
127 xcam_mutex.h \
128 xcam_thread.h \
129 xcam_utils.h \
130 $(NULL)
131