diff --git a/Tuprules.tup b/Tuprules.tup index 0568354b..8db60365 100644 --- a/Tuprules.tup +++ b/Tuprules.tup @@ -96,7 +96,17 @@ ifeq ($(PLATFORM),android) PREFIX = apk/lib/arm64-v8a/lib LIB = bin/apk/lib/arm64-v8a - CC = @(ANDROID_NDK)/toolchains/llvm/prebuilt/@(ANDROID_HOST_TAG)/bin/clang + ifeq (@(TUP_PLATFORM),win32) + HOST = windows-x86_64 + endif + ifeq (@(TUP_PLATFORM),macosx) + HOST = darwin-x86_64 + endif + ifeq (@(TUP_PLATFORM),linux) + HOST = linux-x86_64 + endif + + CC = @(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST)/bin/clang CFLAGS += -DLOVR_GLES CFLAGS += -I@(ANDROID_NDK)/sources/android/native_app_glue FLAGS += --target=aarch64-linux-android@(ANDROID_VERSION) diff --git a/tup.config.default b/tup.config.default index ddb54e6f..60747abb 100644 --- a/tup.config.default +++ b/tup.config.default @@ -63,7 +63,6 @@ CONFIG_LUAJIT=y # ANDROID_NDK: The path to the Android NDK # ANDROID_VERSION: The Android version to build against (usually 21 or 26) # ANDROID_BUILD_TOOLS_VERSION: The version of the Android build tools to use (in build-tools folder) -# ANDROID_HOST_TAG: The host machine tag (e.g. windows-x86_64, darwin-x86_64) # ANDROID_KEYSTORE: The path to the keystore (use keytool to generate) # ANDROID_KEYSTORE_PASS: The keystore password (use either pass:, env:, or file:) # ANDROID_MANIFEST: Optional path to a custom Android manifest file (xml) @@ -73,7 +72,6 @@ CONFIG_ANDROID_SDK= CONFIG_ANDROID_NDK= CONFIG_ANDROID_VERSION= CONFIG_ANDROID_BUILD_TOOLS_VERSION= -CONFIG_ANDROID_HOST_TAG= CONFIG_ANDROID_KEYSTORE= CONFIG_ANDROID_KEYSTORE_PASS= CONFIG_ANDROID_MANIFEST=