1# Output variables:
2# libvpx_config_dir_arm
3# libvpx_codec_srcs_c_arm
4# libvpx_codec_srcs_asm_arm
5
6ifeq ($(ARCH_ARM_HAVE_NEON),true)
7libvpx_target := config/arm-neon
8else ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
9libvpx_target := config/arm
10else
11libvpx_target := config/generic
12endif
13
14LOCAL_ARM_MODE := arm
15
16libvpx_config_dir_arm := $(LOCAL_PATH)/$(libvpx_target)
17libvpx_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).
20libvpx_codec_srcs_c_arm := $(addprefix libvpx/, $(filter-out vpx_config.c, \
21    $(filter %.c, $(libvpx_codec_srcs)))) \
22    $(libvpx_target)/vpx_config.c
23
24libvpx_codec_srcs_asm_arm := $(filter %.asm, $(libvpx_codec_srcs))
25