Home | History | Annotate | Download | only in camera
      1 ifeq ($(TARGET_BOARD_PLATFORM),omap4)
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 OMAP4_CAMERA_HAL_USES:= OMX
      6 # OMAP4_CAMERA_HAL_USES:= USB
      7 
      8 OMAP4_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 
     20 OMAP4_CAMERA_COMMON_SRC:= \
     21 	CameraParameters.cpp \
     22 	TICameraParameters.cpp \
     23 	CameraHalCommon.cpp
     24 
     25 OMAP4_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 
     38 OMAP4_CAMERA_USB_SRC:= \
     39 	BaseCameraAdapter.cpp \
     40 	V4LCameraAdapter/V4LCameraAdapter.cpp
     41 
     42 #
     43 # OMX Camera HAL 
     44 #
     45 
     46 ifeq ($(OMAP4_CAMERA_HAL_USES),OMX)
     47 
     48 include $(CLEAR_VARS)
     49 
     50 LOCAL_SRC_FILES:= \
     51 	$(OMAP4_CAMERA_HAL_SRC) \
     52 	$(OMAP4_CAMERA_OMX_SRC) \
     53 	$(OMAP4_CAMERA_COMMON_SRC)
     54 
     55 LOCAL_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 
     71 LOCAL_SHARED_LIBRARIES:= \
     72     libui \
     73     libbinder \
     74     libutils \
     75     libcutils \
     76     liblog \
     77     libtiutils \
     78     libmm_osal \
     79     libOMX_Core \
     80     libcamera_client \
     81     libgui \
     82     libdomx \
     83     libion_ti \
     84     libjpeg \
     85     libjhead
     86 
     87 LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
     88 
     89 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
     90 LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
     91 LOCAL_MODULE_TAGS:= optional
     92 
     93 include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
     94 
     95 else
     96 ifeq ($(OMAP4_CAMERA_HAL_USES),USB)
     97 
     98 #
     99 # USB Camera Adapter
    100 #
    101 
    102 include $(CLEAR_VARS)
    103 
    104 LOCAL_SRC_FILES:= \
    105 	$(OMAP4_CAMERA_HAL_SRC) \
    106 	$(OMAP4_CAMERA_USB_SRC) \
    107 	$(OMAP4_CAMERA_COMMON_SRC)
    108 
    109 LOCAL_C_INCLUDES += \
    110     $(LOCAL_PATH)/inc/ \
    111     $(LOCAL_PATH)/../hwc \
    112     $(LOCAL_PATH)/../include \
    113     $(LOCAL_PATH)/inc/V4LCameraAdapter \
    114     $(LOCAL_PATH)/../libtiutils \
    115     hardware/ti/omap4xxx/tiler \
    116     hardware/ti/omap4xxx/ion \
    117     frameworks/base/include/ui \
    118     frameworks/base/include/utils \
    119     frameworks/base/include/media/stagefright/openmax
    120 
    121 LOCAL_SHARED_LIBRARIES:= \
    122     libui \
    123     libbinder \
    124     libutils \
    125     libcutils \
    126     liblog \
    127     libtiutils \
    128     libcamera_client \
    129     libion_ti \
    130 
    131 LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
    132 
    133 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
    134 LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
    135 LOCAL_MODULE_TAGS:= optional
    136 
    137 include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
    138 endif
    139 endif 
    140 endif
    141