Skip to content

Commit 04ce966

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

5 files changed

Lines changed: 54 additions & 48 deletions

File tree

devtools/TARGETS renamed to devtools/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 = "lib",
78
srcs = ["__init__.py"],
89
deps = [
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 = "delegation_info",
78
srcs = [
89
"__init__.py",
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("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
23

34
oncall("executorch")
45

5-
python_unittest(
6+
fbcode_target(_kind = python_unittest,
67
name = "test_delegation_info",
78
srcs = [
89
"test_delegation_info.py",

devtools/bundled_program/BUCK

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load(":targets.bzl", "define_common_targets")
23

34
oncall("executorch")
45

5-
define_common_targets()
6+
non_fbcode_target(_kind = define_common_targets,)
7+
8+
# !!!! fbcode/executorch/devtools/bundled_program/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
9+
10+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
11+
load(":targets.bzl", "define_common_targets")
12+
13+
14+
fbcode_target(_kind = define_common_targets,)
15+
16+
fbcode_target(_kind = runtime.python_library,
17+
name = "core",
18+
srcs = [
19+
"core.py",
20+
],
21+
visibility = ["PUBLIC"],
22+
deps = [
23+
":config",
24+
":version",
25+
"//caffe2:torch",
26+
"//executorch/devtools/bundled_program/schema:bundled_program_schema_py",
27+
"//executorch/exir:schema",
28+
"//executorch/exir:tensor",
29+
],
30+
)
31+
32+
fbcode_target(_kind = runtime.python_library,
33+
name = "config",
34+
srcs = [
35+
"config.py",
36+
],
37+
visibility = ["PUBLIC"],
38+
deps = [
39+
"fbsource//third-party/pypi/typing-extensions:typing-extensions",
40+
"//caffe2:torch",
41+
],
42+
)
43+
44+
fbcode_target(_kind = runtime.python_library,
45+
name = "version",
46+
srcs = [
47+
"version.py",
48+
],
49+
visibility = [
50+
"//executorch/devtools/...",
51+
],
52+
)

devtools/bundled_program/TARGETS

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

0 commit comments

Comments
 (0)