Pass and set additional CMake variables for Android build.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
OPTIONS+= -DNNAS_EXTERNALS_DIR=$(EXTERNAL_VOLUME)
endif
+ifeq ($(TARGET_OS),android)
+ OPTIONS+= -DNDK_DIR=$(NDK_DIR)
+endif
+
ifeq ($(PARALLEL_BUILD),1)
# Get number of processors (linux only for now)
ifeq ($(HOST_OS),linux)
message(FATAL_ERROR "NDK_DIR should be specified via cmake argument")
endif(NOT DEFINED NDK_DIR)
+set(ANDROID_ABI arm64-v8a)
+set(ANDROID_PLATFORM android-27)
+
# Find package in the host. `nnfw_find_package` won't work without this
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE NEVER)
# Find library in the host. Necessary for `add_library` searching in `out/lib` dir.