diff --git a/backends/qualcomm/tests/TARGETS b/backends/qualcomm/tests/BUCK similarity index 88% rename from backends/qualcomm/tests/TARGETS rename to backends/qualcomm/tests/BUCK index 005cc33c7e9..a453e7842c7 100644 --- a/backends/qualcomm/tests/TARGETS +++ b/backends/qualcomm/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("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version") oncall("executorch") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "models", srcs = ["models.py"], deps = [ @@ -12,7 +13,7 @@ runtime.python_library( ] ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "test_qnn_delegate", srcs = [ "test_qnn_delegate.py", @@ -41,7 +42,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "tester", srcs = [ "tester.py", @@ -51,7 +52,7 @@ runtime.python_library( ] ) -runtime.python_test( +fbcode_target(_kind = runtime.python_test, name = "test_passes", srcs = [ "test_passes.py", diff --git a/backends/qualcomm/utils/TARGETS b/backends/qualcomm/utils/BUCK similarity index 59% rename from backends/qualcomm/utils/TARGETS rename to backends/qualcomm/utils/BUCK index 2341af9282f..f488cf7ec94 100644 --- a/backends/qualcomm/utils/TARGETS +++ b/backends/qualcomm/utils/BUCK @@ -1,3 +1,4 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain fbcode-only targets. @@ -5,4 +6,4 @@ load(":targets.bzl", "define_common_targets") oncall("executorch") -define_common_targets() +fbcode_target(_kind = define_common_targets,) diff --git a/backends/test/BUCK b/backends/test/BUCK index 1e8cc179228..aaded01ffcc 100644 --- a/backends/test/BUCK +++ b/backends/test/BUCK @@ -1,8 +1,19 @@ +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. load(":targets.bzl", "define_common_targets") -oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/backends/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +# Any targets that should be shared between fbcode and xplat must be defined in +# targets.bzl. This file can contain fbcode-only targets. + +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,is_fbcode = True) diff --git a/backends/test/TARGETS b/backends/test/TARGETS deleted file mode 100644 index a6c52d105f6..00000000000 --- a/backends/test/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -# Any targets that should be shared between fbcode and xplat must be defined in -# targets.bzl. This file can contain fbcode-only targets. - -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets(is_fbcode = True)