blob: 6a94ad157ba4e826c3ace9457cc62510ca3835c8 [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
Banajit Goswamif289a832018-02-24 12:57:55 -080045ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
Banajit Goswami0ee0d3d2018-02-23 09:54:30 -080046 LOCAL_HEADER_LIBRARIES := audio_kernel_headers
Banajit Goswamif289a832018-02-24 12:57:55 -080047endif
48ifneq ($(filter sdm670 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)
Asish Bhattacharyad0665872017-09-07 19:46:29 +053049 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
50 LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)
51endif
Mingming Yin486032d2013-09-26 17:22:07 -070052
53include $(BUILD_SHARED_LIBRARY)
54
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053055# ---------------------------------------------------------------------------------
56# Make the apps-test (mm-aenc-omxamr-test)
57# ---------------------------------------------------------------------------------
58
59include $(CLEAR_VARS)
60
61mm-amr-enc-test-inc := $(LOCAL_PATH)/inc
62mm-amr-enc-test-inc += $(LOCAL_PATH)/test
63
64mm-amr-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053065LOCAL_MODULE := mm-aenc-omxamr-test
66LOCAL_MODULE_TAGS := optional
67LOCAL_CFLAGS := $(libOmxAmrEnc-def)
Preetam Singh Ranawate1e6ca12018-02-18 21:45:58 +053068LOCAL_CFLAGS := -Wno-tautological-compare -Wno-unused-local-typedef
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053069LOCAL_C_INCLUDES := $(mm-amr-enc-test-inc)
70LOCAL_PRELINK_MODULE := false
71LOCAL_SHARED_LIBRARIES := libmm-omxcore
72LOCAL_SHARED_LIBRARIES += libOmxAmrEnc
Sachin Mohan Gadag1d9cde92017-12-29 17:31:17 +053073LOCAL_VENDOR_MODULE := true
Preetam Singh Ranawat83382ef2017-06-15 16:20:34 +053074LOCAL_SRC_FILES := test/omx_amr_enc_test.c
75
76include $(BUILD_EXECUTABLE)
77
Mingming Yin486032d2013-09-26 17:22:07 -070078endif
79
80# ---------------------------------------------------------------------------------
81# END
82# ---------------------------------------------------------------------------------
83