blob: 21fc17a2c040a30c8ff8c4e9d302b4a0b8eaca18 [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
42LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053043LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Mingming Yin486032d2013-09-26 17:22:07 -070044LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Naresh Tanniru42e0e602018-03-16 19:45:21 +053045ifneq ($(filter sdm710 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)
Banajit Goswami0ee0d3d2018-02-23 09:54:30 -080046 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053047endif
48ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
49 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053050 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
51 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
52endif
Mingming Yin486032d2013-09-26 17:22:07 -070053
54include $(BUILD_SHARED_LIBRARY)
55
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053056# ---------------------------------------------------------------------------------
57# Make the apps-test (mm-aenc-omxamr-test)
58# ---------------------------------------------------------------------------------
59
60include $(CLEAR_VARS)
61
62mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
63mm-amr-enc-test-inc += $(LOCAL_PATH)/test
64
65mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053066LOCAL_MODULE := mm-aenc-omxamr-test
67LOCAL_MODULE_TAGS := optional
68LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053069LOCAL_CFLAGS := -Wno-tautological-compare -Wno-unused-local-typedef
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053070LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
71LOCAL_PRELINK_MODULE := false
72LOCAL_SHARED_LIBRARIES := libmm-omxcore
73LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053074LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053075LOCAL_SRC_FILES := test/omx_amr_enc_test.c
76
77include $(BUILD_EXECUTABLE)
78
Mingming Yin486032d2013-09-26 17:22:07 -070079endif
80
81# ---------------------------------------------------------------------------------
82# END
83# ---------------------------------------------------------------------------------
84