include(CMakeDependentOption)
#
+# Platfor specific configuration
+# note: this should be placed before platform common setting for option setting priority
+# (platform specific setting have higher priority)
+#
+include("cmake/options/options_${TARGET_PLATFORM}.cmake")
+
+#
# Build configuration for project
#
option(BUILD_EXT_MULTITHREAD "Build external build using multi thread" ON)
-CMAKE_DEPENDENT_OPTION(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime"
- # Enable PURE ARMCompute runtime build if the target architecture is aarch
- #
- # TODO Enable build if ARMCompute library is available
- ON "TARGET_IS_ARMARCH"
- OFF)
option(BUILD_NEURUN "Build neurun" OFF) #if implementation is done, it would replace nn runtime.
option(BUILD_LOGGING "Build logging runtime" ON)
CMAKE_DEPENDENT_OPTION(BUILD_RUNTIME_NNAPI_TEST "Build Runtime NN API Generated Test"
option(BUILD_TFLITE_BENCHMARK_MODEL "Build tflite benchmark model" OFF)
option(BUILD_NNAPI_QUICKCHECK "Build NN API Quickcheck tools" OFF)
option(BUILD_TOOLS "Bulid nnfw projects under tools/" ON)
-CMAKE_DEPENDENT_OPTION(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite"
- # Enable android support for android build
- ON "${TARGET_OS} STREQUAL android"
- # Disable android support otherwise
- OFF)
#
# Build configuration for contrib
#
option(DOWNLOAD_FLATBUFFERS "Download FlatBuffers source" ON)
option(BUILD_TENSORFLOW_LITE "Build TensorFlow Lite from the downloaded source" ON)
option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
-CMAKE_DEPENDENT_OPTION(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source"
- # Enable ARMCompute build if the target architecture is aarch
- ON "TARGET_IS_ARMARCH"
- # Disable ARMCompute build otherwise
- OFF)
option(DOWNLOAD_NONIUS "Download nonius source" ON)
option(DOWNLOAD_BOOST "Download boost source" OFF)
option(BUILD_BOOST "Build boost source" OFF)
--- /dev/null
+#
+# aarch64 linux cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF)
--- /dev/null
+#
+# aarch64 tizen cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF)
--- /dev/null
+# arm64 android cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" ON)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF)
+
--- /dev/null
+#
+# armv7l linux cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF)
--- /dev/null
+#
+# armv7l tizen cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF)
--- /dev/null
+#
+# x86_64 linux cmake options
+#
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" OFF)
+option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" OFF)
+option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF)
+option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" OFF)
+option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" ON)