Skip to content

Commit 3f94ad1

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

7 files changed

Lines changed: 60 additions & 50 deletions

File tree

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/kernels/portable/cpu/util/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,)

kernels/portable/cpu/util/test/TARGETS

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

kernels/portable/test/BUCK

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
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/kernels/portable/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+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
18+
19+
20+
fbcode_target(_kind = define_common_targets,)
21+
22+
fbcode_target(_kind = runtime.cxx_library,
23+
name = "aot_ops_test_lib",
24+
srcs = [
25+
"register_ops_aot_for_test.cpp",
26+
],
27+
visibility = ["PUBLIC"],
28+
deps = [
29+
"//executorch/extension/aten_util:aten_bridge",
30+
"//executorch/kernels/portable/cpu:op_grid_sampler_2d",
31+
"//executorch/kernels/portable/cpu:op_upsample_bilinear2d",
32+
"//executorch/kernels/portable/cpu:op_upsample_bilinear2d_aa",
33+
"//executorch/kernels/portable/cpu:op_upsample_nearest2d",
34+
"//executorch/runtime/core/exec_aten:lib",
35+
],
36+
external_deps = [
37+
"libtorch",
38+
],
39+
)

kernels/portable/test/TARGETS

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

kernels/prim_ops/BUCK

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
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/kernels/prim_ops/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+
load(":targets.bzl", "define_common_targets")
16+
17+
18+
fbcode_target(_kind = define_common_targets,)

kernels/prim_ops/TARGETS

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

runtime/TARGETS renamed to runtime/BUCK

Lines changed: 2 additions & 1 deletion
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
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

34
oncall("executorch")
45

5-
runtime.python_library(
6+
fbcode_target(_kind = runtime.python_library,
67
name = "runtime",
78
srcs = ["__init__.py"],
89
deps = [

0 commit comments

Comments
 (0)