blob: 0e2bb8c5df827bfe20124105c620b44389d13346 (
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
|
ifeq ($(TARGET_BOARD_PLATFORM),omap4)
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 \
SensorListener.cpp
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/ \
$(LOCAL_PATH)/../hwc \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/inc/OMXCameraAdapter \
$(LOCAL_PATH)/../libtiutils \
hardware/ti/omap4xxx/tiler \
frameworks/base/include/ui \
frameworks/base/include/utils \
hardware/ti/omap4xxx/domx/omx_core/inc \
hardware/ti/omap4xxx/domx/mm_osal/inc \
frameworks/base/include/media/stagefright \
frameworks/base/include/media/stagefright/openmax
LOCAL_SHARED_LIBRARIES:= \
libui \
libbinder \
libutils \
libcutils \
libtiutils \
libmm_osal \
libOMX_Core \
libtimemmgr \
libcamera_client \
libgui \
libdomx
LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS:= optional
include $(BUILD_HEAPTRACKED_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/ \
$(LOCAL_PATH)/../hwc \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/inc/V4LCameraAdapter \
$(LOCAL_PATH)/../libtiutils \
hardware/ti/omap4xxx/tiler \
frameworks/base/include/ui \
frameworks/base/include/utils \
frameworks/base/include/media/stagefright/openmax
LOCAL_SHARED_LIBRARIES:= \
libui \
libbinder \
libutils \
libcutils \
libtiutils \
libtimemmgr \
libcamera_client
LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS:= optional
include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
endif
endif
endif
|