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 | libOmxQcelp13Enc-def := -g -O3 |
| 11 | libOmxQcelp13Enc-def += -DQC_MODIFIED |
| 12 | libOmxQcelp13Enc-def += -D_ANDROID_ |
| 13 | libOmxQcelp13Enc-def += -D_ENABLE_QC_MSG_LOG_ |
| 14 | libOmxQcelp13Enc-def += -DVERBOSE |
| 15 | libOmxQcelp13Enc-def += -D_DEBUG |
Karthik Reddy Katta | be61caa | 2014-02-25 16:41:58 +0530 | [diff] [blame] | 16 | libOmxQcelp13Enc-def += -Wconversion |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 17 | libOmxQcelp13Enc-def += -DAUDIOV2 |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 18 | |
Abhishek Arpure | ce11235 | 2018-01-31 21:29:03 +0530 | [diff] [blame] | 19 | libOmxQcelp13Enc-def += -Wno-sign-conversion -Wno-shorten-64-to-32 -Wno-self-assign -Wno-parentheses-equality -Wno-format -Wno-sign-compare -Wno-tautological-compare -Wno-shorten-64-to-32 -Wno-unused-local-typedef |
| 20 | |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 21 | # --------------------------------------------------------------------------------- |
| 22 | # Make the Shared library (libOmxQcelp13Enc) |
| 23 | # --------------------------------------------------------------------------------- |
| 24 | |
| 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | libOmxQcelp13Enc-inc := $(LOCAL_PATH)/inc |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 28 | |
Naresh Tanniru | 10758b6 | 2017-06-05 21:05:53 +0530 | [diff] [blame] | 29 | LOCAL_MODULE := libOmxQcelp13Enc |
| 30 | LOCAL_MODULE_TAGS := optional |
| 31 | LOCAL_VENDOR_MODULE := true |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 32 | LOCAL_CFLAGS := $(libOmxQcelp13Enc-def) |
Preetam Singh Ranawat | e1e6ca1 | 2018-02-18 21:45:58 +0530 | [diff] [blame] | 33 | LOCAL_CFLAGS := -Wno-format -Wno-sign-compare -Wno-sign-conversion -Wno-self-assign -Wno-parentheses-equality |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 34 | LOCAL_C_INCLUDES := $(libOmxQcelp13Enc-inc) |
| 35 | LOCAL_PRELINK_MODULE := false |
| 36 | LOCAL_SHARED_LIBRARIES := libutils liblog |
| 37 | |
| 38 | LOCAL_SRC_FILES := src/aenc_svr.c |
| 39 | LOCAL_SRC_FILES += src/omx_qcelp13_aenc.cpp |
| 40 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 41 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 42 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 43 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 44 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 45 | endif |
| 46 | |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 47 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Vignesh Kulothungan | c49bdfa | 2020-01-08 14:24:17 -0800 | [diff] [blame] | 48 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio |
Asish Bhattacharya | 0b9bfb0 | 2017-07-15 08:39:36 +0530 | [diff] [blame] | 49 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 50 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Jaideep Sharma | 76767b5 | 2020-01-03 12:28:25 +0530 | [diff] [blame] | 51 | LOCAL_HEADER_LIBRARIES := libomxcore_headers |
Tanya Dixit | 6e3bccc | 2018-04-05 13:42:18 +0530 | [diff] [blame] | 52 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true) |
Jaideep Sharma | 76767b5 | 2020-01-03 12:28:25 +0530 | [diff] [blame] | 53 | LOCAL_HEADER_LIBRARIES += audio_kernel_headers |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 54 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
Asish Bhattacharya | d066587 | 2017-09-07 19:46:29 +0530 | [diff] [blame] | 55 | endif |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 56 | |
| 57 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame^] | 58 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 59 | LOCAL_SANITIZE := integer_overflow |
| 60 | endif |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 61 | include $(BUILD_SHARED_LIBRARY) |
| 62 | |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame] | 63 | |
| 64 | # --------------------------------------------------------------------------------- |
| 65 | # Make the apps-test (mm-aenc-omxqcelp13-test) |
| 66 | # --------------------------------------------------------------------------------- |
| 67 | |
| 68 | include $(CLEAR_VARS) |
| 69 | |
| 70 | mm-qcelp13-enc-test-inc := $(LOCAL_PATH)/inc |
| 71 | mm-qcelp13-enc-test-inc += $(LOCAL_PATH)/test |
| 72 | |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame] | 73 | LOCAL_MODULE := mm-aenc-omxqcelp13-test |
| 74 | LOCAL_MODULE_TAGS := optional |
| 75 | LOCAL_CFLAGS := $(libOmxQcelp13Enc-def) |
Preetam Singh Ranawat | e1e6ca1 | 2018-02-18 21:45:58 +0530 | [diff] [blame] | 76 | LOCAL_CFLAGS := -Wno-unused-local-typedef -Wno-shorten-64-to-32 |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame] | 77 | LOCAL_C_INCLUDES := $(mm-qcelp13-enc-test-inc) |
| 78 | LOCAL_PRELINK_MODULE := false |
| 79 | LOCAL_SHARED_LIBRARIES := libmm-omxcore |
| 80 | LOCAL_SHARED_LIBRARIES += libOmxQcelp13Enc |
Sachin Mohan Gadag | 1d9cde9 | 2017-12-29 17:31:17 +0530 | [diff] [blame] | 81 | LOCAL_VENDOR_MODULE := true |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame] | 82 | LOCAL_SRC_FILES := test/omx_qcelp13_enc_test.c |
| 83 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame^] | 84 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 85 | LOCAL_SANITIZE := integer_overflow |
| 86 | endif |
Preetam Singh Ranawat | 83382ef | 2017-06-15 16:20:34 +0530 | [diff] [blame] | 87 | include $(BUILD_EXECUTABLE) |
| 88 | |
Mingming Yin | 486032d | 2013-09-26 17:22:07 -0700 | [diff] [blame] | 89 | endif |
| 90 | |
| 91 | # --------------------------------------------------------------------------------- |
| 92 | # END |
| 93 | # --------------------------------------------------------------------------------- |
| 94 | |