首页
社区
课程
招聘
[求助]谁知道这个android.mk文件会生成什么?
发表于: 2014-5-11 09:58 6023

[求助]谁知道这个android.mk文件会生成什么?

2014-5-11 09:58
6023
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

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
tom
2
估计也就是生成个android下HAL的摄象头驱动
2014-5-11 10:39
0
雪    币: 8
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
嗯,我想知道生成一个叫什么名字的文件
重点是这句:LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)
看不懂
2014-5-11 12:42
0
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
tom
4
从这句ifeq ($(TARGET_BOARD_PLATFORM),omap4)看来,猜策最后会生成camera.omap4文件
2014-5-11 15:58
0
雪    币: 8
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
不会生成动态库吗?
include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
名字应该是看LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)吧?
如果include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)是
include $(BUILD_SHARED_LIBRARY)
生成的应该是libcamera.omap4.so
但加了个heaptracked,堆指针?
生成的东西camera.omap4是什么类型文件?功能和动态库一样吗?
可以按正常方法hook吗?
求详解
2014-5-11 16:13
0
游客
登录 | 注册 方可回帖
返回
//