blob: d38d004f277ee8f23ad728f24fbc89b695ee6dd3 [file] [log] [blame]
Mingming Yin486032d2013-09-26 17:22:07 -07001ifneq ($(BUILD_TINY_ANDROID),true)
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# ---------------------------------------------------------------------------------
7# Common definitons
8# ---------------------------------------------------------------------------------
9
10libOmxEvrcEnc-def := -g -O3
11libOmxEvrcEnc-def += -DQC_MODIFIED
12libOmxEvrcEnc-def += -D_ANDROID_
13libOmxEvrcEnc-def += -D_ENABLE_QC_MSG_LOG_
14libOmxEvrcEnc-def += -DVERBOSE
15libOmxEvrcEnc-def += -D_DEBUG
16ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
17libOmxEvrcEnc-def += -DAUDIOV2
18endif
19
20# ---------------------------------------------------------------------------------
21# Make the Shared library (libOmxEvrcEnc)
22# ---------------------------------------------------------------------------------
23
24include $(CLEAR_VARS)
25
26libOmxEvrcEnc-inc := $(LOCAL_PATH)/inc
27libOmxEvrcEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
28
29LOCAL_MODULE := libOmxEvrcEnc
30LOCAL_MODULE_TAGS := optional
31LOCAL_CFLAGS := $(libOmxEvrcEnc-def)
32LOCAL_C_INCLUDES := $(libOmxEvrcEnc-inc)
33LOCAL_PRELINK_MODULE := false
34LOCAL_SHARED_LIBRARIES := libutils liblog
35
36LOCAL_SRC_FILES := src/aenc_svr.c
37LOCAL_SRC_FILES += src/omx_evrc_aenc.cpp
38
39LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
40LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
41
42include $(BUILD_SHARED_LIBRARY)
43
44# ---------------------------------------------------------------------------------
45# Make the apps-test (mm-aenc-omxevrc-test)
46# ---------------------------------------------------------------------------------
47
48include $(CLEAR_VARS)
49
50mm-evrc-enc-test-inc := $(LOCAL_PATH)/inc
51mm-evrc-enc-test-inc += $(LOCAL_PATH)/test
52mm-evrc-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
53ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
54mm-evrc-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa
55endif
56LOCAL_MODULE := mm-aenc-omxevrc-test
57LOCAL_MODULE_TAGS := optional
58LOCAL_CFLAGS := $(libOmxEvrcEnc-def)
59LOCAL_C_INCLUDES := $(mm-evrc-enc-test-inc)
60LOCAL_PRELINK_MODULE := false
61LOCAL_SHARED_LIBRARIES := libmm-omxcore
62LOCAL_SHARED_LIBRARIES += libOmxEvrcEnc
63ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
64LOCAL_SHARED_LIBRARIES += libaudioalsa
65endif
66LOCAL_SRC_FILES := test/omx_evrc_enc_test.c
67
68include $(BUILD_EXECUTABLE)
69
70endif
71
72# ---------------------------------------------------------------------------------
73# END
74# ---------------------------------------------------------------------------------
75