blob: b97e2e5bc2e7676dc3d56ec3da7773f8bff5da14 [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
16ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
17libOmxAmrEnc-def += -DAUDIOV2
18endif
19
20# ---------------------------------------------------------------------------------
21# Make the Shared library (libOmxAmrEnc)
22# ---------------------------------------------------------------------------------
23
24include $(CLEAR_VARS)
25
26libOmxAmrEnc-inc := $(LOCAL_PATH)/inc
27libOmxAmrEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
28
29LOCAL_MODULE := libOmxAmrEnc
30LOCAL_MODULE_TAGS := optional
31LOCAL_CFLAGS := $(libOmxAmrEnc-def)
32LOCAL_C_INCLUDES := $(libOmxAmrEnc-inc)
33LOCAL_PRELINK_MODULE := false
34LOCAL_SHARED_LIBRARIES := libutils liblog
35
36LOCAL_SRC_FILES := src/aenc_svr.c
37LOCAL_SRC_FILES += src/omx_amr_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-omxamr-test)
46# ---------------------------------------------------------------------------------
47
48include $(CLEAR_VARS)
49
50mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
51mm-amr-enc-test-inc += $(LOCAL_PATH)/test
52
53mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
54ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
55mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa
56endif
57LOCAL_MODULE := mm-aenc-omxamr-test
58LOCAL_MODULE_TAGS := optional
59LOCAL_CFLAGS := $(libOmxAmrEnc-def)
60LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
61LOCAL_PRELINK_MODULE := false
62LOCAL_SHARED_LIBRARIES := libmm-omxcore
63LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
64ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true)
65LOCAL_SHARED_LIBRARIES += libaudioalsa
66endif
67LOCAL_SRC_FILES := test/omx_amr_enc_test.c
68
69include $(BUILD_EXECUTABLE)
70
71endif
72
73# ---------------------------------------------------------------------------------
74# END
75# ---------------------------------------------------------------------------------
76