blob: 6ae58b8b6e2ed2e9226f62406b46d16a7d6d5c12 [file] [log] [blame]
Ying Wang08af1982014-03-12 17:49:58 -07001# 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)
Vignesh Venkatasubramanianda49e342015-08-25 11:05:01 -07007libvpx_target := config/arm-neon
Ying Wang08af1982014-03-12 17:49:58 -07008else ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
Vignesh Venkatasubramanianda49e342015-08-25 11:05:01 -07009libvpx_target := config/arm
Ying Wang08af1982014-03-12 17:49:58 -070010else
Vignesh Venkatasubramanianda49e342015-08-25 11:05:01 -070011libvpx_target := config/generic
Ying Wang08af1982014-03-12 17:49:58 -070012endif
13
Vignesh Venkatasubramanianda49e342015-08-25 11:05:01 -070014LOCAL_ARM_MODE := arm
15
Ying Wang08af1982014-03-12 17:49:58 -070016libvpx_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
Vignesh Venkatasubramanianda49e342015-08-25 11:05:01 -070024libvpx_codec_srcs_asm_arm := $(filter %.asm, $(libvpx_codec_srcs))