Skip to content

Commit 0e2e4f0

Browse files
FbsourceTargetsToBuck Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -3982651347005005195)
Reviewed By: bigfootjon Differential Revision: D104414874
1 parent 9889c7c commit 0e2e4f0

7 files changed

Lines changed: 42 additions & 32 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
# @noautodeps
23
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")
34
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
45

56
oncall("executorch")
67

7-
cpp_unittest(
8+
fbcode_target(_kind = cpp_unittest,
89
name = "pytree_test",
910
srcs = ["test_pytree.cpp"],
1011
deps = ["//executorch/extension/pytree:pytree"],
1112
)
1213

13-
python_unittest(
14+
fbcode_target(_kind = python_unittest,
1415
name = "pybindings_test",
1516
srcs = [
1617
"test.py",

extension/runner_util/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")
3+
# Any targets that should be shared between fbcode and xplat must be defined in
4+
# targets.bzl. This file can contain xplat-only targets.
5+
6+
load(":targets.bzl", "define_common_targets")
7+
8+
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/extension/runner_util/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
113
# Any targets that should be shared between fbcode and xplat must be defined in
214
# targets.bzl. This file can contain xplat-only targets.
315

416
load(":targets.bzl", "define_common_targets")
517

6-
oncall("executorch")
718

8-
define_common_targets()
19+
fbcode_target(_kind = define_common_targets,)

extension/runner_util/TARGETS

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

extension/runner_util/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")
3+
# Any targets that should be shared between fbcode and xplat must be defined in
4+
# targets.bzl. This file can contain xplat-only targets.
5+
6+
load(":targets.bzl", "define_common_targets")
7+
8+
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/extension/runner_util/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
113
# Any targets that should be shared between fbcode and xplat must be defined in
214
# targets.bzl. This file can contain xplat-only targets.
315

416
load(":targets.bzl", "define_common_targets")
517

6-
oncall("executorch")
718

8-
define_common_targets()
19+
fbcode_target(_kind = define_common_targets,is_fbcode = True)

extension/runner_util/test/TARGETS

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

extension/tensor/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/extension/tensor/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,)

extension/tensor/TARGETS

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

0 commit comments

Comments
 (0)