Skip to content

Commit acf9e76

Browse files
FbsourceTargetsToBuck Botfacebook-github-bot
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -7775066853360882118) (#19408)
Summary: Pull Request resolved: #19408 Reviewed By: bigfootjon Differential Revision: D104415398
1 parent 4413a5c commit acf9e76

5 files changed

Lines changed: 40 additions & 33 deletions

File tree

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

extension/training/BUCK

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
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/training/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("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
17+
load(":targets.bzl", "define_common_targets")
18+
19+
20+
fbcode_target(_kind = define_common_targets,)
21+
22+
fbcode_target(_kind = runtime.python_library,
23+
name = "lib",
24+
srcs = [
25+
"__init__.py",
26+
],
27+
deps = [
28+
"//executorch/extension/training/pybindings:_training_lib",
29+
"//executorch/extension/training/pybindings:_training_module",
30+
],
31+
)

extension/training/TARGETS

Lines changed: 0 additions & 20 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
# Any targets that should be shared between fbcode and xplat must be defined in
23
# targets.bzl. This file can contain fbcode-only targets.
34

45
load(":targets.bzl", "define_common_targets")
56

67
oncall("executorch")
78

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

extension/training/examples/CIFAR/TARGETS

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

0 commit comments

Comments
 (0)