Update vars.mk

This commit is contained in:
2024-05-13 22:46:55 +03:00
committed by GitHub
parent 0fa5a546aa
commit d45dd67cbe

View File

@@ -28,8 +28,7 @@ OS := $(shell uname)
CUR_DIR := $(shell pwd)
# NDK config
$(shell [ -d ../android-ndk ] || echo "error: ndk not found" && exit 1)
NDK_DIR := $(shell cd ../android-ndk && pwd && cd -)
$(shell [ ! -d ../android-ndk ] || $(eval NDK_DIR := $(shell cd ../android-ndk && pwd && cd -)))
ifeq ($(OS),Linux)
TOOLCHAIN := $(NDK_DIR)/toolchains/llvm/prebuilt/darwin-x86_64