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