blob: f39e7b114d84825c79237f0ded999d3cf9c5083a [file] [log] [blame]
Ying Wang08af1982014-03-12 17:49:58 -07001# Output variables:
2# libvpx_config_dir_mips
3# libvpx_codec_srcs_c_mips
Ying Wang08af1982014-03-12 17:49:58 -07004
5ifneq ($(ARCH_HAS_BIGENDIAN),true)
6 ifeq ($(ARCH_MIPS_DSP_REV),2)
Dirk Vogt545b3482016-02-18 19:30:26 +01007 libvpx_target := config/mips32-dspr2
Ying Wang08af1982014-03-12 17:49:58 -07008 else
Dirk Vogt545b3482016-02-18 19:30:26 +01009 libvpx_target := config/mips32
Ying Wang08af1982014-03-12 17:49:58 -070010 endif
11else
Dirk Vogt545b3482016-02-18 19:30:26 +010012 libvpx_target := config/generic
Ying Wang08af1982014-03-12 17:49:58 -070013endif
14
15libvpx_config_dir_mips := $(LOCAL_PATH)/$(libvpx_target)
16libvpx_codec_srcs := $(sort $(shell cat $(libvpx_config_dir_mips)/libvpx_srcs.txt))
17
18# vpx_config.c is an auto-generated file in $(libvpx_target).
19libvpx_codec_srcs_c_mips := $(addprefix libvpx/, $(filter-out vpx_config.c, \
20 $(filter %.c, $(libvpx_codec_srcs)))) \
21 $(libvpx_target)/vpx_config.c