blob: 95dd6555af9838c2f90f15cd1a608806e7fc91b8 [file] [log] [blame]
Arun Kumar Dasari882636a2016-03-10 17:59:29 +05301ifneq ($(BUILD_TINY_ANDROID),true)
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# ---------------------------------------------------------------------------------
7# Common definitons
8# ---------------------------------------------------------------------------------
9
10libOmxG711Enc-def := -g -O3
11libOmxG711Enc-def += -DQC_MODIFIED
12libOmxG711Enc-def += -D_ANDROID_
13libOmxG711Enc-def += -D_ENABLE_QC_MSG_LOG_
14libOmxG711Enc-def += -DVERBOSE
15libOmxG711Enc-def += -D_DEBUG
16libOmxG711Enc-def += -Wconversion
17libOmxG711Enc-def += -DAUDIOV2
18
Abhishek Arpurece112352018-01-31 21:29:03 +053019libOmxG711Enc-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
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053021# ---------------------------------------------------------------------------------
22# Make the Shared library (libOmxG711Enc)
23# ---------------------------------------------------------------------------------
24
25include $(CLEAR_VARS)
26
27libOmxG711Enc-inc := $(LOCAL_PATH)/inc
28libOmxG711Enc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
29
Naresh Tanniru10758b62017-06-05 21:05:53 +053030LOCAL_MODULE := libOmxG711Enc
31LOCAL_MODULE_TAGS := optional
32LOCAL_VENDOR_MODULE := true
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053033LOCAL_CFLAGS := $(libOmxG711Enc-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
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053035LOCAL_C_INCLUDES := $(libOmxG711Enc-inc)
36LOCAL_PRELINK_MODULE := false
37LOCAL_SHARED_LIBRARIES := libutils liblog libcutils
38
39LOCAL_SRC_FILES := src/aenc_svr.c
40LOCAL_SRC_FILES += src/omx_g711_aenc.cpp
41LOCAL_SRC_FILES += src/omx_log.cpp
42
43LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
Asish Bhattacharya0b9bfb02017-07-15 08:39:36 +053044LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053045LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Tanya Dixit6e3bccc2018-04-05 13:42:18 +053046ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
Banajit Goswami0ee0d3d2018-02-23 09:54:30 -080047 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Satish Babu Patakokila2787cee2018-03-22 11:18:42 +053048endif
49ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
50 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Asish Bhattacharyad0665872017-09-07 19:46:29 +053051 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
52 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
53endif
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053054
55
56include $(BUILD_SHARED_LIBRARY)
57
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053058
59# ---------------------------------------------------------------------------------
60# Make the apps-test (mm-aenc-omxg711-test)
61# ---------------------------------------------------------------------------------
62
63include $(CLEAR_VARS)
64
65mm-g711-enc-test-inc := $(LOCAL_PATH)/inc
66mm-g711-enc-test-inc += $(LOCAL_PATH)/test
67mm-g711-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
68
69LOCAL_MODULE := mm-aenc-omxg711-test
70LOCAL_MODULE_TAGS := optional
71LOCAL_CFLAGS := $(libOmxG711Enc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053072LOCAL_CFLAGS := -Wno-tautological-compare -Wno-unused-local-typedef
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053073LOCAL_C_INCLUDES := $(mm-g711-enc-test-inc)
74LOCAL_PRELINK_MODULE := false
75LOCAL_SHARED_LIBRARIES := libmm-omxcore
76LOCAL_SHARED_LIBRARIES += libOmxG711Enc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053077LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053078LOCAL_SRC_FILES := test/omx_g711_enc_test.c
79
80include $(BUILD_EXECUTABLE)
81
Arun Kumar Dasari882636a2016-03-10 17:59:29 +053082endif
83
84# ---------------------------------------------------------------------------------
85# END
86# ---------------------------------------------------------------------------------
87