| ifneq ($(BUILD_TINY_ANDROID),true) |
| |
| LOCAL_PATH:= $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| # --------------------------------------------------------------------------------- |
| # Common definitons |
| # --------------------------------------------------------------------------------- |
| |
| libOmxEvrcEnc-def := -g -O3 |
| libOmxEvrcEnc-def += -DQC_MODIFIED |
| libOmxEvrcEnc-def += -D_ANDROID_ |
| libOmxEvrcEnc-def += -D_ENABLE_QC_MSG_LOG_ |
| libOmxEvrcEnc-def += -DVERBOSE |
| libOmxEvrcEnc-def += -D_DEBUG |
| libOmxEvrcEnc-def += -Wconversion |
| libOmxEvrcEnc-def += -DAUDIOV2 |
| |
| libOmxEvrcEnc-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 |
| |
| # --------------------------------------------------------------------------------- |
| # Make the Shared library (libOmxEvrcEnc) |
| # --------------------------------------------------------------------------------- |
| |
| include $(CLEAR_VARS) |
| |
| libOmxEvrcEnc-inc := $(LOCAL_PATH)/inc |
| libOmxEvrcEnc-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore |
| |
| LOCAL_MODULE := libOmxEvrcEnc |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_VENDOR_MODULE := true |
| LOCAL_CFLAGS := $(libOmxEvrcEnc-def) |
| LOCAL_CFLAGS := -Wno-format -Wno-sign-compare -Wno-sign-conversion -Wno-self-assign -Wno-parentheses-equality |
| LOCAL_C_INCLUDES := $(libOmxEvrcEnc-inc) |
| LOCAL_PRELINK_MODULE := false |
| LOCAL_SHARED_LIBRARIES := libutils liblog |
| |
| LOCAL_SRC_FILES := src/aenc_svr.c |
| LOCAL_SRC_FILES += src/omx_evrc_aenc.cpp |
| |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include |
| LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),) |
| LOCAL_HEADER_LIBRARIES := audio_kernel_headers |
| endif |
| ifneq ($(filter sdm670 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),) |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include |
| LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES) |
| endif |
| |
| include $(BUILD_SHARED_LIBRARY) |
| |
| # --------------------------------------------------------------------------------- |
| # Make the apps-test (mm-aenc-omxevrc-test) |
| # --------------------------------------------------------------------------------- |
| |
| include $(CLEAR_VARS) |
| |
| mm-evrc-enc-test-inc := $(LOCAL_PATH)/inc |
| mm-evrc-enc-test-inc += $(LOCAL_PATH)/test |
| mm-evrc-enc-test-inc += $(TARGET_OUT_HEADERS)/mm-core/omxcore |
| LOCAL_MODULE := mm-aenc-omxevrc-test |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_CFLAGS := $(libOmxEvrcEnc-def) |
| LOCAL_CFLAGS := -Wno-unused-local-typedef -Wno-shorten-64-to-32 |
| LOCAL_C_INCLUDES := $(mm-evrc-enc-test-inc) |
| LOCAL_PRELINK_MODULE := false |
| LOCAL_SHARED_LIBRARIES := libmm-omxcore |
| LOCAL_SHARED_LIBRARIES += libOmxEvrcEnc |
| LOCAL_VENDOR_MODULE := true |
| LOCAL_SRC_FILES := test/omx_evrc_enc_test.c |
| |
| include $(BUILD_EXECUTABLE) |
| |
| endif |
| |
| # --------------------------------------------------------------------------------- |
| # END |
| # --------------------------------------------------------------------------------- |
| |