blob: 7e0007f2fbe144fa3f4f626f12666d7f6dac4b2a [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
28libOmxAmrEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
29
Naresh Tanniru10758b62017-06-05 21:05:53 +053030LOCAL_MODULE := libOmxAmrEnc
31LOCAL_MODULE_TAGS := optional
32LOCAL_VENDOR_MODULE := true
Mingming Yin486032d2013-09-26 17:22:07 -070033LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053034LOCAL_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 -070035LOCAL_C_INCLUDES := $(libOmxAmrEnc-inc)
36LOCAL_PRELINK_MODULE := false
37LOCAL_SHARED_LIBRARIES := libutils liblog
38
39LOCAL_SRC_FILES := src/aenc_svr.c
40LOCAL_SRC_FILES += src/omx_amr_aenc.cpp
41
Vatsal Buchac09ae062018-11-14 13:25:08 +053042ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
43LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
44LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
45LOCAL_STATIC_LIBRARIES += libprofile_rt
46endif
47
Mingming Yin486032d2013-09-26 17:22:07 -070048LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
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
Tanya Dixit6e3bccc2018-04-05 13:42:18 +053051ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Banajit Goswami0ee0d3d2018-02-23 09:54:30 -080052 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053053endif
54ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
55 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053056 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Asish Bhattacharyad0665872017-09-07 19:46:29 +053057endif
Mingming Yin486032d2013-09-26 17:22:07 -070058
59include $(BUILD_SHARED_LIBRARY)
60
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053061# ---------------------------------------------------------------------------------
62# Make the apps-test (mm-aenc-omxamr-test)
63# ---------------------------------------------------------------------------------
64
65include $(CLEAR_VARS)
66
67mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
68mm-amr-enc-test-inc += $(LOCAL_PATH)/test
69
70mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053071LOCAL_MODULE := mm-aenc-omxamr-test
72LOCAL_MODULE_TAGS := optional
73LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053074LOCAL_CFLAGS := -Wno-tautological-compare -Wno-unused-local-typedef
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053075LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
76LOCAL_PRELINK_MODULE := false
77LOCAL_SHARED_LIBRARIES := libmm-omxcore
78LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053079LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053080LOCAL_SRC_FILES := test/omx_amr_enc_test.c
81
82include $(BUILD_EXECUTABLE)
83
Mingming Yin486032d2013-09-26 17:22:07 -070084endif
85
86# ---------------------------------------------------------------------------------
87# END
88# ---------------------------------------------------------------------------------
89