From a002b898395524d839498d17bedc303fa3118bda Mon Sep 17 00:00:00 2001 From: TARGETS Exterminator Date: Fri, 16 Jan 2026 14:44:24 -0800 Subject: [PATCH] Rename build files from TARGETS to BUCK (group ID: -5571098319332786636) (#16660) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/16660 Reviewed By: bigfootjon Differential Revision: D90808870 --- profiler/BUCK | 41 ++++++++++++++++++- profiler/TARGETS | 36 ---------------- profiler/test/{TARGETS => BUCK} | 3 +- runtime/{TARGETS => BUCK} | 3 +- runtime/backend/BUCK | 13 +++++- runtime/backend/TARGETS | 8 ---- runtime/backend/test/BUCK | 15 ++++++- runtime/backend/test/TARGETS | 8 ---- runtime/core/BUCK | 15 ++++++- runtime/core/TARGETS | 8 ---- runtime/core/exec_aten/BUCK | 15 ++++++- runtime/core/exec_aten/TARGETS | 8 ---- runtime/core/exec_aten/testing_util/BUCK | 15 ++++++- runtime/core/exec_aten/testing_util/TARGETS | 8 ---- runtime/core/exec_aten/testing_util/test/BUCK | 15 ++++++- .../core/exec_aten/testing_util/test/TARGETS | 8 ---- runtime/core/exec_aten/util/BUCK | 15 ++++++- runtime/core/exec_aten/util/TARGETS | 8 ---- runtime/core/exec_aten/util/test/BUCK | 15 ++++++- runtime/core/exec_aten/util/test/TARGETS | 8 ---- runtime/core/portable_type/BUCK | 15 ++++++- runtime/core/portable_type/TARGETS | 8 ---- runtime/core/portable_type/c10/c10/BUCK | 15 ++++++- runtime/core/portable_type/c10/c10/TARGETS | 8 ---- .../portable_type/c10/torch/headeronly/BUCK | 10 ++++- .../c10/torch/headeronly/TARGETS | 5 --- runtime/core/portable_type/test/BUCK | 15 ++++++- runtime/core/portable_type/test/TARGETS | 8 ---- runtime/core/test/BUCK | 15 ++++++- runtime/core/test/TARGETS | 8 ---- runtime/core/testing_util/BUCK | 15 ++++++- runtime/core/testing_util/TARGETS | 8 ---- runtime/executor/BUCK | 15 ++++++- runtime/executor/TARGETS | 8 ---- runtime/executor/test/BUCK | 15 ++++++- runtime/executor/test/TARGETS | 8 ---- runtime/kernel/BUCK | 15 ++++++- runtime/kernel/TARGETS | 8 ---- runtime/kernel/test/BUCK | 15 ++++++- runtime/kernel/test/TARGETS | 8 ---- 40 files changed, 273 insertions(+), 214 deletions(-) delete mode 100644 profiler/TARGETS rename profiler/test/{TARGETS => BUCK} (84%) rename runtime/{TARGETS => BUCK} (63%) delete mode 100644 runtime/backend/TARGETS delete mode 100644 runtime/backend/test/TARGETS delete mode 100644 runtime/core/TARGETS delete mode 100644 runtime/core/exec_aten/TARGETS delete mode 100644 runtime/core/exec_aten/testing_util/TARGETS delete mode 100644 runtime/core/exec_aten/testing_util/test/TARGETS delete mode 100644 runtime/core/exec_aten/util/TARGETS delete mode 100644 runtime/core/exec_aten/util/test/TARGETS delete mode 100644 runtime/core/portable_type/TARGETS delete mode 100644 runtime/core/portable_type/c10/c10/TARGETS delete mode 100644 runtime/core/portable_type/c10/torch/headeronly/TARGETS delete mode 100644 runtime/core/portable_type/test/TARGETS delete mode 100644 runtime/core/test/TARGETS delete mode 100644 runtime/core/testing_util/TARGETS delete mode 100644 runtime/executor/TARGETS delete mode 100644 runtime/executor/test/TARGETS delete mode 100644 runtime/kernel/TARGETS delete mode 100644 runtime/kernel/test/TARGETS diff --git a/profiler/BUCK b/profiler/BUCK index eaa6e21947a..1f6bc6cd9e6 100644 --- a/profiler/BUCK +++ b/profiler/BUCK @@ -1,4 +1,43 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. -oncall("executorch") + +# !!!! fbcode/executorch/profiler/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") + + +fbcode_target(_kind = runtime.python_library, + name = "parse_profiler_library", + srcs = [ + "parse_profiler_results.py", + "profiler_results_cli.py", + ], + base_module = "executorch.profiler", + visibility = ["PUBLIC"], + external_deps = ["prettytable"], +) + +fbcode_target(_kind = runtime.python_library, + name = "profiler_results_cli_lib", + srcs = [ + "profiler_results_cli.py", + ], + base_module = "executorch.profiler", + deps = [ + ":parse_profiler_library", + ], +) + +fbcode_target(_kind = runtime.python_binary, + name = "profiler_results_cli", + main_function = "executorch.profiler.profiler_results_cli.invoke_main", + deps = [ + ":profiler_results_cli_lib", + ], +) diff --git a/profiler/TARGETS b/profiler/TARGETS deleted file mode 100644 index 28d736df511..00000000000 --- a/profiler/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") - -oncall("executorch") - -runtime.python_library( - name = "parse_profiler_library", - srcs = [ - "parse_profiler_results.py", - "profiler_results_cli.py", - ], - base_module = "executorch.profiler", - visibility = ["PUBLIC"], - external_deps = ["prettytable"], -) - -runtime.python_library( - name = "profiler_results_cli_lib", - srcs = [ - "profiler_results_cli.py", - ], - base_module = "executorch.profiler", - deps = [ - ":parse_profiler_library", - ], -) - -runtime.python_binary( - name = "profiler_results_cli", - main_function = "executorch.profiler.profiler_results_cli.invoke_main", - deps = [ - ":profiler_results_cli_lib", - ], -) diff --git a/profiler/test/TARGETS b/profiler/test/BUCK similarity index 84% rename from profiler/test/TARGETS rename to profiler/test/BUCK index 0aa7c23a4c4..56d21b83694 100644 --- a/profiler/test/TARGETS +++ b/profiler/test/BUCK @@ -1,3 +1,4 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") oncall("executorch") @@ -7,7 +8,7 @@ oncall("executorch") # -c executorch.prof_enabled=true. So we instead define this as a # binary and run this on diffs via a Skycastle job. -python_binary( +fbcode_target(_kind = python_binary, # @autodeps-skip name = "test_profiler_e2e", srcs = [ diff --git a/runtime/TARGETS b/runtime/BUCK similarity index 63% rename from runtime/TARGETS rename to runtime/BUCK index 9f8f1b9783a..bbedc422542 100644 --- a/runtime/TARGETS +++ b/runtime/BUCK @@ -1,8 +1,9 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") oncall("executorch") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "runtime", srcs = ["__init__.py"], deps = [ diff --git a/runtime/backend/BUCK b/runtime/backend/BUCK index 0a42614a385..f2b135c5b05 100644 --- a/runtime/backend/BUCK +++ b/runtime/backend/BUCK @@ -1,5 +1,16 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load(":targets.bzl", "define_common_targets") oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/backend/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/backend/TARGETS b/runtime/backend/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/backend/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/backend/test/BUCK b/runtime/backend/test/BUCK index 1e8cc179228..77131b9494a 100644 --- a/runtime/backend/test/BUCK +++ b/runtime/backend/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/backend/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/backend/test/TARGETS b/runtime/backend/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/backend/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/BUCK b/runtime/core/BUCK index 1e8cc179228..ec0d19e1664 100644 --- a/runtime/core/BUCK +++ b/runtime/core/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/TARGETS b/runtime/core/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/exec_aten/BUCK b/runtime/core/exec_aten/BUCK index 1e8cc179228..45fca231661 100644 --- a/runtime/core/exec_aten/BUCK +++ b/runtime/core/exec_aten/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/exec_aten/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/exec_aten/TARGETS b/runtime/core/exec_aten/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/exec_aten/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/exec_aten/testing_util/BUCK b/runtime/core/exec_aten/testing_util/BUCK index 1e8cc179228..032fa8ad516 100644 --- a/runtime/core/exec_aten/testing_util/BUCK +++ b/runtime/core/exec_aten/testing_util/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/exec_aten/testing_util/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/exec_aten/testing_util/TARGETS b/runtime/core/exec_aten/testing_util/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/exec_aten/testing_util/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/exec_aten/testing_util/test/BUCK b/runtime/core/exec_aten/testing_util/test/BUCK index 1e8cc179228..0b65f6f5e28 100644 --- a/runtime/core/exec_aten/testing_util/test/BUCK +++ b/runtime/core/exec_aten/testing_util/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/exec_aten/testing_util/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/exec_aten/testing_util/test/TARGETS b/runtime/core/exec_aten/testing_util/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/exec_aten/testing_util/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/exec_aten/util/BUCK b/runtime/core/exec_aten/util/BUCK index 1e8cc179228..e2ced4b6841 100644 --- a/runtime/core/exec_aten/util/BUCK +++ b/runtime/core/exec_aten/util/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/exec_aten/util/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/exec_aten/util/TARGETS b/runtime/core/exec_aten/util/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/exec_aten/util/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/exec_aten/util/test/BUCK b/runtime/core/exec_aten/util/test/BUCK index 1e8cc179228..c22cd56c7ea 100644 --- a/runtime/core/exec_aten/util/test/BUCK +++ b/runtime/core/exec_aten/util/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/exec_aten/util/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/exec_aten/util/test/TARGETS b/runtime/core/exec_aten/util/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/exec_aten/util/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/portable_type/BUCK b/runtime/core/portable_type/BUCK index 1e8cc179228..7e7624d7191 100644 --- a/runtime/core/portable_type/BUCK +++ b/runtime/core/portable_type/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/portable_type/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/portable_type/TARGETS b/runtime/core/portable_type/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/portable_type/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/portable_type/c10/c10/BUCK b/runtime/core/portable_type/c10/c10/BUCK index 1e8cc179228..b8519e2b328 100644 --- a/runtime/core/portable_type/c10/c10/BUCK +++ b/runtime/core/portable_type/c10/c10/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/portable_type/c10/c10/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/portable_type/c10/c10/TARGETS b/runtime/core/portable_type/c10/c10/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/portable_type/c10/c10/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/portable_type/c10/torch/headeronly/BUCK b/runtime/core/portable_type/c10/torch/headeronly/BUCK index 0a42614a385..c50eb56b0a8 100644 --- a/runtime/core/portable_type/c10/torch/headeronly/BUCK +++ b/runtime/core/portable_type/c10/torch/headeronly/BUCK @@ -1,5 +1,13 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load(":targets.bzl", "define_common_targets") oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/portable_type/c10/torch/headeronly/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/portable_type/c10/torch/headeronly/TARGETS b/runtime/core/portable_type/c10/torch/headeronly/TARGETS deleted file mode 100644 index 0a42614a385..00000000000 --- a/runtime/core/portable_type/c10/torch/headeronly/TARGETS +++ /dev/null @@ -1,5 +0,0 @@ -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/portable_type/test/BUCK b/runtime/core/portable_type/test/BUCK index 1e8cc179228..906ac85bcfc 100644 --- a/runtime/core/portable_type/test/BUCK +++ b/runtime/core/portable_type/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/portable_type/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/portable_type/test/TARGETS b/runtime/core/portable_type/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/portable_type/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/test/BUCK b/runtime/core/test/BUCK index 1e8cc179228..1e62ef4f14d 100644 --- a/runtime/core/test/BUCK +++ b/runtime/core/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/test/TARGETS b/runtime/core/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/core/testing_util/BUCK b/runtime/core/testing_util/BUCK index 1e8cc179228..db613df300c 100644 --- a/runtime/core/testing_util/BUCK +++ b/runtime/core/testing_util/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/core/testing_util/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/core/testing_util/TARGETS b/runtime/core/testing_util/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/core/testing_util/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/executor/BUCK b/runtime/executor/BUCK index 1e8cc179228..941a4ad2a24 100644 --- a/runtime/executor/BUCK +++ b/runtime/executor/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/executor/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/executor/TARGETS b/runtime/executor/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/executor/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/executor/test/BUCK b/runtime/executor/test/BUCK index 1e8cc179228..4681fb79764 100644 --- a/runtime/executor/test/BUCK +++ b/runtime/executor/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/executor/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,is_fbcode = True) diff --git a/runtime/executor/test/TARGETS b/runtime/executor/test/TARGETS deleted file mode 100644 index a6c52d105f6..00000000000 --- a/runtime/executor/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets(is_fbcode = True) diff --git a/runtime/kernel/BUCK b/runtime/kernel/BUCK index 1e8cc179228..262c653f72b 100644 --- a/runtime/kernel/BUCK +++ b/runtime/kernel/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/kernel/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/kernel/TARGETS b/runtime/kernel/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/kernel/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets() diff --git a/runtime/kernel/test/BUCK b/runtime/kernel/test/BUCK index 1e8cc179228..8475416af72 100644 --- a/runtime/kernel/test/BUCK +++ b/runtime/kernel/test/BUCK @@ -1,8 +1,19 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/runtime/kernel/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/runtime/kernel/test/TARGETS b/runtime/kernel/test/TARGETS deleted file mode 100644 index 2341af9282f..00000000000 --- a/runtime/kernel/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets()