blob: 23571f0fe26b567b048797dd61b4c982a471e05a (
plain)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
LOCAL_PATH := $(call my-dir)
OMAP4_CAMERA_HAL_USES := OMX
# OMAP4_CAMERA_HAL_USES := USB
OMAP4_CAMERA_HAL_SRC := \
CameraHal_Module.cpp \
CameraHal.cpp \
CameraHalUtilClasses.cpp \
AppCallbackNotifier.cpp \
ANativeWindowDisplayAdapter.cpp \
CameraProperties.cpp \
MemoryManager.cpp \
Encoder_libjpeg.cpp \
SensorListener.cpp \
NV12_resize.c
OMAP4_CAMERA_COMMON_SRC := \
CameraParameters.cpp \
TICameraParameters.cpp \
CameraHalCommon.cpp
OMAP4_CAMERA_OMX_SRC := \
BaseCameraAdapter.cpp \
OMXCameraAdapter/OMX3A.cpp \
OMXCameraAdapter/OMXAlgo.cpp \
OMXCameraAdapter/OMXCameraAdapter.cpp \
OMXCameraAdapter/OMXCapabilities.cpp \
OMXCameraAdapter/OMXCapture.cpp \
OMXCameraAdapter/OMXDefaults.cpp \
OMXCameraAdapter/OMXExif.cpp \
OMXCameraAdapter/OMXFD.cpp \
OMXCameraAdapter/OMXFocus.cpp \
OMXCameraAdapter/OMXZoom.cpp
OMAP4_CAMERA_USB_SRC := \
BaseCameraAdapter.cpp \
V4LCameraAdapter/V4LCameraAdapter.cpp
#
# OMX Camera HAL
#
ifeq ($(OMAP4_CAMERA_HAL_USES),OMX)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(OMAP4_CAMERA_HAL_SRC) \
$(OMAP4_CAMERA_OMX_SRC) \
$(OMAP4_CAMERA_COMMON_SRC)
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc/ \
$(DEVICE_FOLDER)/hwc \
$(DEVICE_FOLDER)/include \
$(LOCAL_PATH)/inc/OMXCameraAdapter \
$(DEVICE_FOLDER)/libtiutils \
hardware/ti/omap4xxx/tiler \
$(DEVICE_FOLDER)/libion_ti \
$(DOMX_PATH)/omx_core/inc \
$(DOMX_PATH)/mm_osal/inc \
frameworks/base/include/media/stagefright \
frameworks/native/include/media/hardware \
frameworks/native/include/media/openmax \
external/jpeg \
external/jhead
LOCAL_SHARED_LIBRARIES := \
libui \
libbinder \
libutils \
libcutils \
liblog \
libtiutils_custom \
libmm_osal \
libOMX_Core \
libcamera_client \
libgui \
libdomx \
libion_ti \
libjpeg \
libjhead
LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := camera.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
else
ifeq ($(OMAP4_CAMERA_HAL_USES),USB)
#
# USB Camera Adapter
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(OMAP4_CAMERA_HAL_SRC) \
$(OMAP4_CAMERA_USB_SRC) \
$(OMAP4_CAMERA_COMMON_SRC)
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc/ \
$(DEVICE_FOLDER)/hwc \
$(DEVICE_FOLDER)/include \
$(LOCAL_PATH)/inc/V4LCameraAdapter \
$(DEVICE_FOLDER)/libtiutils \
hardware/ti/omap4xxx/tiler \
$(DEVICE_FOLDER)/libion_ti \
frameworks/base/include/ui \
frameworks/base/include/utils \
frameworks/base/include/media/stagefright/openmax
LOCAL_SHARED_LIBRARIES := \
libui \
libbinder \
libutils \
libcutils \
liblog \
libtiutils_custom \
libcamera_client \
libion_ti
LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := camera.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
endif
endif
|