File tree Expand file tree Collapse file tree 4 files changed +117
-215
lines changed Expand file tree Collapse file tree 4 files changed +117
-215
lines changed Original file line number Diff line number Diff line change 4
4
# This source code is licensed under the BSD-style license found in the
5
5
# LICENSE file in the root directory of this source tree.
6
6
7
- set (
8
- _schema_files
9
- bundled_program_schema.fbs
10
- scalar_type.fbs
11
- )
7
+ set (_schema_files bundled_program_schema.fbs scalar_type.fbs )
12
8
13
9
set (_schema_outputs )
14
10
foreach (schema_file ${_schema_files} )
15
- list (APPEND _bundled_program_schema__srcs "${CMAKE_CURRENT_SOURCE_DIR} /schema/${schema_file} " )
11
+ list (APPEND _bundled_program_schema__srcs
12
+ "${CMAKE_CURRENT_SOURCE_DIR} /schema/${schema_file} "
13
+ )
16
14
17
15
string (REGEX REPLACE "[.]fbs$" "_generated.h" generated "${schema_file} " )
18
- list (APPEND _schema_outputs "${DEVTOOLS_INCLUDE_DIR} /executorch/devtools/bundled_program/schema/${generated} " )
16
+ list (
17
+ APPEND
18
+ _schema_outputs
19
+ "${DEVTOOLS_INCLUDE_DIR} /executorch/devtools/bundled_program/schema/${generated} "
20
+ )
19
21
endforeach ()
20
22
21
23
file (MAKE_DIRECTORY ${DEVTOOLS_INCLUDE_DIR} /executorch/devtools/bundled_program )
@@ -32,20 +34,13 @@ add_custom_command(
32
34
)
33
35
34
36
add_library (
35
- bundled_program
36
- ${_schema_outputs}
37
- ${CMAKE_CURRENT_SOURCE_DIR} /bundled_program.cpp
38
- )
39
- target_link_libraries (
40
- bundled_program
41
- PUBLIC
42
- executorch
37
+ bundled_program ${_schema_outputs}
38
+ ${CMAKE_CURRENT_SOURCE_DIR} /bundled_program.cpp
43
39
)
40
+ target_link_libraries (bundled_program PUBLIC executorch )
44
41
target_include_directories (
45
- bundled_program
46
- PUBLIC
47
- ${DEVTOOLS_INCLUDE_DIR}
48
- ${PROJECT_SOURCE_DIR} /third-party/flatbuffers/include
42
+ bundled_program PUBLIC ${DEVTOOLS_INCLUDE_DIR}
43
+ ${PROJECT_SOURCE_DIR} /third-party/flatbuffers/include
49
44
)
50
45
51
46
install (
Original file line number Diff line number Diff line change @@ -72,11 +72,12 @@ endif()
72
72
# size_test_all_optimized_ops: binary with optimized ops and no delegate backend
73
73
#
74
74
if (EXECUTORCH_BUILD_KERNELS_OPTIMIZED )
75
- add_executable (size_test_all_optimized_ops ${_size_test__srcs} )
76
- target_link_options_shared_lib (optimized_native_cpu_ops_lib )
77
- target_link_libraries (
78
- size_test_all_optimized_ops executorch optimized_native_cpu_ops_lib )
79
- if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
80
- target_link_options_gc_sections (size_test_all_optimized_ops )
81
- endif ()
75
+ add_executable (size_test_all_optimized_ops ${_size_test__srcs} )
76
+ target_link_options_shared_lib (optimized_native_cpu_ops_lib )
77
+ target_link_libraries (
78
+ size_test_all_optimized_ops executorch optimized_native_cpu_ops_lib
79
+ )
80
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
81
+ target_link_options_gc_sections (size_test_all_optimized_ops )
82
+ endif ()
82
83
endif ()
Original file line number Diff line number Diff line change @@ -150,7 +150,9 @@ if(TARGET coremldelegate)
150
150
endif ()
151
151
152
152
if (TARGET etdump )
153
- set_target_properties (etdump PROPERTIES INTERFACE_LINK_LIBRARIES "flatccrt;executorch" )
153
+ set_target_properties (
154
+ etdump PROPERTIES INTERFACE_LINK_LIBRARIES "flatccrt;executorch"
155
+ )
154
156
endif ()
155
157
156
158
if (TARGET optimized_native_cpu_ops_lib )
@@ -174,13 +176,11 @@ if(TARGET extension_threadpool)
174
176
endif ()
175
177
176
178
set (shared_lib_list
177
- # executorch -- size tests fail due to regression if we include this and I'm not sure it's needed.
178
- optimized_native_cpu_ops_lib
179
- portable_ops_lib
180
- quantized_ops_lib
181
- xnnpack_backend
182
- vulkan_backend
183
- quantized_ops_aot_lib )
179
+ # executorch -- size tests fail due to regression if we include this and I'm
180
+ # not sure it's needed.
181
+ optimized_native_cpu_ops_lib portable_ops_lib quantized_ops_lib
182
+ xnnpack_backend vulkan_backend quantized_ops_aot_lib
183
+ )
184
184
foreach (lib ${shared_lib_list} )
185
185
if (TARGET ${lib} )
186
186
target_link_options_shared_lib (${lib} )
You can’t perform that action at this time.
0 commit comments