diff options
Diffstat (limited to 'config.arm.mk')
-rw-r--r-- | config.arm.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config.arm.mk b/config.arm.mk new file mode 100644 index 0000000..3f0f0b7 --- /dev/null +++ b/config.arm.mk @@ -0,0 +1,22 @@ +# Output variables: +# libvpx_config_dir_arm +# libvpx_codec_srcs_c_arm +# libvpx_codec_srcs_asm_arm + +ifeq ($(ARCH_ARM_HAVE_NEON),true) +libvpx_target := armv7a-neon +else ifeq ($(ARCH_ARM_HAVE_ARMV7A),true) +libvpx_target := armv7a +else +libvpx_target := generic +endif + +libvpx_config_dir_arm := $(LOCAL_PATH)/$(libvpx_target) +libvpx_codec_srcs := $(sort $(shell cat $(libvpx_config_dir_arm)/libvpx_srcs.txt)) + +# vpx_config.c is an auto-generated file in $(libvpx_target). +libvpx_codec_srcs_c_arm := $(addprefix libvpx/, $(filter-out vpx_config.c, \ + $(filter %.c, $(libvpx_codec_srcs)))) \ + $(libvpx_target)/vpx_config.c + +libvpx_codec_srcs_asm_arm := $(filter %.asm.s, $(libvpx_codec_srcs)) |