Skip to content

Commit cc62981

Browse files
FbsourceTargetsToBuck Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -1524544273800567572) (#19414)
Summary: Pull Request resolved: #19414 Reviewed By: bigfootjon Differential Revision: D104415545
1 parent 4413a5c commit cc62981

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

extension/aten_util/test/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/aten_util/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(":targets.bzl", "define_common_targets")
17+
18+
19+
fbcode_target(_kind = define_common_targets,)

extension/aten_util/test/TARGETS

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
34
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
45

56
oncall("executorch")
67

7-
runtime.python_library(
8+
fbcode_target(_kind = runtime.python_library,
89
name = "mel_spectrogram_lib",
910
srcs = ["mel_spectrogram.py"],
1011
deps = [
@@ -19,7 +20,7 @@ runtime.python_library(
1920
]
2021
)
2122

22-
python_binary(
23+
fbcode_target(_kind = python_binary,
2324
name = "mel_spectrogram",
2425
main_module = "executorch.extension.audio.mel_spectrogram",
2526
deps = [

0 commit comments

Comments
 (0)