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