File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
examples/xnnpack/executor_runner Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Any targets that should be shared between fbcode and xplat must be defined in
2
+ # targets.bzl. This file can contain fbcode-only targets.
3
+
4
+ load(":targets.bzl", "define_common_targets")
5
+
6
+ oncall("executorch")
7
+
8
+ define_common_targets()
Original file line number Diff line number Diff line change
1
+ load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "get_oss_build_kwargs" , "runtime" )
2
+
3
+ def define_common_targets ():
4
+ """Defines targets that should be shared between fbcode and xplat.
5
+
6
+ The directory containing this targets.bzl file should also contain both
7
+ TARGETS and BUCK files that call this function.
8
+ """
9
+
10
+ # executor_runner for XNNPACK Backend and portable kernels.
11
+ runtime .cxx_binary (
12
+ name = "xnn_executor_runner" ,
13
+ deps = [
14
+ "//executorch/examples/portable/executor_runner:executor_runner_lib" ,
15
+ "//executorch/backends/xnnpack:xnnpack_backend" ,
16
+ "//executorch/kernels/portable:generated_lib" ,
17
+ ],
18
+ define_static_target = True ,
19
+ ** get_oss_build_kwargs ()
20
+ )
You can’t perform that action at this time.
0 commit comments