File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
shim_et/xplat/executorch/build Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
load ("@fbsource//xplat/executorch/backends/xnnpack/third-party:third_party_libs.bzl" , "third_party_dep" )
2
+ load ("@fbsource//xplat/executorch/build:build_variables.bzl" , "XNNPACK_BACKEND_BUCK_SRCS" )
2
3
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "get_aten_mode_options" , "runtime" )
3
4
4
5
def _get_preprocessor_flags ():
@@ -37,10 +38,7 @@ def define_common_targets():
37
38
aten_suffix = "_aten" if aten_mode else ""
38
39
runtime .cxx_library (
39
40
name = "xnnpack_backend" + aten_suffix ,
40
- srcs = native .glob ([
41
- "runtime/*.cpp" ,
42
- "runtime/profiling/*.cpp" ,
43
- ]),
41
+ srcs = XNNPACK_BACKEND_BUCK_SRCS ,
44
42
headers = native .glob ([
45
43
"runtime/*.h" ,
46
44
"runtime/profiling/*.h" ,
Original file line number Diff line number Diff line change @@ -474,15 +474,17 @@ XNN_EXECUTOR_RUNNER_SRCS = [
474
474
"extension/data_loader/file_data_loader.cpp" ,
475
475
]
476
476
477
- XNNPACK_BACKEND_SRCS = [
478
- "backends/xnnpack/ runtime/XNNCompiler.cpp" ,
479
- "backends/xnnpack/ runtime/XNNExecutor.cpp" ,
480
- "backends/xnnpack/ runtime/XNNHeader.cpp" ,
481
- "backends/xnnpack/ runtime/XNNPACKBackend.cpp" ,
482
- "backends/xnnpack/ runtime/XNNWeightsCache.cpp" ,
483
- "backends/xnnpack/ runtime/profiling/XNNProfiler.cpp" ,
477
+ XNNPACK_BACKEND_BUCK_SRCS = [
478
+ "runtime/XNNCompiler.cpp" ,
479
+ "runtime/XNNExecutor.cpp" ,
480
+ "runtime/XNNHeader.cpp" ,
481
+ "runtime/XNNPACKBackend.cpp" ,
482
+ "runtime/XNNWeightsCache.cpp" ,
483
+ "runtime/profiling/XNNProfiler.cpp" ,
484
484
]
485
485
486
+ XNNPACK_BACKEND_SRCS = ["backends/xnnpack/" + x for x in XNNPACK_BACKEND_BUCK_SRCS ]
487
+
486
488
XNNPACK_SCHEMA_SRCS = [
487
489
"backends/xnnpack/serialization/runtime_schema.fbs" ,
488
490
]
You can’t perform that action at this time.
0 commit comments