b2f4da58c46f3dd066e500557919bab6d13b7773
[platform/core/ml/nnfw.git] / infra / nnfw / cmake / CfgOptionFlags.cmake
1 include(CMakeDependentOption)
2
3 #
4 # Platfor specific configuration
5 # note: this should be placed before default setting for option setting priority
6 #       (platform specific setting have higher priority)
7 #
8 include("cmake/options/options_${TARGET_PLATFORM}.cmake")
9
10 #
11 # Default build configuration for project
12 #
13 option(ENABLE_STRICT_BUILD "Treat warning as error" ON)
14 option(ENABLE_COVERAGE "Build for coverage test" OFF)
15 option(BUILD_EXT_MULTITHREAD "Build external build using multi thread" ON)
16 option(BUILD_ONERT "Build onert" ON)
17 option(BUILD_LOGGING "Build logging runtime" ON)
18 option(BUILD_RUNTIME_NNAPI_TEST "Build Runtime NN API Generated Test" ON)
19 option(BUILD_RUNTIME_NNFW_API_TEST "Build Runtime NNFW API Tests" ON)
20 option(BUILD_TFLITE_RUN "Build tflite-run" ON)
21 option(BUILD_TFLITE_VANILLA_RUN "Build tflite-vanilla-run" OFF)
22 option(BUILD_ONERT_RUN "Build onert_run" ON)
23 option(BUILD_TFLITE_LOADER "Build TensorFlow Lite loader" ON)
24 option(BUILD_CIRCLE_LOADER "Build circle loader" ON)
25 option(BUILD_TRIX_LOADER "Build trix loader" ON)
26 option(BUILD_TFLITE_COMPARATOR_TEST_TOOL "Build tflite loader testing tool" ON)
27 option(BUILD_WITH_HDF5 "Build test tool with HDF5 library" ON)
28 option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" ON)
29 option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" ON)
30 option(INSTALL_TEST_SCRIPTS "Install test scripts" ON)
31 option(BUILD_GPU_CL "Build gpu_cl backend" OFF)
32 option(BUILD_NPUD "Build NPU daemon" OFF)
33 option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
34 #
35 # Default build configuration for contrib
36 #
37 option(BUILD_ANDROID_BENCHMARK_APP "Enable Android Benchmark App" OFF)
38 option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF)
39 option(BUILD_DETECTION_APP "Build detection example app" OFF)
40 option(BUILD_HEAP_TRACE "Build heap trace tool" OFF)
41 option(BUILD_LABS "Build lab projects" OFF)
42 option(BUILD_STYLE_TRANSFER_APP "Build style transfer app" OFF)
43 option(BUILD_TFLITE_TEST "Build tensorflow lite test" OFF)
44 option(BUILD_TFLITE_CLASSIFY_APP "Build tflite_classify app" OFF)
45 option(BUILD_UBEN "Build micro-benchmark (uben) suite" OFF)
46 option(BUILD_MLAPSE "Build mlapse benchmark toolkit" OFF)
47 #
48 # Default build configuration for tools
49 #
50 option(BUILD_KBENCHMARK "Build kernel benchmark tool" OFF)
51 option(BUILD_OPENCL_TOOL "Build OpenCL tool" OFF)
52 option(BUILD_TFLITE_ACCURACY "Build tflite accuracy tool" OFF)
53 #
54 # Default external libraries source download and build configuration
55 #
56 option(DOWNLOAD_TENSORFLOW "Download Tensorflow source" ON)
57 option(DOWNLOAD_ABSEIL "Download Abseil source" ON)
58 option(DOWNLOAD_OPENCL_HEADERS "Download Opencl_headers source" OFF)
59 option(DOWNLOAD_EIGEN "Download Eigen source" ON)
60 option(DOWNLOAD_FARMHASH "Download farmhash source" ON)
61 option(DOWNLOAD_GEMMLOWP "Download GEMM low precesion library source" ON)
62 option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" ON)
63 option(DOWNLOAD_FLATBUFFERS "Download FlatBuffers source" ON)
64 option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
65 option(DOWNLOAD_NONIUS "Download nonius source" ON)
66 option(DOWNLOAD_BOOST "Download boost source" OFF)
67 option(DOWNLOAD_RUY "Download ruy source" ON)
68 option(DOWNLOAD_CPUINFO "Download cpuinfo source" ON)
69 option(DOWNLOAD_OOURAFFT "Download Ooura FFT source" ON)
70 option(DOWNLOAD_GTEST "Download Google Test source and build Google Test" ON)
71 option(BUILD_BOOST "Build boost source" OFF)
72 option(BUILD_TENSORFLOW_LITE "Build TensorFlow Lite from the downloaded source" ON)
73 option(BUILD_TENSORFLOW_LITE_GPU "Build TensorFlow Lite GPU delegate from the downloaded source" OFF)
74 option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
75 option(DEBUG_ARMCOMPUTE "Build ARM Compute as debug type" OFF)
76 option(BUILD_RUY "Build ruy library from the downloaded source" ON)
77 option(BUILD_CPUINFO "Build cpuinfo library from the downloaded source" ON)
78 option(PROFILE_RUY "Enable ruy library profiling" OFF)
79 option(DOWNLOAD_XNNPACK "Download xnnpack source" ON)
80 option(BUILD_XNNPACK "Build xnnpack library from the downloaded source" ON)
81 option(DOWNLOAD_PTHREADPOOL "Download pthreadpool source" ON)
82 option(BUILD_PTHREADPOOL "Build pthreadpool library from the source" ON)
83 option(DOWNLOAD_PSIMD "Download psimd source" ON)
84 option(BUILD_PSIMD "Build psimd library from the source" ON)
85 option(DOWNLOAD_FP16 "Download fp16 source" ON)
86 option(BUILD_FP16 "Build fp16 library from the source" ON)
87 option(DOWNLOAD_FXDIV "Download fxdiv source" ON)
88 option(BUILD_FXDIV "Build fxdiv library from the source" ON)
89
90
91 #
92 ## Default sample build configuration
93 #
94 option(BUILD_MINIMAL_SAMPLE "Build minimal app" OFF)