1 ifneq ($(BUILD_TINY_ANDROID),true) 2 3 ROOT_DIR := $(call my-dir) 4 5 include $(CLEAR_VARS) 6 LOCAL_PATH:= $(ROOT_DIR) 7 8 # --------------------------------------------------------------------------------- 9 # Common definitons 10 # --------------------------------------------------------------------------------- 11 12 libmm-venc-def += -D__align=__alignx 13 libmm-venc-def += -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\) 14 libmm-venc-def += -DT_ARM 15 libmm-venc-def += -Dinline=__inline 16 libmm-venc-def += -D_ANDROID_ 17 libmm-venc-def += -UENABLE_DEBUG_LOW 18 libmm-venc-def += -DENABLE_DEBUG_HIGH 19 libmm-venc-def += -DENABLE_DEBUG_ERROR 20 libmm-venc-def += -UINPUT_BUFFER_LOG 21 libmm-venc-def += -UOUTPUT_BUFFER_LOG 22 libmm-venc-def += -USINGLE_ENCODER_INSTANCE 23 ifeq ($(TARGET_BOARD_PLATFORM),msm8660) 24 libmm-venc-def += -DMAX_RES_1080P 25 endif 26 ifeq ($(TARGET_BOARD_PLATFORM),msm8960) 27 libmm-venc-def += -DMAX_RES_1080P 28 libmm-venc-def += -DMAX_RES_1080P_EBI 29 endif 30 ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 31 libmm-venc-def += -DMAX_RES_1080P 32 libmm-venc-def += -DMAX_RES_1080P_EBI 33 libmm-venc-def += -DBADGER 34 endif 35 ifeq ($(TARGET_USES_ION),true) 36 libmm-venc-def += -DUSE_ION 37 endif 38 libmm-venc-def += -D_ANDROID_ICS_ 39 # --------------------------------------------------------------------------------- 40 # Make the Shared library (libOmxVenc) 41 # --------------------------------------------------------------------------------- 42 43 include $(CLEAR_VARS) 44 45 libmm-venc-inc := $(LOCAL_PATH)/venc/inc 46 libmm-venc-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 47 libmm-venc-inc += hardware/qcom/media/msm8974/mm-core/inc 48 libmm-venc-inc += hardware/qcom/media/msm8974/libstagefrighthw 49 libmm-venc-inc += $(TARGET_OUT_HEADERS)/qcom/display 50 libmm-venc-inc += $(TARGET_OUT_HEADERS)/adreno 51 libmm-venc-inc += $(TARGET_OUT_HEADERS)/adreno200 52 libmm-venc-inc += frameworks/native/include/media/hardware 53 libmm-venc-inc += frameworks/native/include/media/openmax 54 libmm-venc-inc += hardware/qcom/media/msm8974/libc2dcolorconvert 55 libmm-venc-inc += frameworks/av/include/media/stagefright 56 57 LOCAL_MODULE := libOmxVenc 58 LOCAL_MODULE_TAGS := optional 59 LOCAL_CFLAGS := $(libmm-venc-def) 60 LOCAL_C_INCLUDES := $(libmm-venc-inc) 61 62 LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libcutils \ 63 libc2dcolorconvert libdl 64 65 LOCAL_SRC_FILES := venc/src/omx_video_base.cpp 66 LOCAL_SRC_FILES += venc/src/omx_video_encoder.cpp 67 ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 68 LOCAL_SRC_FILES += venc/src/video_encoder_device_copper.cpp 69 else 70 LOCAL_SRC_FILES += venc/src/video_encoder_device.cpp 71 endif 72 73 74 LOCAL_SRC_FILES += common/src/extra_data_handler.cpp 75 76 include $(BUILD_SHARED_LIBRARY) 77 78 # ----------------------------------------------------------------------------- 79 # # Make the apps-test (mm-venc-omx-test720p) 80 # ----------------------------------------------------------------------------- 81 82 include $(CLEAR_VARS) 83 84 mm-venc-test720p-inc := $(TARGET_OUT_HEADERS)/mm-core 85 mm-venc-test720p-inc += $(LOCAL_PATH)/venc/inc 86 mm-venc-test720p-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 87 mm-venc-test720p-inc += hardware/qcom/media/msm8974/mm-core/inc 88 mm-venc-test720p-inc += $(TARGET_OUT_HEADERS)/qcom/display 89 90 LOCAL_MODULE := mm-venc-omx-test720p 91 LOCAL_MODULE_TAGS := optional 92 LOCAL_CFLAGS := $(libmm-venc-def) 93 LOCAL_C_INCLUDES := $(mm-venc-test720p-inc) 94 LOCAL_SHARED_LIBRARIES := libmm-omxcore libOmxVenc libbinder 95 96 LOCAL_SRC_FILES := venc/test/venc_test.cpp 97 LOCAL_SRC_FILES += venc/test/camera_test.cpp 98 LOCAL_SRC_FILES += venc/test/venc_util.c 99 LOCAL_SRC_FILES += venc/test/fb_test.c 100 101 include $(BUILD_EXECUTABLE) 102 103 # ----------------------------------------------------------------------------- 104 # Make the apps-test (mm-video-driver-test) 105 # ----------------------------------------------------------------------------- 106 107 include $(CLEAR_VARS) 108 109 venc-test-inc += $(LOCAL_PATH)/venc/inc 110 111 LOCAL_MODULE := mm-video-encdrv-test 112 LOCAL_MODULE_TAGS := optional 113 LOCAL_C_INCLUDES := $(venc-test-inc) 114 LOCAL_C_INCLUDES += hardware/qcom/media/msm8974/mm-core/inc 115 116 117 LOCAL_SRC_FILES := venc/test/video_encoder_test.c 118 LOCAL_SRC_FILES += venc/test/queue.c 119 120 include $(BUILD_EXECUTABLE) 121 122 endif #BUILD_TINY_ANDROID 123 124 # --------------------------------------------------------------------------------- 125 # END 126 # --------------------------------------------------------------------------------- 127