diff --git a/backends/example/example_backend_delegate_passes/TARGETS b/backends/example/example_backend_delegate_passes/BUCK similarity index 76% rename from backends/example/example_backend_delegate_passes/TARGETS rename to backends/example/example_backend_delegate_passes/BUCK index 9e3b06486a8..49d4b985497 100644 --- a/backends/example/example_backend_delegate_passes/TARGETS +++ b/backends/example/example_backend_delegate_passes/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 = "lib", srcs = [ "merge_to_dim_pass.py", diff --git a/backends/example/example_operators/TARGETS b/backends/example/example_operators/BUCK similarity index 74% rename from backends/example/example_operators/TARGETS rename to backends/example/example_operators/BUCK index 70f8f3cc0c5..50061f819c2 100644 --- a/backends/example/example_operators/TARGETS +++ b/backends/example/example_operators/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 = "example_operators_lib", srcs = [ "adaptive_avg_pool2d.py", diff --git a/backends/mediatek/TARGETS b/backends/mediatek/BUCK similarity index 74% rename from backends/mediatek/TARGETS rename to backends/mediatek/BUCK index 9d3cd9459a4..fa68ea9c2be 100644 --- a/backends/mediatek/TARGETS +++ b/backends/mediatek/BUCK @@ -1,6 +1,7 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "preprocess", srcs = [ "preprocess.py" @@ -14,7 +15,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "partitioner", srcs = [ "partitioner.py" diff --git a/backends/mediatek/_passes/TARGETS b/backends/mediatek/_passes/BUCK similarity index 68% rename from backends/mediatek/_passes/TARGETS rename to backends/mediatek/_passes/BUCK index def649d8857..931c337cf4e 100644 --- a/backends/mediatek/_passes/TARGETS +++ b/backends/mediatek/_passes/BUCK @@ -1,6 +1,7 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "passes", srcs = [ "__init__.py",