option(DOWNLOAD_GEMMLOWP "Download GEMM low precesion library source" ON)
option(DOWNLOAD_NEON2SSE "Download NEON2SSE library 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(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
option(DOWNLOAD_NONIUS "Download nonius source" ON)
else("${TARGET_OS}" STREQUAL "android") # General case (non-android build)
- if(NOT OBS_BUILD)
- add_subdirectory(externals)
- endif(NOT OBS_BUILD)
-
+ add_subdirectory(externals)
add_subdirectory(contrib)
add_subdirectory(libs)
add_subdirectory(runtimes)
ifneq ($(OBS_BUILD),OFF)
OPTIONS+= -DBUILD_ARMCOMPUTE=FALSE
+ # Use pre-installed tensorflow lite library
+ OPTIONS+= -DBUILD_TENSORFLOW_LITE=FALSE
OPTIONS+= -DBUILD_TOOLS=FALSE
endif
+# TODO Rewrite below build script as CMake package
+if(NOT BUILD_TENSORFLOW_LITE)
+ return()
+endif(NOT BUILD_TENSORFLOW_LITE)
+
set(TENSORFLOW_BASE ${CMAKE_CURRENT_SOURCE_DIR}/tensorflow)
set(TENSORFLOW_LITE_BASE ${TENSORFLOW_BASE}/tensorflow/contrib/lite)