File tree Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ option(EXECUTORCH_BUILD_XNNPACK
132
132
option (EXECUTORCH_BUILD_SDK
133
133
"Build the ExecuTorch SDK library and the SDK example runner." )
134
134
135
+ option (EXECUTORCH_BUILD_EXAMPLES "Build the ExecuTorch examples." )
136
+
135
137
if (NOT BUCK2 )
136
138
set (BUCK2 buck2 )
137
139
endif ()
@@ -346,6 +348,11 @@ endif()
346
348
347
349
if (EXECUTORCH_BUILD_SDK )
348
350
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /sdk )
351
+ add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /util )
352
+ endif ()
353
+
354
+ if (EXECUTORCH_BUILD_EXAMPLES )
355
+ add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /examples )
349
356
endif ()
350
357
351
358
# Print all summary
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ add_executable (bundled_executor_runner
8
+ bundled_executor_runner/bundled_executor_runner.cpp )
9
+ target_compile_options (executorch PUBLIC -DET_EVENT_TRACER_ENABLED )
10
+ target_compile_options (portable_ops_lib PUBLIC -DET_EVENT_TRACER_ENABLED )
11
+ target_link_libraries (
12
+ bundled_executor_runner
13
+ executorch
14
+ gflags
15
+ etdump
16
+ extension_data_loader
17
+ flatcc
18
+ bundled_program
19
+ portable_ops_lib )
Original file line number Diff line number Diff line change @@ -89,5 +89,5 @@ target_link_libraries(
89
89
PRIVATE executorch )
90
90
91
91
target_include_directories (
92
- etdump PRIVATE ${_program_schema__include_dir}
93
- ${CMAKE_SOURCE_DIR} /third-party/flatcc/include )
92
+ etdump PUBLIC ${_program_schema__include_dir}
93
+ ${CMAKE_SOURCE_DIR} /third-party/flatcc/include )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ add_library (bundled_program
8
+ ${CMAKE_CURRENT_SOURCE_DIR} /bundled_program_verification.cpp )
9
+
10
+ target_link_libraries (bundled_program executorch bundled_schema )
You can’t perform that action at this time.
0 commit comments