Skip to content

Commit ee9be4d

Browse files
fbsource/fbsource_targets_to_buck.json Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -4003368485209849180) (#17043)
Summary: Pull Request resolved: #17043 Reviewed By: bigfootjon Differential Revision: D91837658
1 parent cfc71fe commit ee9be4d

File tree

6 files changed

+125
-116
lines changed

6 files changed

+125
-116
lines changed

schema/test/BUCK

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# Any targets that should be shared between fbcode and xplat must be defined in
24
# targets.bzl. This file can contain xplat-only targets.
35

46
load(":targets.bzl", "define_common_targets")
57

6-
oncall("executorch")
78

8-
define_common_targets()
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/schema/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
13+
# Any targets that should be shared between fbcode and xplat must be defined in
14+
# targets.bzl. This file can contain fbcode-only targets.
15+
16+
load(":targets.bzl", "define_common_targets")
17+
18+
19+
fbcode_target(_kind = define_common_targets,)

schema/test/TARGETS

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/BUCK

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# Any targets that should be shared between fbcode and xplat must be defined in
24
# targets.bzl. This file can contain xplat-only targets.
35

46
load(":targets.bzl", "define_common_targets")
57

6-
oncall("executorch")
78

8-
define_common_targets()
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
13+
# Any targets that should be shared between fbcode and xplat must be defined in
14+
# targets.bzl. This file can contain fbcode-only targets.
15+
16+
load(":targets.bzl", "define_common_targets")
17+
18+
19+
fbcode_target(_kind = define_common_targets,)

test/TARGETS

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/end2end/BUCK

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,103 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# @noautodeps
24
# add this empty BUCK file to unblock landing. Without this, we get land error like:
35
# "No build file at xplat/executorch/exir/BUCK when resolving target fbsource//xplat/executorch/exir:."
46

5-
oncall("executorch")
7+
8+
# !!!! fbcode/executorch/test/end2end/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
9+
10+
# @noautodeps
11+
12+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
13+
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
14+
15+
16+
fbcode_target(_kind = runtime.python_library,
17+
name = "exported_module",
18+
srcs = [
19+
"exported_module.py",
20+
],
21+
visibility = [
22+
"//executorch/...",
23+
],
24+
deps = [
25+
"//caffe2:torch",
26+
"//executorch/exir:dynamic_shape",
27+
"//executorch/exir:lib",
28+
"//executorch/exir:pass_manager",
29+
"//executorch/exir/passes:lib",
30+
],
31+
)
32+
33+
fbcode_target(_kind = runtime.python_library,
34+
name = "register_scratch_meta_fns",
35+
srcs = [
36+
"register_scratch_meta_fns.py",
37+
],
38+
deps = [
39+
"//executorch/exir/operator:manip",
40+
],
41+
)
42+
43+
fbcode_target(_kind = python_unittest,
44+
name = "end2end_aten",
45+
srcs = [
46+
"test_end2end.py",
47+
],
48+
preload_deps = ["//executorch/kernels/portable:custom_ops_generated_lib"],
49+
deps = [
50+
":exported_module",
51+
":register_scratch_meta_fns",
52+
"//caffe2:torch",
53+
"//executorch/devtools:lib",
54+
"//executorch/devtools/bundled_program:config",
55+
"//executorch/devtools/bundled_program/serialize:lib",
56+
"//executorch/exir:dynamic_shape",
57+
"//executorch/exir:lib",
58+
"//executorch/exir:memory",
59+
"//executorch/exir:pass_manager",
60+
"//executorch/exir:print_program",
61+
"//executorch/exir:tensor",
62+
"//executorch/exir/_serialize:lib",
63+
"//executorch/exir/emit:lib",
64+
"//executorch/exir/passes:lib",
65+
"//executorch/exir/tests:control_flow_models",
66+
"//executorch/exir/tests:dynamic_shape_models",
67+
"//executorch/exir/tests:models",
68+
"//executorch/exir/tests:transformer",
69+
"//executorch/extension/pybindings:aten_lib",
70+
"//executorch/extension/pytree:pybindings",
71+
],
72+
)
73+
74+
fbcode_target(_kind = python_unittest,
75+
name = "end2end",
76+
srcs = [
77+
"test_end2end.py",
78+
],
79+
preload_deps = ["//executorch/kernels/portable:custom_ops_generated_lib"],
80+
deps = [
81+
":exported_module",
82+
":register_scratch_meta_fns",
83+
"//caffe2:torch",
84+
"//executorch/devtools:lib",
85+
"//executorch/devtools/bundled_program:config",
86+
"//executorch/devtools/bundled_program/serialize:lib",
87+
"//executorch/exir:dynamic_shape",
88+
"//executorch/exir:lib",
89+
"//executorch/exir:memory",
90+
"//executorch/exir:pass_manager",
91+
"//executorch/exir:print_program",
92+
"//executorch/exir:tensor",
93+
"//executorch/exir/_serialize:lib",
94+
"//executorch/exir/emit:lib",
95+
"//executorch/exir/passes:lib",
96+
"//executorch/exir/tests:control_flow_models",
97+
"//executorch/exir/tests:dynamic_shape_models",
98+
"//executorch/exir/tests:models",
99+
"//executorch/exir/tests:transformer",
100+
"//executorch/extension/pybindings:portable_lib",
101+
"//executorch/extension/pytree:pybindings",
102+
],
103+
)

test/end2end/TARGETS

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)