Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/src/main/rust/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
DEBUG ?= 1
NDK_PATH ?= ${HOME}/Android/Sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/linux-x86_64/bin

ifeq ($(DEBUG),0)
ARGS := --release
Expand All @@ -16,18 +15,23 @@ endif
MIN_SDK := 21




ifeq ($(OS),Windows_NT)
NDK_PATH ?= ${HOME}/AppData/Local/Android/Sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/windows-x86_64/bin
export OPENSSL_NO_VENDOR_PRIV ?= 1
export CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER := x86_64-linux-android${MIN_SDK}-clang.cmd
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER := aarch64-linux-android${MIN_SDK}-clang.cmd
else
export PATH := ${NDK_PATH}:$(PATH)
NDK_PATH ?= ${HOME}/Android/Sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/linux-x86_64/bin
export OPENSSL_NO_VENDOR_PRIV ?= 0
export CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER := x86_64-linux-android${MIN_SDK}-clang
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER := aarch64-linux-android${MIN_SDK}-clang
endif


export PATH := ${NDK_PATH}:$(PATH)


MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

Expand Down
Loading