blob: 826edba8572fe8d0f530b3b7ef39faa2c95b0c96 [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
10libOmxEvrcEnc-def := -g -O3
11libOmxEvrcEnc-def += -DQC_MODIFIED
12libOmxEvrcEnc-def += -D_ANDROID_
13libOmxEvrcEnc-def += -D_ENABLE_QC_MSG_LOG_
14libOmxEvrcEnc-def += -DVERBOSE
15libOmxEvrcEnc-def += -D_DEBUG
Karthik Reddy Kattabe61caa2014-02-25 16:41:58 +053016libOmxEvrcEnc-def += -Wconversion
Mingming Yin486032d2013-09-26 17:22:07 -070017libOmxEvrcEnc-def += -DAUDIOV2
Mingming Yin486032d2013-09-26 17:22:07 -070018
Abhishek Arpurece112352018-01-31 21:29:03 +053019libOmxEvrcEnc-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 (libOmxEvrcEnc)
23# ---------------------------------------------------------------------------------
24
25include $(CLEAR_VARS)
26
27libOmxEvrcEnc-inc := $(LOCAL_PATH)/inc
28libOmxEvrcEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
29
Naresh Tanniru10758b62017-06-05 21:05:53 +053030LOCAL_MODULE := libOmxEvrcEnc
31LOCAL_MODULE_TAGS := optional
32LOCAL_VENDOR_MODULE := true
Mingming Yin486032d2013-09-26 17:22:07 -070033LOCAL_CFLAGS := $(libOmxEvrcEnc-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
Mingming Yin486032d2013-09-26 17:22:07 -070035LOCAL_C_INCLUDES := $(libOmxEvrcEnc-inc)
36LOCAL_PRELINK_MODULE := false
37LOCAL_SHARED_LIBRARIES := libutils liblog
38
39LOCAL_SRC_FILES := src/aenc_svr.c
40LOCAL_SRC_FILES += src/omx_evrc_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
Vignesh Kulothunganc49bdfa2020-01-08 14:24:17 -080049LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053050LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Mingming Yin486032d2013-09-26 17:22:07 -070051LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Tanya Dixit6e3bccc2018-04-05 13:42:18 +053052ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Banajit Goswami0ee0d3d2018-02-23 09:54:30 -080053 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053054endif
55ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
56 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053057 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
Asish Bhattacharyad0665872017-09-07 19:46:29 +053058endif
Mingming Yin486032d2013-09-26 17:22:07 -070059
Vignesh Kulothungan4e64c782020-01-15 18:34:48 -080060ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070061LOCAL_SANITIZE := integer_overflow
62endif
Mingming Yin486032d2013-09-26 17:22:07 -070063include $(BUILD_SHARED_LIBRARY)
64
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053065# ---------------------------------------------------------------------------------
66# Make the apps-test (mm-aenc-omxevrc-test)
67# ---------------------------------------------------------------------------------
68
69include $(CLEAR_VARS)
70
71mm-evrc-enc-test-inc := $(LOCAL_PATH)/inc
72mm-evrc-enc-test-inc += $(LOCAL_PATH)/test
73mm-evrc-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053074LOCAL_MODULE := mm-aenc-omxevrc-test
75LOCAL_MODULE_TAGS := optional
76LOCAL_CFLAGS := $(libOmxEvrcEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053077LOCAL_CFLAGS := -Wno-unused-local-typedef -Wno-shorten-64-to-32
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053078LOCAL_C_INCLUDES := $(mm-evrc-enc-test-inc)
79LOCAL_PRELINK_MODULE := false
80LOCAL_SHARED_LIBRARIES := libmm-omxcore
81LOCAL_SHARED_LIBRARIES += libOmxEvrcEnc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053082LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053083LOCAL_SRC_FILES := test/omx_evrc_enc_test.c
84
Vignesh Kulothungan4e64c782020-01-15 18:34:48 -080085ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070086LOCAL_SANITIZE := integer_overflow
87endif
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053088include $(BUILD_EXECUTABLE)
89
Mingming Yin486032d2013-09-26 17:22:07 -070090endif
91
92# ---------------------------------------------------------------------------------
93# END
94# ---------------------------------------------------------------------------------
95