blob: a84d0f902ee7ecd0c48b254cb395d763edfaf968 [file] [log] [blame]
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 \
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/ \
$(LOCAL_PATH)/../hwc \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/inc/OMXCameraAdapter \
$(LOCAL_PATH)/../libtiutils \
hardware/ti/omap4xxx/tiler \
hardware/ti/omap4xxx/ion \
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 \
external/jpeg \
external/jhead
LOCAL_SHARED_LIBRARIES:= \
libui \
libbinder \
libutils \
libcutils \
libtiutils \
libmm_osal \
libOMX_Core \
libcamera_client \
libgui \
libdomx \
libion \
libjpeg \
libexif
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 \
hardware/ti/omap4xxx/ion \
frameworks/base/include/ui \
frameworks/base/include/utils \
frameworks/base/include/media/stagefright/openmax
LOCAL_SHARED_LIBRARIES:= \
libui \
libbinder \
libutils \
libcutils \
libtiutils \
libcamera_client \
libion \
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