File tree Expand file tree Collapse file tree 5 files changed +12
-4
lines changed
Expand file tree Collapse file tree 5 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 6767[submodule "shim "]
6868 path = shim
6969 url = https://github.com/facebook/buck2-shims-meta
70+ [submodule "backends/apple/coreml/third-party/json "]
71+ path = backends/apple/coreml/third-party/json
72+ url = https://github.com/nlohmann/json.git
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ runtime/inmemoryfs/build/
2020runtime /test /models /
2121runtime /sdk /format /
2222runtime /include /executorch /
23- third-party /
23+ third-party /coremltools /
24+ third-party /nlohmann_json /
2425
2526xcode-build /
2627
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ option(COREML_BUILD_EXECUTOR_RUNNER "Build CoreML executor runner." OFF)
2929set (INMEMORYFS_SOURCES
3030 runtime/inmemoryfs/inmemory_filesystem.cpp
3131 runtime/inmemoryfs/inmemory_filesystem_utils.mm
32+ runtime/inmemoryfs/inmemory_filesystem_utils.cpp
3233 runtime/inmemoryfs/memory_buffer.cpp
3334 runtime/inmemoryfs/memory_stream.cpp
3435 runtime/inmemoryfs/reversed_memory_stream.cpp
@@ -123,13 +124,18 @@ target_include_directories(coreml_util
123124 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /runtime/util
124125)
125126
127+ # nlohmann/json
128+ set (JSON_BuildTests OFF CACHE INTERNAL "" )
129+ add_subdirectory (third-party/json)
130+
126131# CoreML inmemoryfs
127132add_library (coreml_inmemoryfs)
128133target_sources (coreml_inmemoryfs PRIVATE ${INMEMORYFS_SOURCES} )
129134target_include_directories (coreml_inmemoryfs
130135 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /runtime/inmemoryfs
131136)
132137target_link_libraries (coreml_inmemoryfs PRIVATE coreml_util)
138+ target_link_libraries (coreml_inmemoryfs PRIVATE nlohmann_json::nlohmann_json)
133139
134140# Define the delegate library
135141add_library (coremldelegate)
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ PROTOBUF_FILES_DIR_PATH="$COREMLTOOLS_DIR_PATH/build/mlmodel/format/"
2020
2121cd " $EXECUTORCH_ROOT_PATH "
2222
23- rm -rf " $COREML_DIR_PATH /third-party"
24- mkdir " $COREML_DIR_PATH /third-party"
25-
2623echo " ${green} ExecuTorch: Cloning coremltools."
2724git clone --depth 1 --branch 8.1 " https://github.com/apple/coremltools.git" $COREMLTOOLS_DIR_PATH
2825cd $COREMLTOOLS_DIR_PATH
You can’t perform that action at this time.
0 commit comments