endif(NOT "${TARGET_ARCH}" STREQUAL "x86_64")
add_subdirectory(src/backend)
+add_subdirectory(frontend)
+
file(GLOB SOURCES "src/*.cc")
file(GLOB SOURCES_BACKEND "src/backend/*.cc")
file(GLOB_RECURSE SOURCES_GRAPH "src/graph/*.cc")
target_link_libraries(neurun-core nnfw_lib_cpp14)
target_compile_options(neurun-core PRIVATE -Wall -Wextra -Werror)
-file(GLOB_RECURSE SOURCES_FRONTEND "frontend/nnapi/*.cc")
-
-add_library(${LIB_NEURUN} SHARED ${SOURCES_FRONTEND})
-target_include_directories(${LIB_NEURUN} PRIVATE frontend/nnapi)
-target_include_directories(${LIB_NEURUN} PUBLIC ${NEURUN_INCLUDE_DIR})
-target_include_directories(${LIB_NEURUN} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)
-target_link_libraries(${LIB_NEURUN} neurun-core)
-
-target_compile_options(${LIB_NEURUN} PRIVATE -Wall -Wextra -Werror)
-
-set_target_properties(${LIB_NEURUN} PROPERTIES OUTPUT_NAME neuralnetworks)
-
-install(TARGETS ${LIB_NEURUN} DESTINATION lib/neurun)
-
# Unit Tests
--- /dev/null
+add_subdirectories()
--- /dev/null
+file(GLOB_RECURSE SOURCES_FRONTEND "*.cc")
+
+add_library(${LIB_NEURUN} SHARED ${SOURCES_FRONTEND})
+target_include_directories(${LIB_NEURUN} PUBLIC ${NEURUN_INCLUDE_DIR})
+target_include_directories(${LIB_NEURUN} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)
+target_link_libraries(${LIB_NEURUN} neurun-core)
+
+target_compile_options(${LIB_NEURUN} PRIVATE -Wall -Wextra -Werror)
+
+set_target_properties(${LIB_NEURUN} PROPERTIES OUTPUT_NAME neuralnetworks)
+
+install(TARGETS ${LIB_NEURUN} DESTINATION lib/neurun)
+
#include <new>
-#include "frontend/wrapper/model.h"
-#include "frontend/wrapper/compilation.h"
+#include "wrapper/model.h"
+#include "wrapper/compilation.h"
#include "util/logging.h"
//
#include <NeuralNetworks.h>
-#include "frontend/wrapper/event.h"
+#include "wrapper/event.h"
int ANeuralNetworksEvent_wait(ANeuralNetworksEvent *event)
{
#include <new>
-#include "frontend/wrapper/compilation.h"
-#include "frontend/wrapper/execution.h"
-#include "frontend/wrapper/event.h"
+#include "wrapper/compilation.h"
+#include "wrapper/execution.h"
+#include "wrapper/event.h"
#include "util/logging.h"
//
#include <memory>
#include "cpp14/memory.h"
-#include "frontend/wrapper/memory.h"
+#include "wrapper/memory.h"
int ANeuralNetworksMemory_createFromFd(size_t size, int protect, int fd, size_t offset,
ANeuralNetworksMemory **memory)
#include <new>
-#include "frontend/wrapper/model.h"
-#include "frontend/wrapper/memory.h"
+#include "wrapper/model.h"
+#include "wrapper/memory.h"
#include "util/logging.h"
int ANeuralNetworksModel_create(ANeuralNetworksModel **model)