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