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/nxp/TARGETS b/backends/nxp/BUCK similarity index 83% rename from backends/nxp/TARGETS rename to backends/nxp/BUCK index a5a0508b33c..ab22cc35466 100644 --- a/backends/nxp/TARGETS +++ b/backends/nxp/BUCK @@ -1,3 +1,4 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") load("@fbcode_macros//build_defs:python_pytest.bzl", "python_pytest") load( @@ -8,7 +9,7 @@ load( oncall("executorch") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "aten_passes", srcs = glob([ "aten_passes/*.py", @@ -19,7 +20,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "edge_passes", srcs = glob([ "edge_passes/*.py", @@ -32,7 +33,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "_passes", srcs = glob([ "_passes/*.py", @@ -44,7 +45,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "quantizer", srcs = [ "quantizer/neutron_quantizer.py", @@ -58,7 +59,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "neutron_sdk", srcs = glob(["backend/**/*.py"]), deps = [ @@ -66,7 +67,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "neutron_backend", srcs = [ "nxp_backend.py", diff --git a/backends/nxp/runtime/BUCK b/backends/nxp/runtime/BUCK index f91c46c0f20..d90dc36cee9 100644 --- a/backends/nxp/runtime/BUCK +++ b/backends/nxp/runtime/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/backends/nxp/runtime/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/backends/nxp/runtime/TARGETS b/backends/nxp/runtime/TARGETS deleted file mode 100644 index f91c46c0f20..00000000000 --- a/backends/nxp/runtime/TARGETS +++ /dev/null @@ -1,5 +0,0 @@ -load("targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets()