Skip to content

Commit eeb2c88

Browse files
authored
Add a TARGETS file for executorch's buck build in oss (#26)
Summary: In order for ExecuTorch's buck build to work in oss we need this TARGETS file. Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent de2dce5 commit eeb2c88

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

third-party/TARGETS

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2+
3+
oncall("executorch")
4+
5+
runtime.cxx_library(
6+
name = "abseil",
7+
public_include_directories = ["abseil-cpp"],
8+
srcs = glob(
9+
["abseil-cpp/absl/**/*.cc"],
10+
exclude = [
11+
"abseil-cpp/absl/**/*test*.cc",
12+
"abseil-cpp/absl/**/*mock*.cc",
13+
"abseil-cpp/absl/**/*matchers*.cc",
14+
"abseil-cpp/absl/**/*benchmark*.cc",
15+
],
16+
),
17+
exported_linker_flags = select(
18+
{
19+
"DEFAULT": [],
20+
"ovr_config//os:macos": ["-Wl,-framework,CoreFoundation"],
21+
},
22+
),
23+
visibility = ["PUBLIC"],
24+
_is_external_target = True,
25+
)
26+
27+
runtime.cxx_library(
28+
name = "re2",
29+
public_include_directories = ["re2"],
30+
srcs = glob(
31+
[
32+
"re2/re2/**/*.cc",
33+
"re2/util/**/*.cc",
34+
],
35+
exclude = [
36+
"re2/re2/**/*test*.cc",
37+
"re2/re2/testing/*.cc",
38+
"re2/re2/fuzzing/*.cc",
39+
"re2/re2/**/*benchmark*.cc",
40+
],
41+
),
42+
exported_deps = [
43+
":abseil",
44+
],
45+
visibility = ["PUBLIC"],
46+
_is_external_target = True,
47+
)

0 commit comments

Comments
 (0)