Skip to content

Commit 98da9d5

Browse files
Rename build files from TARGETS to BUCK (group ID: -6933935006879497618)
Differential Revision: D104414853 Pull Request resolved: pytorch#19410
1 parent 29761c8 commit 98da9d5

6 files changed

Lines changed: 77 additions & 68 deletions

File tree

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
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
load(":targets.bzl", "define_common_targets")
34

45
oncall("executorch")
56

6-
define_common_targets()
7+
non_fbcode_target(_kind = define_common_targets,)
8+
9+
# !!!! fbcode/executorch/extension/flat_tensor/serialize/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
10+
11+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
12+
load(":targets.bzl", "define_common_targets")
13+
14+
15+
fbcode_target(_kind = define_common_targets,)
16+
17+
fbcode_target(_kind = runtime.python_library,
18+
name = "schema",
19+
srcs = [
20+
"flat_tensor_schema.py",
21+
],
22+
visibility = [
23+
"//executorch/...",
24+
],
25+
deps = [
26+
"//executorch/exir:tensor_layout",
27+
]
28+
)
29+
30+
fbcode_target(_kind = runtime.python_library,
31+
name = "serialize",
32+
srcs = [
33+
"serialize.py",
34+
],
35+
resources = [
36+
"flat_tensor.fbs",
37+
"scalar_type.fbs",
38+
],
39+
visibility = ["PUBLIC"],
40+
deps = [
41+
":schema",
42+
"//executorch/exir/_serialize:lib",
43+
],
44+
)

extension/flat_tensor/serialize/TARGETS

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

extension/flat_tensor/test/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/flat_tensor/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("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
17+
load(":targets.bzl", "define_common_targets")
18+
19+
20+
fbcode_target(_kind = define_common_targets,is_fbcode=True)
21+
22+
fbcode_target(_kind = python_unittest,
23+
name = "serialize",
24+
srcs = [
25+
"test_serialize.py",
26+
],
27+
deps = [
28+
"//executorch/extension/flat_tensor/serialize:serialize",
29+
"//executorch/extension/flat_tensor/serialize:schema",
30+
],
31+
)

extension/flat_tensor/test/TARGETS

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

extension/kernel_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")
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/kernel_util/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/kernel_util/TARGETS

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

0 commit comments

Comments
 (0)