Skip to content

Commit 65136c2

Browse files
committed
Adding NXP runtime.
1 parent 8058c94 commit 65136c2

File tree

5 files changed

+733
-0
lines changed

5 files changed

+733
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ if(EXECUTORCH_BUILD_CADENCE)
485485
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/cadence)
486486
endif()
487487

488+
if(EXECUTORCH_BUILD_NXP_NEUTRON)
489+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/nxp)
490+
endif()
491+
488492
if(EXECUTORCH_BUILD_COREML)
489493
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/apple/coreml)
490494
endif()

backends/nxp/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2024 NXP
2+
#
3+
# This source code is licensed under the BSD-style license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
6+
set(
7+
_common_include_directories
8+
${CMAKE_CURRENT_SOURCE_DIR}/../../..
9+
)
10+
11+
set(_neutron_sources ${CMAKE_CURRENT_SOURCE_DIR}/runtime/NeutronBackend.cpp )
12+
13+
add_library(executorch_delegate_neutron STATIC ${_neutron_sources})
14+
target_include_directories(
15+
executorch_delegate_neutron PUBLIC ${_common_include_directories}
16+
)

0 commit comments

Comments
 (0)