diff --git a/backends/cuda/tests/TARGETS b/backends/cuda/tests/BUCK similarity index 86% rename from backends/cuda/tests/TARGETS rename to backends/cuda/tests/BUCK index 974086cd4c5..79d5841fb72 100644 --- a/backends/cuda/tests/TARGETS +++ b/backends/cuda/tests/BUCK @@ -1,10 +1,11 @@ +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_unittest.bzl", "python_unittest") load("@fbcode_macros//build_defs:python_unittest_remote_gpu.bzl", "python_unittest_remote_gpu") oncall("executorch") -python_unittest_remote_gpu( +fbcode_target(_kind = python_unittest_remote_gpu, name = "test_cuda_export", srcs = [ "test_cuda_export.py", @@ -24,7 +25,7 @@ python_unittest_remote_gpu( keep_gpu_sections = True, ) -python_unittest( +fbcode_target(_kind = python_unittest, name = "test_cuda_partitioner", srcs = [ "test_cuda_partitioner.py", diff --git a/backends/example/TARGETS b/backends/example/BUCK similarity index 85% rename from backends/example/TARGETS rename to backends/example/BUCK index 48fb971428b..d1f474f54e8 100644 --- a/backends/example/TARGETS +++ b/backends/example/BUCK @@ -1,9 +1,10 @@ +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_unittest.bzl", "python_unittest") oncall("executorch") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "example_quantizer", srcs = [ "example_quantizer.py", @@ -15,7 +16,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "example_backend", srcs = [ "example_backend.py", @@ -27,7 +28,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "example_partitioner", srcs = [ "example_partitioner.py", @@ -43,7 +44,7 @@ runtime.python_library( ], ) -python_unittest( +fbcode_target(_kind = python_unittest, name = "test_example_delegate", srcs = [ "test_example_delegate.py", diff --git a/backends/mediatek/quantizer/TARGETS b/backends/mediatek/quantizer/BUCK similarity index 70% rename from backends/mediatek/quantizer/TARGETS rename to backends/mediatek/quantizer/BUCK index 09be73cd172..1638bbeecff 100644 --- a/backends/mediatek/quantizer/TARGETS +++ b/backends/mediatek/quantizer/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 = "quantizer", srcs = [ "__init__.py", diff --git a/backends/mediatek/runtime/BUCK b/backends/mediatek/runtime/BUCK index d395eb07786..9377c1f13d6 100644 --- a/backends/mediatek/runtime/BUCK +++ b/backends/mediatek/runtime/BUCK @@ -1,3 +1,5 @@ +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. @@ -7,9 +9,8 @@ load( ) load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -oncall("executorch") -runtime.cxx_library( +non_fbcode_target(_kind = runtime.cxx_library, name = "neuron_backend", srcs = [ "NeuronBackend.cpp", @@ -31,3 +32,6 @@ runtime.cxx_library( platforms = [ANDROID], visibility = ["PUBLIC"], ) + +# !!!! fbcode/executorch/backends/mediatek/runtime/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + diff --git a/backends/mediatek/runtime/TARGETS b/backends/mediatek/runtime/TARGETS deleted file mode 100644 index e69de29bb2d..00000000000