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_LICENSE_KINDS             := SPDX-license-identifier-BSD
59LOCAL_LICENSE_CONDITIONS        := notice
60LOCAL_MODULE_TAGS               := optional
61LOCAL_CFLAGS                    := $(libmm-venc-def)
62LOCAL_C_INCLUDES                := $(libmm-venc-inc)
63
64LOCAL_SHARED_LIBRARIES    := liblog libutils libbinder libcutils \
65                             libc2dcolorconvert libdl
66
67LOCAL_SRC_FILES   := venc/src/omx_video_base.cpp
68LOCAL_SRC_FILES   += venc/src/omx_video_encoder.cpp
69ifeq ($(TARGET_BOARD_PLATFORM),msm8974)
70LOCAL_SRC_FILES   += venc/src/video_encoder_device_copper.cpp
71else
72LOCAL_SRC_FILES   += venc/src/video_encoder_device.cpp
73endif
74
75
76LOCAL_SRC_FILES   += common/src/extra_data_handler.cpp
77
78LOCAL_CFLAGS      += -Wno-error
79
80include $(BUILD_SHARED_LIBRARY)
81
82# -----------------------------------------------------------------------------
83#  #                       Make the apps-test (mm-venc-omx-test720p)
84# -----------------------------------------------------------------------------
85
86include $(CLEAR_VARS)
87
88mm-venc-test720p-inc            := $(TARGET_OUT_HEADERS)/mm-core
89mm-venc-test720p-inc            += $(LOCAL_PATH)/venc/inc
90mm-venc-test720p-inc            += $(OMX_VIDEO_PATH)/vidc/common/inc
91mm-venc-test720p-inc            += hardware/qcom/media/msm8974/mm-core/inc
92mm-venc-test720p-inc            += $(TARGET_OUT_HEADERS)/qcom/display
93
94LOCAL_MODULE                    := mm-venc-omx-test720p
95LOCAL_LICENSE_KINDS             := SPDX-license-identifier-BSD
96LOCAL_LICENSE_CONDITIONS        := notice
97LOCAL_MODULE_TAGS               := optional
98LOCAL_CFLAGS                    := $(libmm-venc-def)
99LOCAL_C_INCLUDES                := $(mm-venc-test720p-inc)
100LOCAL_SHARED_LIBRARIES          := libmm-omxcore libOmxVenc libbinder
101
102LOCAL_SRC_FILES                 := venc/test/venc_test.cpp
103LOCAL_SRC_FILES                 += venc/test/camera_test.cpp
104LOCAL_SRC_FILES                 += venc/test/venc_util.c
105LOCAL_SRC_FILES                 += venc/test/fb_test.c
106
107include $(BUILD_EXECUTABLE)
108
109# -----------------------------------------------------------------------------
110# 			Make the apps-test (mm-video-driver-test)
111# -----------------------------------------------------------------------------
112
113include $(CLEAR_VARS)
114
115venc-test-inc                   += $(LOCAL_PATH)/venc/inc
116
117LOCAL_MODULE                    := mm-video-encdrv-test
118LOCAL_LICENSE_KINDS             := SPDX-license-identifier-BSD
119LOCAL_LICENSE_CONDITIONS        := notice
120LOCAL_MODULE_TAGS               := optional
121LOCAL_C_INCLUDES                := $(venc-test-inc)
122LOCAL_C_INCLUDES                += hardware/qcom/media/msm8974/mm-core/inc
123
124
125LOCAL_SRC_FILES                 := venc/test/video_encoder_test.c
126LOCAL_SRC_FILES                 += venc/test/queue.c
127
128include $(BUILD_EXECUTABLE)
129
130endif #BUILD_TINY_ANDROID
131
132# ---------------------------------------------------------------------------------
133# 					END
134# ---------------------------------------------------------------------------------
135