summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/CfgOptionFlags.cmake
blob: d431f30a7ec3ef6dbba27e146ab24639c01dd65f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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)
option(BUILD_NEURUN "Build neurun" ON)
option(BUILD_LOGGING "Build logging runtime" ON)
option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" OFF)
CMAKE_DEPENDENT_OPTION(BUILD_RUNTIME_NNAPI_TEST "Build Runtime NN API Generated Test"
                       # Set BUILD_RUNTIME_NNAPI_TEST as ON
                       #   if CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.2
                       ON "CMAKE_COMPILER_IS_GNUCC;NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.2"
                       # Otherwise set BUILD_RUNTIME_NNAPI_TEST as OFF
                       OFF)
option(BUILD_TFLITE_RUN "Build tflite-run" ON)
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)
option(BUILD_TFLITE_ACCURACY "Build tflite accuracy tool" OFF)
option(BUILD_NNPACKAGE_RUN "Build nnpackge_run" ON)
option(BUILD_SRCN_KERNEL "Build srcn kernel" OFF)
option(ENVVAR_NEURUN_CONFIG "Use environment variable for neurun configuration" ON)
#
# Build configuration 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)
option(BUILD_UBEN "Build micro-benchmark (uben) suite" OFF)
option(BUILD_MLAPSE "Build mlapse benchmark toolkit" OFF)
option(BUILD_TFLITE_LOADER "Build tensorflow lite file loader" ON)
option(BUILD_TFLITE_LOADER_TEST_TOOL "Build tflite loader testing tool" ON)
option(BUILD_KBENCHMARK "Build kernel benchmark tool" OFF)
#
# Download configuration
#
option(DOWNLOAD_TENSORFLOW "Download Tensorflow source" ON)
option(DOWNLOAD_ABSL "Download Absl source" ON)
option(DOWNLOAD_EIGEN "Download Eigen source" ON)
option(DOWNLOAD_FARMHASH "Download farmhash source" ON)
option(DOWNLOAD_GEMMLOWP "Download GEMM low precesion library source" ON)
option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" ON)
option(DOWNLOAD_NNPACK "Download NNPACK source" ON)
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)
option(DOWNLOAD_NONIUS "Download nonius source" ON)
option(DOWNLOAD_BOOST "Download boost source" OFF)
option(BUILD_BOOST "Build boost source" OFF)
#
# GTest support
#
option(BUILD_GTEST "Download and build Google Test" ON)
option(ENABLE_STRICT_BUILD "Treat warning as error" ON)
option(ENABLE_COVERAGE "Build for coverage test" OFF)