Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 1 | # Output variables: |
| 2 | # libvpx_config_dir_mips |
| 3 | # libvpx_codec_srcs_c_mips |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 4 | |
| 5 | ifneq ($(ARCH_HAS_BIGENDIAN),true) |
| 6 | ifeq ($(ARCH_MIPS_DSP_REV),2) |
Dirk Vogt | 545b348 | 2016-02-18 19:30:26 +0100 | [diff] [blame] | 7 | libvpx_target := config/mips32-dspr2 |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 8 | else |
Dirk Vogt | 545b348 | 2016-02-18 19:30:26 +0100 | [diff] [blame] | 9 | libvpx_target := config/mips32 |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 10 | endif |
| 11 | else |
Dirk Vogt | 545b348 | 2016-02-18 19:30:26 +0100 | [diff] [blame] | 12 | libvpx_target := config/generic |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 13 | endif |
| 14 | |
| 15 | libvpx_config_dir_mips := $(LOCAL_PATH)/$(libvpx_target) |
| 16 | libvpx_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). |
| 19 | libvpx_codec_srcs_c_mips := $(addprefix libvpx/, $(filter-out vpx_config.c, \ |
| 20 | $(filter %.c, $(libvpx_codec_srcs)))) \ |
| 21 | $(libvpx_target)/vpx_config.c |