1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 4 # Clang arm assembler cannot compile libvpx .s files yet. 5 LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as 6 7 libvpx_source_dir := $(LOCAL_PATH)/libvpx 8 9 ## Arch-common settings 10 LOCAL_MODULE := libvpx 11 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 12 13 LOCAL_CFLAGS := -DHAVE_CONFIG_H=vpx_config.h 14 15 # Want arm, not thumb, optimized 16 LOCAL_ARM_MODE := arm 17 LOCAL_CFLAGS += -O3 18 19 LOCAL_CFLAGS += -Wno-unused-parameter 20 21 LOCAL_C_INCLUDES := $(libvpx_source_dir) 22 23 LOCAL_SANITIZE := cfi 24 LOCAL_SANITIZE_DIAG := cfi 25 26 # Load the arch-specific settings 27 include $(LOCAL_PATH)/config.$(TARGET_ARCH).mk 28 LOCAL_SRC_FILES_$(TARGET_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_ARCH)) 29 LOCAL_C_INCLUDES_$(TARGET_ARCH) := $(libvpx_config_dir_$(TARGET_ARCH)) 30 libvpx_2nd_arch := 31 include $(LOCAL_PATH)/libvpx-asm-translation.mk 32 33 ifdef TARGET_2ND_ARCH 34 include $(LOCAL_PATH)/config.$(TARGET_2ND_ARCH).mk 35 LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_2ND_ARCH)) 36 LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH) := $(libvpx_config_dir_$(TARGET_2ND_ARCH)) 37 libvpx_2nd_arch := $(TARGET_2ND_ARCH_VAR_PREFIX) 38 include $(LOCAL_PATH)/libvpx-asm-translation.mk 39 libvpx_2nd_arch := 40 endif 41 42 libvpx_target := 43 libvpx_source_dir := 44 libvpx_intermediates := 45 libvpx_asm_offsets_intermediates := 46 libvpx_asm_offsets_files := 47 48 include $(BUILD_STATIC_LIBRARY) 49