Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 1 | # Output variables: |
| 2 | # libvpx_config_dir_arm |
| 3 | # libvpx_codec_srcs_c_arm |
| 4 | # libvpx_codec_srcs_asm_arm |
| 5 | |
| 6 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
Vignesh Venkatasubramanian | da49e34 | 2015-08-25 11:05:01 -0700 | [diff] [blame] | 7 | libvpx_target := config/arm-neon |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 8 | else ifeq ($(ARCH_ARM_HAVE_ARMV7A),true) |
Vignesh Venkatasubramanian | da49e34 | 2015-08-25 11:05:01 -0700 | [diff] [blame] | 9 | libvpx_target := config/arm |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 10 | else |
Vignesh Venkatasubramanian | da49e34 | 2015-08-25 11:05:01 -0700 | [diff] [blame] | 11 | libvpx_target := config/generic |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 12 | endif |
| 13 | |
Vignesh Venkatasubramanian | da49e34 | 2015-08-25 11:05:01 -0700 | [diff] [blame] | 14 | LOCAL_ARM_MODE := arm |
| 15 | |
Ying Wang | 08af198 | 2014-03-12 17:49:58 -0700 | [diff] [blame] | 16 | libvpx_config_dir_arm := $(LOCAL_PATH)/$(libvpx_target) |
| 17 | libvpx_codec_srcs := $(sort $(shell cat $(libvpx_config_dir_arm)/libvpx_srcs.txt)) |
| 18 | |
| 19 | # vpx_config.c is an auto-generated file in $(libvpx_target). |
| 20 | libvpx_codec_srcs_c_arm := $(addprefix libvpx/, $(filter-out vpx_config.c, \ |
| 21 | $(filter %.c, $(libvpx_codec_srcs)))) \ |
| 22 | $(libvpx_target)/vpx_config.c |
| 23 | |
Vignesh Venkatasubramanian | da49e34 | 2015-08-25 11:05:01 -0700 | [diff] [blame] | 24 | libvpx_codec_srcs_asm_arm := $(filter %.asm, $(libvpx_codec_srcs)) |