Skip to content

Commit d71f54a

Browse files
authored
Add buck to build binary for Android
Differential Revision: D70936105 Pull Request resolved: #9120
1 parent 77056c0 commit d71f54a

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
)

0 commit comments

Comments
 (0)