Home | History | Annotate | Download | only in libvpx
      1 LOCAL_PATH := $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 libvpx_source_dir := $(LOCAL_PATH)/libvpx
      5 
      6 ## Arch-common settings
      7 LOCAL_MODULE := libvpx
      8 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      9 
     10 LOCAL_CFLAGS := -DHAVE_CONFIG_H=vpx_config.h
     11 
     12 # Want arm, not thumb, optimized
     13 LOCAL_ARM_MODE := arm
     14 LOCAL_CFLAGS += -O3
     15 
     16 LOCAL_C_INCLUDES := $(libvpx_source_dir)
     17 
     18 # Load the arch-specific settings
     19 include $(LOCAL_PATH)/config.$(TARGET_ARCH).mk
     20 LOCAL_SRC_FILES_$(TARGET_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_ARCH))
     21 LOCAL_C_INCLUDES_$(TARGET_ARCH) := $(libvpx_config_dir_$(TARGET_ARCH))
     22 libvpx_2nd_arch :=
     23 include $(LOCAL_PATH)/libvpx-offsets.mk
     24 
     25 ifdef TARGET_2ND_ARCH
     26 include $(LOCAL_PATH)/config.$(TARGET_2ND_ARCH).mk
     27 LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(libvpx_codec_srcs_c_$(TARGET_2ND_ARCH))
     28 LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH) := $(libvpx_config_dir_$(TARGET_2ND_ARCH))
     29 libvpx_2nd_arch := $(TARGET_2ND_ARCH_VAR_PREFIX)
     30 include $(LOCAL_PATH)/libvpx-offsets.mk
     31 libvpx_2nd_arch :=
     32 endif
     33 
     34 libvpx_target :=
     35 libvpx_source_dir :=
     36 libvpx_intermediates :=
     37 libvpx_asm_offsets_intermediates :=
     38 libvpx_asm_offsets_files :=
     39 
     40 include $(BUILD_STATIC_LIBRARY)
     41