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 := \ 8 -Wa,-I$(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libvpx_intermediates/vp8/encoder 9 10# vp9_mcomp.c:93:10: error: address of array 'x->nmvsadcost' will always evaluate to 'true' 11LOCAL_CLANG_CFLAGS += -Wno-pointer-bool-conversion 12 13libvpx_source_dir := $(LOCAL_PATH)/libvpx 14 15## Arch-common settings 16LOCAL_MODULE := libvpx 17LOCAL_MODULE_CLASS := STATIC_LIBRARIES 18 19LOCAL_CFLAGS := -DHAVE_CONFIG_H=vpx_config.h 20 21# Want arm, not thumb, optimized 22LOCAL_ARM_MODE := arm 23LOCAL_CFLAGS += -O3 24 25LOCAL_C_INCLUDES := $(libvpx_source_dir) 26 27# Load the arch-specific settings 28include $(LOCAL_PATH)/config.$(TARGET_ARCH).mk 29LOCAL_SRC_FILES_$(TARGET_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_ARCH)) 30LOCAL_C_INCLUDES_$(TARGET_ARCH) := $(libvpx_config_dir_$(TARGET_ARCH)) 31libvpx_2nd_arch := 32include $(LOCAL_PATH)/libvpx-offsets.mk 33 34ifdef TARGET_2ND_ARCH 35include $(LOCAL_PATH)/config.$(TARGET_2ND_ARCH).mk 36LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_2ND_ARCH)) 37LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH) := $(libvpx_config_dir_$(TARGET_2ND_ARCH)) 38libvpx_2nd_arch := $(TARGET_2ND_ARCH_VAR_PREFIX) 39include $(LOCAL_PATH)/libvpx-offsets.mk 40libvpx_2nd_arch := 41endif 42 43libvpx_target := 44libvpx_source_dir := 45libvpx_intermediates := 46libvpx_asm_offsets_intermediates := 47libvpx_asm_offsets_files := 48 49include $(BUILD_STATIC_LIBRARY) 50