ref: 918af275602daa4fc05fc9db5d7eac16a7639402
parent: bb915978db2cb925aa7cdfe7ac1ecf43a40dcb45
author: Martin Storsjö <[email protected]>
date: Fri Mar 7 10:02:15 EST 2014
Support building for any other android architecture This allows e.g. building for mips, as a plain C++ build with no assembly.
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -11,12 +11,15 @@
ifeq (Yes, $(USE_ASM))
ASMFLAGS += -march=armv7-a -mfpu=neon
endif
-else
+else ifeq ($(ARCH), x86)
APP_ABI = x86
TOOLCHAINPREFIX = $(shell NDK_PROJECT_PATH=./codec/build/android/dec make --no-print-dir -f $(NDKROOT)/build/core/build-local.mk DUMP_TOOLCHAIN_PREFIX APP_ABI=x86)
ifeq (Yes, $(USE_ASM))
ASMFLAGS += -DNOPREFIX -f elf32
endif
+else
+ APP_ABI = $(ARCH)
+ TOOLCHAINPREFIX = $(shell NDK_PROJECT_PATH=./codec/build/android/dec make --no-print-dir -f $(NDKROOT)/build/core/build-local.mk DUMP_TOOLCHAIN_PREFIX APP_ABI=$(APP_ABI))
endif
ifndef NDKROOT