blob: 648d93244cf4e5de44ccfbf269dfe431c7cfeba6 [file] [log] [blame]
Mingming Yin486032d2013-09-26 17:22:07 -07001ifneq ($(BUILD_TINY_ANDROID),true)
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# ---------------------------------------------------------------------------------
7# Common definitons
8# ---------------------------------------------------------------------------------
9
10libOmxAmrEnc-def := -g -O3
11libOmxAmrEnc-def += -DQC_MODIFIED
12libOmxAmrEnc-def += -D_ANDROID_
13libOmxAmrEnc-def += -D_ENABLE_QC_MSG_LOG_
14libOmxAmrEnc-def += -DVERBOSE
15libOmxAmrEnc-def += -D_DEBUG
Karthik Reddy Kattabe61caa2014-02-25 16:41:58 +053016libOmxAmrEnc-def += -Wconversion
Mingming Yin486032d2013-09-26 17:22:07 -070017libOmxAmrEnc-def += -DAUDIOV2
Mingming Yin486032d2013-09-26 17:22:07 -070018
Abhishek Arpurece112352018-01-31 21:29:03 +053019libOmxAmrEnc-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 Yin486032d2013-09-26 17:22:07 -070021# ---------------------------------------------------------------------------------
22# Make the Shared library (libOmxAmrEnc)
23# ---------------------------------------------------------------------------------
24
25include $(CLEAR_VARS)
26
27libOmxAmrEnc-inc := $(LOCAL_PATH)/inc
Mingming Yin486032d2013-09-26 17:22:07 -070028
Naresh Tanniru10758b62017-06-05 21:05:53 +053029LOCAL_MODULE := libOmxAmrEnc
30LOCAL_MODULE_TAGS := optional
31LOCAL_VENDOR_MODULE := true
Mingming Yin486032d2013-09-26 17:22:07 -070032LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053033LOCAL_CFLAGS := -Wno-format -Wno-sign-compare -Wno-sign-conversion -Wno-self-assign -Wno-parentheses-equality -Wno-tautological-compare
Mingming Yin486032d2013-09-26 17:22:07 -070034LOCAL_C_INCLUDES := $(libOmxAmrEnc-inc)
35LOCAL_PRELINK_MODULE := false
36LOCAL_SHARED_LIBRARIES := libutils liblog
37
38LOCAL_SRC_FILES := src/aenc_svr.c
39LOCAL_SRC_FILES += src/omx_amr_aenc.cpp
40
Vatsal Buchac09ae062018-11-14 13:25:08 +053041ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
42LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
43LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
44LOCAL_STATIC_LIBRARIES += libprofile_rt
45endif
46
Mingming Yin486032d2013-09-26 17:22:07 -070047LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
Vignesh Kulothunganc49bdfa2020-01-08 14:24:17 -080048LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053049LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Mingming Yin486032d2013-09-26 17:22:07 -070050LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Jaideep Sharma76767b52020-01-03 12:28:25 +053051LOCAL_HEADER_LIBRARIES := libomxcore_headers
Tanya Dixit6e3bccc2018-04-05 13:42:18 +053052ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Jaideep Sharma76767b52020-01-03 12:28:25 +053053 LOCAL_HEADER_LIBRARIES += audio_kernel_headers
Naveen S Nairc2b10532021-05-27 15:56:48 +053054 ifneq ($(BOARD_OPENSOURCE_DIR), )
55 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/$(BOARD_OPENSOURCE_DIR)/audio-kernel/include
56 else
57 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
58 endif # BOARD_OPENSOURCE_DIR
Asish Bhattacharyad0665872017-09-07 19:46:29 +053059endif
Mingming Yin486032d2013-09-26 17:22:07 -070060
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053061ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070062LOCAL_SANITIZE := integer_overflow
63endif
Mingming Yin486032d2013-09-26 17:22:07 -070064include $(BUILD_SHARED_LIBRARY)
65
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053066# ---------------------------------------------------------------------------------
67# Make the apps-test (mm-aenc-omxamr-test)
68# ---------------------------------------------------------------------------------
69
70include $(CLEAR_VARS)
71
72mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
73mm-amr-enc-test-inc += $(LOCAL_PATH)/test
74
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053075LOCAL_MODULE := mm-aenc-omxamr-test
76LOCAL_MODULE_TAGS := optional
77LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053078LOCAL_CFLAGS := -Wno-tautological-compare -Wno-unused-local-typedef
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053079LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
80LOCAL_PRELINK_MODULE := false
81LOCAL_SHARED_LIBRARIES := libmm-omxcore
82LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053083LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053084LOCAL_SRC_FILES := test/omx_amr_enc_test.c
85
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053086ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070087LOCAL_SANITIZE := integer_overflow
88endif
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053089include $(BUILD_EXECUTABLE)
90
Mingming Yin486032d2013-09-26 17:22:07 -070091endif
92
93# ---------------------------------------------------------------------------------
94# END
95# ---------------------------------------------------------------------------------
96