summaryrefslogtreecommitdiff
path: root/cmake/CfgOptionFlags.cmake
blob: f14033592ca93e96d825e547c33b504aab9b0d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# Configuration flags
#
option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
option(BUILD_NEURUN "Build neurun" OFF) #if implementation is done, it would replace nn runtime.
option(BUILD_RUNTIME_NNAPI_TEST "Build Runtime NN API Generated Test" ON)
option(BUILD_TFLITE_BENCHMARK_MODEL "Build tflite benchmark model" OFF)
option(BUILD_NNAPI_QUICKCHECK "Build NN API Quickcheck tools" OFF)
#
# Configuration flags for contrib
#
option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF)
option(BUILD_DETECTION_APP "Build detection example app" OFF)
option(BUILD_LABS "Build lab projects" OFF)
option(BUILD_TFLITE_TEST "Build tensorflow lite test" OFF)
option(BUILD_TFLITE_CLASSIFY_APP "Build tflite_classify app" OFF)

if("${TARGET_ARCH}" STREQUAL "armv7l" AND NOT "${TARGET_OS}" STREQUAL "tizen")
  set(BUILD_PURE_ARM_COMPUTE ON)
endif()

# On x86, disable pureacl/new runtine build which depends on arm compute library
if("${TARGET_ARCH}" STREQUAL "x86_64")
  set(BUILD_PURE_ARM_COMPUTE OFF)
  set(BUILD_NEURUN OFF)
endif()