blob: 21efdfd53cb77e61e61efc7166aff3f86d8eea78 [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
10libOmxAmrEnc-def := -g -O3
11libOmxAmrEnc-def += -DQC_MODIFIED
12libOmxAmrEnc-def += -D_ANDROID_
13libOmxAmrEnc-def += -D_ENABLE_QC_MSG_LOG_
14libOmxAmrEnc-def += -DVERBOSE
15libOmxAmrEnc-def += -D_DEBUG
Karthik Reddy Kattabe61caa2014-02-25 16:41:58 +053016libOmxAmrEnc-def += -Wconversion
Mingming Yin486032d2013-09-26 17:22:07 -070017ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
18libOmxAmrEnc-def += -DAUDIOV2
19endif
20
21# ---------------------------------------------------------------------------------
22# Make the Shared library (libOmxAmrEnc)
23# ---------------------------------------------------------------------------------
24
25include $(CLEAR_VARS)
26
27libOmxAmrEnc-inc := $(LOCAL_PATH)/inc
28libOmxAmrEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
29
30LOCAL_MODULE := libOmxAmrEnc
31LOCAL_MODULE_TAGS := optional
32LOCAL_CFLAGS := $(libOmxAmrEnc-def)
33LOCAL_C_INCLUDES := $(libOmxAmrEnc-inc)
34LOCAL_PRELINK_MODULE := false
35LOCAL_SHARED_LIBRARIES := libutils liblog
36
37LOCAL_SRC_FILES := src/aenc_svr.c
38LOCAL_SRC_FILES += src/omx_amr_aenc.cpp
39
40LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
41LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
42
43include $(BUILD_SHARED_LIBRARY)
44
45# ---------------------------------------------------------------------------------
46# Make the apps-test (mm-aenc-omxamr-test)
47# ---------------------------------------------------------------------------------
48
49include $(CLEAR_VARS)
50
51mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
52mm-amr-enc-test-inc += $(LOCAL_PATH)/test
53
54mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
55ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
56mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa
57endif
58LOCAL_MODULE := mm-aenc-omxamr-test
59LOCAL_MODULE_TAGS := optional
60LOCAL_CFLAGS := $(libOmxAmrEnc-def)
61LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
62LOCAL_PRELINK_MODULE := false
63LOCAL_SHARED_LIBRARIES := libmm-omxcore
64LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
65ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
66LOCAL_SHARED_LIBRARIES += libaudioalsa
67endif
68LOCAL_SRC_FILES := test/omx_amr_enc_test.c
69
70include $(BUILD_EXECUTABLE)
71
72endif
73
74# ---------------------------------------------------------------------------------
75# END
76# ---------------------------------------------------------------------------------
77