Skip to content

Commit ea83404

Browse files
TARGETS Exterminatormeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: 2478810020465793082) (#17047)
Summary: Pull Request resolved: #17047 Reviewed By: bigfootjon Differential Revision: D91838062
1 parent 1df4dac commit ea83404

File tree

5 files changed

+57
-51
lines changed

5 files changed

+57
-51
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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

3-
runtime.python_library(
4+
fbcode_target(_kind = runtime.python_library,
45
name = "core",
56
srcs = [
67
"lib.py",
@@ -13,7 +14,7 @@ runtime.python_library(
1314
],
1415
)
1516

16-
runtime.python_library(
17+
fbcode_target(_kind = runtime.python_library,
1718
name = "ops",
1819
srcs = glob(["ops/*.py"]),
1920
deps = [
@@ -23,7 +24,7 @@ runtime.python_library(
2324
],
2425
)
2526

26-
runtime.python_library(
27+
fbcode_target(_kind = runtime.python_library,
2728
name = "lib",
2829
srcs = ["__init__.py"],
2930
deps = [
Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
# Copyright (c) Meta Platforms, Inc. and affiliates.
23
# All rights reserved.
34
#
@@ -15,7 +16,7 @@ load("@fbsource//xplat/executorch/codegen:codegen.bzl", "executorch_generated_li
1516

1617
oncall("odai_jarvis")
1718

18-
runtime.python_library(
19+
fbcode_target(_kind = runtime.python_library,
1920
name = "utils",
2021
srcs = [
2122
"utils.py",
@@ -30,7 +31,7 @@ runtime.python_library(
3031
],
3132
)
3233

33-
runtime.python_library(
34+
fbcode_target(_kind = runtime.python_library,
3435
name = "compiler",
3536
srcs = [
3637
"compiler.py",
@@ -52,7 +53,7 @@ runtime.python_library(
5253
],
5354
)
5455

55-
runtime.python_library(
56+
fbcode_target(_kind = runtime.python_library,
5657
name = "export_example",
5758
srcs = [
5859
"export_example.py",
@@ -74,7 +75,7 @@ runtime.python_library(
7475
],
7576
)
7677

77-
runtime.python_library(
78+
fbcode_target(_kind = runtime.python_library,
7879
name = "pass_utils",
7980
srcs = [
8081
"pass_utils.py",
@@ -89,7 +90,7 @@ runtime.python_library(
8990
],
9091
)
9192

92-
runtime.python_library(
93+
fbcode_target(_kind = runtime.python_library,
9394
name = "passes",
9495
srcs = [
9596
"passes.py",
@@ -110,7 +111,7 @@ runtime.python_library(
110111
],
111112
)
112113

113-
runtime.python_library(
114+
fbcode_target(_kind = runtime.python_library,
114115
name = "ops_registrations",
115116
srcs = [
116117
"ops_registrations.py",
@@ -122,7 +123,7 @@ runtime.python_library(
122123
],
123124
)
124125

125-
runtime.python_library(
126+
fbcode_target(_kind = runtime.python_library,
126127
name = "ref_implementations",
127128
srcs = [
128129
"ref_implementations.py",
@@ -135,9 +136,9 @@ runtime.python_library(
135136
],
136137
)
137138

138-
export_file(name = "functions.yaml")
139+
fbcode_target(_kind = export_file,name = "functions.yaml")
139140

140-
executorch_generated_lib(
141+
fbcode_target(_kind = executorch_generated_lib,
141142
name = "cadence_aot_lib",
142143
custom_ops_yaml_target = "//executorch/kernels/portable:custom_ops.yaml",
143144
functions_yaml_target = ":functions.yaml",
@@ -162,7 +163,7 @@ executorch_generated_lib(
162163
],
163164
)
164165

165-
python_unittest(
166+
fbcode_target(_kind = python_unittest,
166167
name = "test_pass_filter",
167168
srcs = [
168169
"tests/test_pass_filter.py",
@@ -174,7 +175,7 @@ python_unittest(
174175
],
175176
)
176177

177-
runtime.python_library(
178+
fbcode_target(_kind = runtime.python_library,
178179
name = "compiler_utils",
179180
srcs = [
180181
"compiler_utils.py",
@@ -186,7 +187,7 @@ runtime.python_library(
186187
],
187188
)
188189

189-
runtime.python_library(
190+
fbcode_target(_kind = runtime.python_library,
190191
name = "graph_builder",
191192
srcs = [
192193
"graph_builder.py",
@@ -198,7 +199,7 @@ runtime.python_library(
198199
],
199200
)
200201

201-
runtime.python_library(
202+
fbcode_target(_kind = runtime.python_library,
202203
name = "program_builder",
203204
srcs = [
204205
"program_builder.py",
@@ -213,7 +214,7 @@ runtime.python_library(
213214
],
214215
)
215216

216-
python_unittest(
217+
fbcode_target(_kind = python_unittest,
217218
name = "test_program_builder",
218219
srcs = [
219220
"tests/test_program_builder.py",
@@ -226,7 +227,7 @@ python_unittest(
226227
],
227228
)
228229

229-
runtime.python_library(
230+
fbcode_target(_kind = runtime.python_library,
230231
name = "fuse_ops",
231232
srcs = [
232233
"fuse_ops.py",
@@ -246,7 +247,7 @@ runtime.python_library(
246247
],
247248
)
248249

249-
runtime.python_library(
250+
fbcode_target(_kind = runtime.python_library,
250251
name = "simplify_ops",
251252
srcs = [
252253
"simplify_ops.py",
@@ -261,7 +262,7 @@ runtime.python_library(
261262
],
262263
)
263264

264-
runtime.python_library(
265+
fbcode_target(_kind = runtime.python_library,
265266
name = "remove_ops",
266267
srcs = [
267268
"remove_ops.py",
@@ -280,7 +281,7 @@ runtime.python_library(
280281
],
281282
)
282283

283-
runtime.python_library(
284+
fbcode_target(_kind = runtime.python_library,
284285
name = "reorder_ops",
285286
srcs = [
286287
"reorder_ops.py",
@@ -298,7 +299,7 @@ runtime.python_library(
298299
],
299300
)
300301

301-
runtime.python_library(
302+
fbcode_target(_kind = runtime.python_library,
302303
name = "replace_ops",
303304
srcs = [
304305
"replace_ops.py",
@@ -319,7 +320,7 @@ runtime.python_library(
319320
"//executorch/exir/passes:spec_prop_pass",
320321
],
321322
)
322-
runtime.python_library(
323+
fbcode_target(_kind = runtime.python_library,
323324
name = "decompose_ops",
324325
srcs = [
325326
"decompose_ops.py",
@@ -336,7 +337,7 @@ runtime.python_library(
336337
],
337338
)
338339

339-
runtime.python_library(
340+
fbcode_target(_kind = runtime.python_library,
340341
name = "type_dispatch",
341342
srcs = [
342343
"type_dispatch.py",
@@ -349,7 +350,7 @@ runtime.python_library(
349350
],
350351
)
351352

352-
python_unittest(
353+
fbcode_target(_kind = python_unittest,
353354
name = "test_type_dispatch_passes",
354355
srcs = [
355356
"tests/test_type_dispatch_passes.py",
@@ -368,7 +369,7 @@ python_unittest(
368369
],
369370
)
370371

371-
runtime.python_library(
372+
fbcode_target(_kind = runtime.python_library,
372373
name = "typing_stubs",
373374
srcs = [
374375
"typing_stubs.py",
@@ -379,7 +380,7 @@ runtime.python_library(
379380
],
380381
)
381382

382-
runtime.python_library(
383+
fbcode_target(_kind = runtime.python_library,
383384
name = "compiler_funcs",
384385
srcs = [
385386
"compiler_funcs.py",
@@ -392,7 +393,7 @@ runtime.python_library(
392393
)
393394

394395

395-
python_unittest(
396+
fbcode_target(_kind = python_unittest,
396397
name = "test_graph_builder",
397398
srcs = [
398399
"tests/test_graph_builder.py",
@@ -409,7 +410,7 @@ python_unittest(
409410
],
410411
)
411412

412-
python_unittest(
413+
fbcode_target(_kind = python_unittest,
413414
name = "test_replace_ops_passes",
414415
srcs = [
415416
"tests/test_replace_ops_passes.py",
@@ -430,7 +431,7 @@ python_unittest(
430431
],
431432
)
432433

433-
python_unittest(
434+
fbcode_target(_kind = python_unittest,
434435
name = "test_decompose_ops_passes",
435436
srcs = [
436437
"tests/test_decompose_ops_passes.py",
@@ -451,7 +452,7 @@ python_unittest(
451452
],
452453
)
453454

454-
python_unittest(
455+
fbcode_target(_kind = python_unittest,
455456
name = "test_fusion_ops_passes",
456457
srcs = [
457458
"tests/test_fusion_ops_passes.py",
@@ -472,7 +473,7 @@ python_unittest(
472473
],
473474
)
474475

475-
python_unittest(
476+
fbcode_target(_kind = python_unittest,
476477
name = "test_remove_ops_passes",
477478
srcs = [
478479
"tests/test_remove_ops_passes.py",
@@ -494,7 +495,7 @@ python_unittest(
494495
],
495496
)
496497

497-
python_unittest(
498+
fbcode_target(_kind = python_unittest,
498499
name = "test_simplify_ops_passes",
499500
srcs = [
500501
"tests/test_simplify_ops_passes.py",
@@ -513,7 +514,7 @@ python_unittest(
513514
],
514515
)
515516

516-
python_unittest(
517+
fbcode_target(_kind = python_unittest,
517518
name = "test_reorder_ops_passes",
518519
srcs = [
519520
"tests/test_reorder_ops_passes.py",
@@ -533,7 +534,7 @@ python_unittest(
533534
],
534535
)
535536

536-
runtime.python_library(
537+
fbcode_target(_kind = runtime.python_library,
537538
name = "memory_planning_algo",
538539
srcs = [
539540
"memory_planning_algo.py",
@@ -549,7 +550,7 @@ runtime.python_library(
549550
],
550551
)
551552

552-
runtime.python_library(
553+
fbcode_target(_kind = runtime.python_library,
553554
name = "memory_planning",
554555
srcs = [
555556
"memory_planning.py",
@@ -567,7 +568,7 @@ runtime.python_library(
567568
],
568569
)
569570

570-
runtime.python_library(
571+
fbcode_target(_kind = runtime.python_library,
571572
name = "memory_constraints",
572573
srcs = [
573574
"memory_constraints.py",
@@ -582,7 +583,7 @@ runtime.python_library(
582583
],
583584
)
584585

585-
python_unittest(
586+
fbcode_target(_kind = python_unittest,
586587
name = "test_memory_passes",
587588
srcs = [
588589
"tests/test_memory_passes.py",
@@ -604,7 +605,7 @@ python_unittest(
604605
],
605606
)
606607

607-
python_unittest(
608+
fbcode_target(_kind = python_unittest,
608609
name = "test_idma_ops",
609610
srcs = [
610611
"tests/test_idma_ops.py",
@@ -619,7 +620,7 @@ python_unittest(
619620
],
620621
)
621622

622-
python_unittest(
623+
fbcode_target(_kind = python_unittest,
623624
name = "test_ref_implementations",
624625
srcs = [
625626
"tests/test_ref_implementations.py",
@@ -633,7 +634,7 @@ python_unittest(
633634
]
634635
)
635636

636-
python_unittest(
637+
fbcode_target(_kind = python_unittest,
637638
name = "test_quantizer_ops",
638639
srcs = [
639640
"tests/test_quantizer_ops.py",

0 commit comments

Comments
 (0)