-
Notifications
You must be signed in to change notification settings - Fork 517
/
Copy pathtargets.bzl
34 lines (30 loc) · 943 Bytes
/
targets.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
def define_common_targets():
"""Defines targets that should be shared between fbcode and xplat.
The directory containing this targets.bzl file should also contain both
TARGETS and BUCK files that call this function.
See README.md for instructions on selective build.
"""
runtime.filegroup(
name = "templates",
srcs = native.glob([
"templates/**/*.cpp",
"templates/**/*.ini",
"templates/**/*.h",
]),
visibility = [
"//executorch/...",
"@EXECUTORCH_CLIENTS",
],
)
runtime.cxx_library(
name = "macros",
exported_headers = [
"macros.h",
],
visibility = [
"//executorch/runtime/kernel/...",
"//executorch/kernels/...",
"@EXECUTORCH_CLIENTS",
],
)