forked from intel/libxcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
120 lines (91 loc) · 2.63 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
LOCAL_PATH := $(call my-dir)
# XCam Version Num 1.1.0
XCAM_VERSION_CFLAGS := -DXCAM_VERSION=0x110
XCAM_CFLAGS := -fPIC -Wall -Wno-unused-parameter -fstack-protector
XCAM_CFLAGS += $(XCAM_VERSION_CFLAGS) -DANDROID
ifeq ($(ENABLE_DEBUG), 1)
XCAM_CFLAGS += -DDEBUG
endif
ENABLE_OPENCV := 0
ifneq ($(filter $(TARGET_ARCH),x86 x86_64),)
ifneq ($(wildcard external/opencv),)
ENABLE_OPENCV := 1
XCAM_CFLAGS += -DHAVE_OPENCV=1
endif
endif
# For libxcam
# =================================================
include $(CLEAR_VARS)
LOCAL_MODULE := libxcam
LOCAL_MODULE_TAGS := optional
ifeq ($(ENABLE_OPENCV), 1)
LOCAL_STATIC_LIBRARIES := libcv libcxcore
endif
XCAM_XCORE_SRC_FILES := \
xcore/buffer_pool.cpp \
xcore/calibration_parser.cpp \
xcore/file_handle.cpp \
xcore/image_file_handle.cpp \
xcore/image_handler.cpp \
xcore/surview_fisheye_dewarp.cpp \
xcore/thread_pool.cpp \
xcore/video_buffer.cpp \
xcore/once_map_video_buffer_priv.cpp \
xcore/worker.cpp \
xcore/xcam_buffer.cpp \
xcore/xcam_common.cpp \
xcore/xcam_thread.cpp \
xcore/xcam_utils.cpp \
xcore/interface/blender.cpp \
xcore/interface/feature_match.cpp \
xcore/interface/geo_mapper.cpp \
xcore/interface/stitcher.cpp \
$(NULL)
XCAM_SOFT_SRC_FILES := \
modules/soft/soft_blender.cpp \
modules/soft/soft_blender_tasks_priv.cpp \
modules/soft/soft_copy_task.cpp \
modules/soft/soft_geo_mapper.cpp \
modules/soft/soft_geo_tasks_priv.cpp \
modules/soft/soft_handler.cpp \
modules/soft/soft_stitcher.cpp \
modules/soft/soft_video_buf_allocator.cpp \
modules/soft/soft_worker.cpp \
$(NULL)
ifeq ($(ENABLE_OPENCV), 1)
XCAM_SOFT_SRC_FILES += \
modules/ocv/cv_utils.cpp \
modules/ocv/cv_capi_feature_match.cpp \
$(NULL)
endif
LOCAL_SRC_FILES := $(XCAM_XCORE_SRC_FILES) $(XCAM_SOFT_SRC_FILES)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/xcore \
$(LOCAL_PATH)/modules \
$(NULL)
ifeq ($(ENABLE_OPENCV), 1)
LOCAL_C_INCLUDES += \
external/opencv/cv/include/ \
external/opencv/cxcore/include \
$(NULL)
endif
LOCAL_CFLAGS := $(XCAM_CFLAGS)
LOCAL_CPPFLAGS := $(LOCAL_CFLAGS) -frtti
include $(BUILD_SHARED_LIBRARY)
# For test-soft-image
# =================================================
include $(CLEAR_VARS)
LOCAL_MODULE := test-soft-image
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libxcam
LOCAL_SRC_FILES := \
tests/test-soft-image.cpp
$(NULL)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/xcore \
$(LOCAL_PATH)/modules \
$(LOCAL_PATH)/tests \
$(NULL)
LOCAL_CFLAGS := $(XCAM_CFLAGS)
LOCAL_CPPFLAGS := $(LOCAL_CFLAGS)
include $(BUILD_EXECUTABLE)