Skip to content

Commit 3c1d9ba

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

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

  • devtools
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
23
load(":targets.bzl", "define_common_targets")
34

45
oncall("executorch")
56

6-
define_common_targets()
7+
fbcode_target(_kind = define_common_targets,)
78

8-
python_unittest(
9+
fbcode_target(_kind = python_unittest,
910
name = "serialize_test",
1011
srcs = [
1112
"serialize_test.py",
Lines changed: 6 additions & 5 deletions
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 = "inspector",
78
srcs = [
89
"_inspector.py",
@@ -22,7 +23,7 @@ runtime.python_library(
2223
],
2324
)
2425

25-
runtime.python_binary(
26+
fbcode_target(_kind = runtime.python_binary,
2627
name = "inspector_cli",
2728
main_function = ".inspector_cli.main",
2829
main_src = "inspector_cli.py",
@@ -32,7 +33,7 @@ runtime.python_binary(
3233
],
3334
)
3435

35-
runtime.python_library(
36+
fbcode_target(_kind = runtime.python_library,
3637
name = "inspector_utils",
3738
srcs = [
3839
"_inspector_utils.py",
@@ -49,7 +50,7 @@ runtime.python_library(
4950
],
5051
)
5152

52-
runtime.python_library(
53+
fbcode_target(_kind = runtime.python_library,
5354
name = "intermediate_output_capturer",
5455
srcs = [
5556
"_intermediate_output_capturer.py",
@@ -59,7 +60,7 @@ runtime.python_library(
5960
],
6061
)
6162

62-
runtime.python_library(
63+
fbcode_target(_kind = runtime.python_library,
6364
name = "lib",
6465
srcs = ["__init__.py"],
6566
deps = [

devtools/inspector/numerical_comparator/TARGETS renamed to devtools/inspector/numerical_comparator/BUCK

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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

56

6-
runtime.python_library(
7+
fbcode_target(_kind = runtime.python_library,
78
name = "numerical_comparator_base",
89
srcs = ["numerical_comparator_base.py"],
910
deps = [],
1011
)
1112

12-
runtime.python_library(
13+
fbcode_target(_kind = runtime.python_library,
1314
name = "l1_numerical_comparator",
1415
srcs = ["l1_numerical_comparator.py"],
1516
deps = [
@@ -18,7 +19,7 @@ runtime.python_library(
1819
],
1920
)
2021

21-
runtime.python_library(
22+
fbcode_target(_kind = runtime.python_library,
2223
name = "mse_numerical_comparator",
2324
srcs = ["mse_numerical_comparator.py"],
2425
deps = [
@@ -27,7 +28,7 @@ runtime.python_library(
2728
],
2829
)
2930

30-
runtime.python_library(
31+
fbcode_target(_kind = runtime.python_library,
3132
name = "snr_numerical_comparator",
3233
srcs = ["snr_numerical_comparator.py"],
3334
deps = [
@@ -36,7 +37,7 @@ runtime.python_library(
3637
],
3738
)
3839

39-
runtime.python_library(
40+
fbcode_target(_kind = runtime.python_library,
4041
name = "lib",
4142
srcs = ["__init__.py"],
4243
deps = [

0 commit comments

Comments
 (0)