Skip to content

Commit 25cd79e

Browse files
Rename build files from TARGETS to BUCK (group ID: 8837079443369035216)
Differential Revision: D91687063 Pull Request resolved: #16947
1 parent ac760fc commit 25cd79e

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

docs/TARGETS renamed to docs/BUCK

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup", "buck_sh_test")
23
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
34

45
oncall("executorch")
56

6-
python_binary(
7+
fbcode_target(_kind = python_binary,
78
name = "sphinx",
89
main_module = "sphinx.cmd.build",
910
par_style = "xar",
@@ -30,12 +31,12 @@ python_binary(
3031
],
3132
)
3233

33-
buck_filegroup(
34+
fbcode_target(_kind = buck_filegroup,
3435
name = "source",
3536
srcs = glob(["source/**/*"]),
3637
)
3738

38-
buck_sh_test(
39+
fbcode_target(_kind = buck_sh_test,
3940
name = "doctest",
4041
args = [
4142
"-M",
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
56

6-
runtime.python_library(
7+
fbcode_target(_kind = runtime.python_library,
78
name = "llama_transformer",
89
srcs = [
910
"llama_transformer.py",
@@ -17,7 +18,7 @@ runtime.python_library(
1718
],
1819
)
1920

20-
runtime.python_library(
21+
fbcode_target(_kind = runtime.python_library,
2122
name = "utils",
2223
srcs = [
2324
"utils.py",
@@ -30,7 +31,7 @@ runtime.python_library(
3031
],
3132
)
3233

33-
runtime.python_binary(
34+
fbcode_target(_kind = runtime.python_binary,
3435
name = "export",
3536
srcs = [
3637
"export.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
# 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
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
45

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

examples/apple/mps/executor_runner/BUCK

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
#
24
# Copyright (c) 2023 Apple Inc. All rights reserved.
35
# Provided subject to the LICENSE file in the top level directory.
@@ -8,6 +10,20 @@
810

911
load(":targets.bzl", "define_common_targets")
1012

11-
oncall("executorch")
1213

13-
define_common_targets()
14+
non_fbcode_target(_kind = define_common_targets,)
15+
16+
# !!!! fbcode/executorch/examples/apple/mps/executor_runner/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
17+
18+
#
19+
# Copyright (c) 2023 Apple Inc. All rights reserved.
20+
# Provided subject to the LICENSE file in the top level directory.
21+
#
22+
23+
# Any targets that should be shared between fbcode and xplat must be defined in
24+
# targets.bzl. This file can contain fbcode-only targets.
25+
26+
load(":targets.bzl", "define_common_targets")
27+
28+
29+
fbcode_target(_kind = define_common_targets,)

examples/apple/mps/executor_runner/TARGETS

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

0 commit comments

Comments
 (0)