Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 1 | lib_LTLIBRARIES = libxcam_core.la |
| 2 | |
| 3 | PTHREAD_LDFLAGS = -pthread |
| 4 | |
| 5 | XCAM_CORE_CXXFLAGS = $(XCAM_CXXFLAGS) |
| 6 | XCAM_CORE_LIBS = \ |
| 7 | $(NULL) |
| 8 | |
| 9 | if DEBUG |
| 10 | endif |
| 11 | |
| 12 | if HAVE_IA_AIQ |
| 13 | if USE_LOCAL_AIQ |
| 14 | IA_IMAGING_CFLAGS = \ |
| 15 | -I$(top_srcdir)/ext/ia_imaging/include \ |
| 16 | $(NULL) |
| 17 | |
| 18 | IA_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 | |
| 29 | else |
| 30 | IA_IMAGING_CFLAGS = $(IA_AIQ_CFLAGS) |
| 31 | IA_IMAGING_LIBS = $(IA_AIQ_LIBS) |
| 32 | endif |
| 33 | |
| 34 | XCAM_CORE_CXXFLAGS += \ |
| 35 | $(IA_IMAGING_CFLAGS) \ |
| 36 | $(NULL) |
| 37 | |
| 38 | XCAM_CORE_LIBS += \ |
| 39 | $(IA_IMAGING_LIBS) \ |
| 40 | $(NULL) |
| 41 | |
| 42 | endif |
| 43 | |
| 44 | |
| 45 | if HAVE_LIBDRM |
| 46 | XCAM_CORE_CXXFLAGS += $(LIBDRM_CFLAGS) |
| 47 | XCAM_CORE_LIBS += $(LIBDRM_LIBS) |
| 48 | endif |
| 49 | |
| 50 | if USE_LOCAL_ATOMISP |
| 51 | XCAM_CORE_CXXFLAGS += \ |
| 52 | -I$(top_srcdir)/ext/atomisp \ |
| 53 | $(NULL) |
| 54 | endif |
| 55 | |
| 56 | xcam_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 Yuan | f2e8fb0 | 2015-01-26 16:24:49 +0800 | [diff] [blame^] | 74 | x3a_result_factory.cpp \ |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 75 | x3a_statistics_queue.cpp \ |
| 76 | xcam_common.cpp \ |
| 77 | xcam_thread.cpp \ |
| 78 | $(NULL) |
| 79 | |
John Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 80 | if HAVE_LIBDRM |
| 81 | xcam_sources += \ |
| 82 | drm_display.cpp \ |
| 83 | drm_v4l2_buffer.cpp \ |
| 84 | $(NULL) |
| 85 | endif |
| 86 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 87 | if HAVE_IA_AIQ |
| 88 | xcam_sources += \ |
| 89 | libtbd.c \ |
| 90 | xcam_cpf_reader.c \ |
| 91 | aiq_handler.cpp \ |
| 92 | x3a_analyzer_aiq.cpp \ |
| 93 | $(NULL) |
| 94 | endif |
| 95 | |
| 96 | libxcam_core_la_CXXFLAGS = \ |
| 97 | $(XCAM_CORE_CXXFLAGS) \ |
| 98 | $(NULL) |
| 99 | |
| 100 | libxcam_core_la_SOURCES = \ |
| 101 | $(xcam_sources) \ |
| 102 | $(NULL) |
| 103 | |
| 104 | libxcam_core_la_LDFLAGS = \ |
| 105 | -no-undefined \ |
| 106 | $(PTHREAD_LDFLAGS) \ |
| 107 | $(NULL) |
| 108 | |
| 109 | libxcam_core_la_LIBADD = \ |
| 110 | $(XCAM_CORE_LIBS) \ |
| 111 | $(NULL) |
| 112 | |
| 113 | |
| 114 | libxcam_coreincludedir = $(includedir)/xcam |
| 115 | |
| 116 | libxcam_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 Ye | 1503c6b | 2015-01-22 13:26:33 +0800 | [diff] [blame] | 140 | if HAVE_LIBDRM |
| 141 | libxcam_coreinclude_HEADERS += \ |
| 142 | drm_display.h \ |
| 143 | drm_v4l2_buffer.h \ |
| 144 | $(NULL) |
| 145 | endif |