1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3 4# Clang arm assembler cannot compile libvpx .s files yet. 5LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as 6# Pass incude path to GCC assembler. 7LOCAL_CLANG_ASFLAGS_$(TARGET_ARCH) += \ 8 -Wa,-I$(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libvpx_intermediates/vp8/encoder 9LOCAL_CLANG_ASFLAGS_$(TARGET_2ND_ARCH) += \ 10 -Wa,-I$($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libvpx_intermediates/vp8/encoder 11 12# vp9_mcomp.c:93:10: error: address of array 'x->nmvsadcost' will always evaluate to 'true' 13LOCAL_CLANG_CFLAGS += -Wno-pointer-bool-conversion 14 15libvpx_source_dir := $(LOCAL_PATH)/libvpx 16 17## Arch-common settings 18LOCAL_MODULE := libvpx 19LOCAL_MODULE_CLASS := STATIC_LIBRARIES 20 21LOCAL_CFLAGS := -DHAVE_CONFIG_H=vpx_config.h 22 23# Want arm, not thumb, optimized 24LOCAL_ARM_MODE := arm 25LOCAL_CFLAGS += -O3 26 27LOCAL_C_INCLUDES := $(libvpx_source_dir) 28 29# Load the arch-specific settings 30include $(LOCAL_PATH)/config.$(TARGET_ARCH).mk 31LOCAL_SRC_FILES_$(TARGET_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_ARCH)) 32LOCAL_C_INCLUDES_$(TARGET_ARCH) := $(libvpx_config_dir_$(TARGET_ARCH)) 33libvpx_2nd_arch := 34include $(LOCAL_PATH)/libvpx-asm-translation.mk 35 36ifdef TARGET_2ND_ARCH 37include $(LOCAL_PATH)/config.$(TARGET_2ND_ARCH).mk 38LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_2ND_ARCH)) 39LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH) := $(libvpx_config_dir_$(TARGET_2ND_ARCH)) 40libvpx_2nd_arch := $(TARGET_2ND_ARCH_VAR_PREFIX) 41include $(LOCAL_PATH)/libvpx-asm-translation.mk 42libvpx_2nd_arch := 43endif 44 45libvpx_target := 46libvpx_source_dir := 47libvpx_intermediates := 48libvpx_asm_offsets_intermediates := 49libvpx_asm_offsets_files := 50 51include $(BUILD_STATIC_LIBRARY) 52