• 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      := bionic/libc/include
46libmm-venc-inc      += bionic/libstdc++/include
47libmm-venc-inc      := $(LOCAL_PATH)/venc/inc
48libmm-venc-inc      += $(OMX_VIDEO_PATH)/vidc/common/inc
49libmm-venc-inc      += hardware/qcom/media/mm-core/inc
50libmm-venc-inc      += hardware/qcom/media/libstagefrighthw
51libmm-venc-inc      += $(TARGET_OUT_HEADERS)/qcom/display
52libmm-venc-inc      += $(TARGET_OUT_HEADERS)/adreno
53libmm-venc-inc      += $(TARGET_OUT_HEADERS)/adreno200
54libmm-venc-inc      += frameworks/native/include/media/hardware
55libmm-venc-inc      += frameworks/native/include/media/openmax
56libmm-venc-inc      += hardware/qcom/media/libc2dcolorconvert
57libmm-venc-inc      += frameworks/av/include/media/stagefright
58
59LOCAL_MODULE                    := libOmxVenc
60LOCAL_MODULE_TAGS               := optional
61LOCAL_CFLAGS                    := $(libmm-venc-def)
62LOCAL_C_INCLUDES                := $(libmm-venc-inc)
63
64LOCAL_PRELINK_MODULE      := false
65LOCAL_SHARED_LIBRARIES    := liblog libutils libbinder libcutils \
66                             libc2dcolorconvert libdl
67
68LOCAL_SRC_FILES   := venc/src/omx_video_base.cpp
69LOCAL_SRC_FILES   += venc/src/omx_video_encoder.cpp
70ifeq ($(TARGET_BOARD_PLATFORM),msm8974)
71LOCAL_SRC_FILES   += venc/src/video_encoder_device_copper.cpp
72else
73LOCAL_SRC_FILES   += venc/src/video_encoder_device.cpp
74endif
75
76
77LOCAL_SRC_FILES   += common/src/extra_data_handler.cpp
78
79include $(BUILD_SHARED_LIBRARY)
80
81# -----------------------------------------------------------------------------
82#  #                       Make the apps-test (mm-venc-omx-test720p)
83# -----------------------------------------------------------------------------
84
85include $(CLEAR_VARS)
86
87mm-venc-test720p-inc            := $(TARGET_OUT_HEADERS)/mm-core
88mm-venc-test720p-inc            += $(LOCAL_PATH)/venc/inc
89mm-venc-test720p-inc            += $(OMX_VIDEO_PATH)/vidc/common/inc
90mm-venc-test720p-inc            += hardware/qcom/media/mm-core/inc
91mm-venc-test720p-inc            += $(TARGET_OUT_HEADERS)/qcom/display
92
93LOCAL_MODULE                    := mm-venc-omx-test720p
94LOCAL_MODULE_TAGS               := optional
95LOCAL_CFLAGS                    := $(libmm-venc-def)
96LOCAL_C_INCLUDES                := $(mm-venc-test720p-inc)
97LOCAL_PRELINK_MODULE            := false
98LOCAL_SHARED_LIBRARIES          := libmm-omxcore libOmxVenc libbinder
99
100LOCAL_SRC_FILES                 := venc/test/venc_test.cpp
101LOCAL_SRC_FILES                 += venc/test/camera_test.cpp
102LOCAL_SRC_FILES                 += venc/test/venc_util.c
103LOCAL_SRC_FILES                 += venc/test/fb_test.c
104
105include $(BUILD_EXECUTABLE)
106
107# -----------------------------------------------------------------------------
108# 			Make the apps-test (mm-video-driver-test)
109# -----------------------------------------------------------------------------
110
111include $(CLEAR_VARS)
112
113venc-test-inc                   += $(LOCAL_PATH)/venc/inc
114
115LOCAL_MODULE                    := mm-video-encdrv-test
116LOCAL_MODULE_TAGS               := optional
117LOCAL_C_INCLUDES                := $(venc-test-inc)
118LOCAL_C_INCLUDES                += hardware/qcom/media/mm-core/inc
119
120LOCAL_PRELINK_MODULE            := false
121
122LOCAL_SRC_FILES                 := venc/test/video_encoder_test.c
123LOCAL_SRC_FILES                 += venc/test/queue.c
124
125include $(BUILD_EXECUTABLE)
126
127endif #BUILD_TINY_ANDROID
128
129# ---------------------------------------------------------------------------------
130# 					END
131# ---------------------------------------------------------------------------------
132