• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ifeq ($(TARGET_BOARD_PLATFORM),omap4)
2
3LOCAL_PATH:= $(call my-dir)
4
5OMAP4_CAMERA_HAL_USES:= OMX
6# OMAP4_CAMERA_HAL_USES:= USB
7
8OMAP4_CAMERA_HAL_SRC := \
9	CameraHal_Module.cpp \
10	CameraHal.cpp \
11	CameraHalUtilClasses.cpp \
12	AppCallbackNotifier.cpp \
13	ANativeWindowDisplayAdapter.cpp \
14	CameraProperties.cpp \
15	MemoryManager.cpp \
16	Encoder_libjpeg.cpp \
17	SensorListener.cpp  \
18	NV12_resize.c
19
20OMAP4_CAMERA_COMMON_SRC:= \
21	CameraParameters.cpp \
22	TICameraParameters.cpp \
23	CameraHalCommon.cpp
24
25OMAP4_CAMERA_OMX_SRC:= \
26	BaseCameraAdapter.cpp \
27	OMXCameraAdapter/OMX3A.cpp \
28	OMXCameraAdapter/OMXAlgo.cpp \
29	OMXCameraAdapter/OMXCameraAdapter.cpp \
30	OMXCameraAdapter/OMXCapabilities.cpp \
31	OMXCameraAdapter/OMXCapture.cpp \
32	OMXCameraAdapter/OMXDefaults.cpp \
33	OMXCameraAdapter/OMXExif.cpp \
34	OMXCameraAdapter/OMXFD.cpp \
35	OMXCameraAdapter/OMXFocus.cpp \
36	OMXCameraAdapter/OMXZoom.cpp \
37
38OMAP4_CAMERA_USB_SRC:= \
39	BaseCameraAdapter.cpp \
40	V4LCameraAdapter/V4LCameraAdapter.cpp
41
42#
43# OMX Camera HAL
44#
45
46ifeq ($(OMAP4_CAMERA_HAL_USES),OMX)
47
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES:= \
51	$(OMAP4_CAMERA_HAL_SRC) \
52	$(OMAP4_CAMERA_OMX_SRC) \
53	$(OMAP4_CAMERA_COMMON_SRC)
54
55LOCAL_C_INCLUDES += \
56    $(LOCAL_PATH)/inc/ \
57    $(LOCAL_PATH)/../hwc \
58    $(LOCAL_PATH)/../include \
59    $(LOCAL_PATH)/inc/OMXCameraAdapter \
60    $(LOCAL_PATH)/../libtiutils \
61    hardware/ti/omap4xxx/tiler \
62    hardware/ti/omap4xxx/ion \
63    hardware/ti/omap4xxx/domx/omx_core/inc \
64    hardware/ti/omap4xxx/domx/mm_osal/inc \
65    frameworks/base/include/media/stagefright \
66    frameworks/native/include/media/hardware \
67    frameworks/native/include/media/openmax \
68    external/jpeg \
69    external/jhead
70
71LOCAL_SHARED_LIBRARIES:= \
72    libui \
73    libbinder \
74    libutils \
75    libcutils \
76    libtiutils \
77    libmm_osal \
78    libOMX_Core \
79    libcamera_client \
80    libgui \
81    libdomx \
82    libion_ti \
83    libjpeg \
84    libexif
85
86LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
87
88LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
89LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
90LOCAL_MODULE_TAGS:= optional
91
92include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
93
94else
95ifeq ($(OMAP4_CAMERA_HAL_USES),USB)
96
97#
98# USB Camera Adapter
99#
100
101include $(CLEAR_VARS)
102
103LOCAL_SRC_FILES:= \
104	$(OMAP4_CAMERA_HAL_SRC) \
105	$(OMAP4_CAMERA_USB_SRC) \
106	$(OMAP4_CAMERA_COMMON_SRC)
107
108LOCAL_C_INCLUDES += \
109    $(LOCAL_PATH)/inc/ \
110    $(LOCAL_PATH)/../hwc \
111    $(LOCAL_PATH)/../include \
112    $(LOCAL_PATH)/inc/V4LCameraAdapter \
113    $(LOCAL_PATH)/../libtiutils \
114    hardware/ti/omap4xxx/tiler \
115    hardware/ti/omap4xxx/ion \
116    frameworks/base/include/ui \
117    frameworks/base/include/utils \
118    frameworks/base/include/media/stagefright/openmax
119
120LOCAL_SHARED_LIBRARIES:= \
121    libui \
122    libbinder \
123    libutils \
124    libcutils \
125    libtiutils \
126    libcamera_client \
127    libion_ti \
128
129LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
130
131LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
132LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
133LOCAL_MODULE_TAGS:= optional
134
135include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
136endif
137endif
138endif
139