list(APPEND SOURCES detection.cpp)
add_executable(detection ${SOURCES})
-target_link_libraries(detection nnfw_util)
+target_link_libraries(detection nnfw_lib_misc)
target_link_libraries(detection tensorflow-core)
add_executable(${TESTNAME} ${SRC_FILES})
target_include_directories(${TESTNAME} PUBLIC
${NNFW_INCLUDE_DIR})
- target_link_libraries(${TESTNAME} nnfw_util arm_compute_graph)
+ target_link_libraries(${TESTNAME} nnfw_lib_misc arm_compute_graph)
install(TARGETS ${TESTNAME} DESTINATION bin)
endfunction()
--- /dev/null
+# Library `nnfw_lib_misc`
+set(NNFW_UTILITY_SRCS src/environment.cpp)
+list(APPEND NNFW_UTILITY_SRCS src/tensor/Shape.cpp)
+list(APPEND NNFW_UTILITY_SRCS src/tensor/NonIncreasingStride.cpp)
+list(APPEND NNFW_UTILITY_SRCS src/tensor/IndexFormatter.cpp)
+list(APPEND NNFW_UTILITY_SRCS src/tensor/Comparator.cpp)
+list(APPEND NNFW_UTILITY_SRCS src/profiling/time.cc)
+
+add_library(nnfw_lib_misc STATIC ${NNFW_UTILITY_SRCS})
+target_include_directories(nnfw_lib_misc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
+set_target_properties(nnfw_lib_misc PROPERTIES POSITION_INDEPENDENT_CODE ON)
+
+add_executable(nnfw_tensor_index_iterator "examples/tensor_index_iterator.cpp")
+target_link_libraries(nnfw_tensor_index_iterator nnfw_lib_misc)
add_library(nnfw_lib_nnapi STATIC ${SOURCES})
set_property(TARGET nnfw_lib_nnapi PROPERTY POSITION_INDEPENDENT_CODE ON)
target_include_directories(nnfw_lib_nnapi PUBLIC ${CMAKE_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/include)
-target_link_libraries(nnfw_lib_nnapi static_nnfw_util)
+target_link_libraries(nnfw_lib_nnapi nnfw_lib_misc)
set_target_properties(nnfw_support_tflite PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_include_directories(nnfw_support_tflite PUBLIC ${CMAKE_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(nnfw_support_tflite tensorflow-lite ${LIB_PTHREAD} dl)
-target_link_libraries(nnfw_support_tflite static_nnfw_util)
+target_link_libraries(nnfw_support_tflite nnfw_lib_misc)
add_executable(nnfw_support_tflite_test_TensorView src/TensorView.test.cpp)
target_link_libraries(nnfw_support_tflite_test_TensorView nnfw_support_tflite)
+++ /dev/null
-# Library `nnfw_util`
-set(NNFW_UTILITY_SRCS src/environment.cpp)
-list(APPEND NNFW_UTILITY_SRCS src/tensor/Shape.cpp)
-list(APPEND NNFW_UTILITY_SRCS src/tensor/NonIncreasingStride.cpp)
-list(APPEND NNFW_UTILITY_SRCS src/tensor/IndexFormatter.cpp)
-list(APPEND NNFW_UTILITY_SRCS src/tensor/Comparator.cpp)
-if(BUILD_TFLITE_BENCHMARK_MODEL)
- list(APPEND NNFW_UTILITY_SRCS src/profiling/time.cc)
-endif()
-
-add_library(nnfw_util SHARED ${NNFW_UTILITY_SRCS})
-target_include_directories(nnfw_util PUBLIC ${NNFW_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-add_library(static_nnfw_util STATIC ${NNFW_UTILITY_SRCS})
-target_include_directories(static_nnfw_util PUBLIC ${NNFW_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include)
-set_target_properties(static_nnfw_util PROPERTIES POSITION_INDEPENDENT_CODE ON)
-
-install(TARGETS nnfw_util
- RUNTIME DESTINATION bin COMPONENT libraries
- LIBRARY DESTINATION lib COMPONENT libraries)
-
-add_executable(nnfw_util_tensor_index_iterator "examples/tensor_index_iterator.cpp")
-target_link_libraries(nnfw_util_tensor_index_iterator nnfw_util)
target_include_directories(${LIB_NEURUN} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)
target_link_libraries(${LIB_NEURUN} arm_compute)
target_link_libraries(${LIB_NEURUN} tensorflow-lite)
-target_link_libraries(${LIB_NEURUN} nnfw_util)
+target_link_libraries(${LIB_NEURUN} nnfw_lib_misc)
target_link_libraries(${LIB_NEURUN} nnfw_lib_nnapi)
# TODO This will be removed when backends are converted to plugins
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} arm_compute) # TODO We should not need this
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} tensorflow-lite)
-target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_util)
+target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_misc)
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_cpp14)
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} ${LIB_NEURUN_KERNEL_CPU})
# TODO remove this line once acl dependency is removed from PermuteLayer
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} arm_compute) # TODO We should not need this
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} tensorflow-lite)
-target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnfw_util)
+target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnfw_lib_misc)
set_target_properties(${LIB_NEURUN_KERNEL_CPU} PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(${LIB_NEURUN_KERNEL_CPU} PROPERTIES OUTPUT_NAME kernel_cpu)
endif()
target_link_libraries(nnapi_pure_arm_compute arm_compute)
target_link_libraries(nnapi_pure_arm_compute arm_compute_ex)
-target_link_libraries(nnapi_pure_arm_compute static_nnfw_util)
+target_link_libraries(nnapi_pure_arm_compute nnfw_lib_misc)
target_link_libraries(nnapi_pure_arm_compute nnfw_lib_cpp14)
if("${TARGET_OS}" STREQUAL "android")
add_library(nnapi_quickcheck_common ${NNAPI_QUICKCHECK_LIB_SOURCES})
target_include_directories(nnapi_quickcheck_common PUBLIC "inc")
-target_link_libraries(nnapi_quickcheck_common nnfw_util)
+target_link_libraries(nnapi_quickcheck_common nnfw_lib_misc)
target_link_libraries(nnapi_quickcheck_common nnfw_support_tflite)
add_executable(nnapi_quickcheck_lib_env_test "lib/env.test.cpp")
list(APPEND SOURCES "src/tflite_benchmark.cc")
add_executable(tflite_benchmark ${SOURCES})
-target_link_libraries(tflite_benchmark nnfw_support_tflite tensorflow-lite ${LIB_PTHREAD} dl nnfw_util)
+target_link_libraries(tflite_benchmark nnfw_support_tflite tensorflow-lite ${LIB_PTHREAD} dl nnfw_lib_misc)
install(TARGETS tflite_benchmark DESTINATION bin)
add_executable(tflite_benchmark_model ${SOURCES})
target_compile_definitions(tflite_benchmark_model PUBLIC "TFLITE_PROFILING_ENABLED")
-target_link_libraries(tflite_benchmark_model tensorflow-lite ${LIB_PTHREAD} dl nnfw_util nnfw_support_tflite)
+target_link_libraries(tflite_benchmark_model tensorflow-lite ${LIB_PTHREAD} dl nnfw_lib_misc nnfw_support_tflite)
install(TARGETS tflite_benchmark_model DESTINATION bin)