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 | libOmxAacEnc-def := -g -O3 |
| 11 | libOmxAacEnc-def += -DQC_MODIFIED |
| 12 | libOmxAacEnc-def += -D_ANDROID_ |
| 13 | libOmxAacEnc-def += -D_ENABLE_QC_MSG_LOG_ |
| 14 | libOmxAacEnc-def += -DVERBOSE |
| 15 | libOmxAacEnc-def += -D_DEBUG |
Karthik Reddy Katta | be61caa | 2014-02-25 16:41:58 +0530 | [diff] [blame] | 16 | libOmxAacEnc-def += -Wconversion |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 17 | libOmxAacEnc-def += -DAUDIOV2 |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 18 | |
| 19 | # --------------------------------------------------------------------------------- |
| 20 | # Make the Shared library (libOmxAacEnc) |
| 21 | # --------------------------------------------------------------------------------- |
| 22 | |
| 23 | include $(CLEAR_VARS) |
| 24 | |
| 25 | libOmxAacEnc-inc := $(LOCAL_PATH)/inc |
| 26 | libOmxAacEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore |
| 27 | |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 28 | LOCAL_MODULE := libOmxAacEnc |
| 29 | LOCAL_MODULE_TAGS := optional |
| 30 | LOCAL_VENDOR_MODULE := true |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS := $(libOmxAacEnc-def) |
| 32 | LOCAL_C_INCLUDES := $(libOmxAacEnc-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_aac_aenc.cpp |
| 38 | |
| 39 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Asish Bhattacharya | 0b9bfb0 | 2017-07-15 08:39:36 +0530 | [diff] [blame] | 40 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 41 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 42 | |
| 43 | include $(BUILD_SHARED_LIBRARY) |
| 44 | |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame^] | 45 | # --------------------------------------------------------------------------------- |
| 46 | # Make the apps-test (mm-aenc-omxaac-test) |
| 47 | # --------------------------------------------------------------------------------- |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | |
| 51 | mm-aac-enc-test-inc := $(LOCAL_PATH)/inc |
| 52 | mm-aac-enc-test-inc += $(LOCAL_PATH)/test |
| 53 | mm-aac-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa |
| 54 | mm-aac-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore |
| 55 | |
| 56 | LOCAL_MODULE := mm-aenc-omxaac-test |
| 57 | LOCAL_MODULE_TAGS := optional |
| 58 | LOCAL_CFLAGS := $(libOmxAacEnc-def) |
| 59 | LOCAL_C_INCLUDES := $(mm-aac-enc-test-inc) |
| 60 | LOCAL_PRELINK_MODULE := false |
| 61 | LOCAL_SHARED_LIBRARIES := libmm-omxcore |
| 62 | LOCAL_SHARED_LIBRARIES += libOmxAacEnc |
| 63 | LOCAL_SHARED_LIBRARIES += libaudioalsa |
| 64 | LOCAL_SRC_FILES := test/omx_aac_enc_test.c |
| 65 | |
| 66 | include $(BUILD_EXECUTABLE) |
| 67 | |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 68 | endif |
| 69 | |
| 70 | # --------------------------------------------------------------------------------- |
| 71 | # END |
| 72 | # --------------------------------------------------------------------------------- |
| 73 | |