1ifneq ($(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
16libOmxEvrcEnc-def += -Wconversion
17libOmxEvrcEnc-def += -DAUDIOV2
18
19# ---------------------------------------------------------------------------------
20#             Make the Shared library (libOmxEvrcEnc)
21# ---------------------------------------------------------------------------------
22
23include $(CLEAR_VARS)
24
25libOmxEvrcEnc-inc       := $(LOCAL_PATH)/inc
26libOmxEvrcEnc-inc       += $(TARGET_OUT_HEADERS)/mm-core/omxcore
27
28LOCAL_MODULE            := libOmxEvrcEnc
29LOCAL_MODULE_TAGS       := optional
30LOCAL_CFLAGS            := $(libOmxEvrcEnc-def)
31LOCAL_C_INCLUDES        := $(libOmxEvrcEnc-inc)
32LOCAL_PRELINK_MODULE    := false
33LOCAL_SHARED_LIBRARIES  := libutils liblog
34
35LOCAL_SRC_FILES         := src/aenc_svr.c
36LOCAL_SRC_FILES         += src/omx_evrc_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#             Make the apps-test (mm-aenc-omxevrc-test)
45# ---------------------------------------------------------------------------------
46
47include $(CLEAR_VARS)
48
49mm-evrc-enc-test-inc    := $(LOCAL_PATH)/inc
50mm-evrc-enc-test-inc    += $(LOCAL_PATH)/test
51mm-evrc-enc-test-inc    += $(TARGET_OUT_HEADERS)/mm-core/omxcore
52mm-evrc-enc-test-inc     += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa
53LOCAL_MODULE            := mm-aenc-omxevrc-test
54LOCAL_MODULE_TAGS       := optional
55LOCAL_CFLAGS            := $(libOmxEvrcEnc-def)
56LOCAL_C_INCLUDES        := $(mm-evrc-enc-test-inc)
57LOCAL_PRELINK_MODULE    := false
58LOCAL_SHARED_LIBRARIES  := libmm-omxcore
59LOCAL_SHARED_LIBRARIES  += libOmxEvrcEnc
60LOCAL_SHARED_LIBRARIES  += libaudioalsa
61LOCAL_SRC_FILES         := test/omx_evrc_enc_test.c
62
63include $(BUILD_EXECUTABLE)
64
65endif
66
67# ---------------------------------------------------------------------------------
68#                     END
69# ---------------------------------------------------------------------------------
70
71