diff --git a/backends/aoti/targets.bzl b/backends/aoti/targets.bzl index 327bef8cc53..6da54b884f0 100644 --- a/backends/aoti/targets.bzl +++ b/backends/aoti/targets.bzl @@ -49,7 +49,7 @@ def define_common_targets(): supports_python_dlopen = True, # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/core:core", "//executorch/runtime/core/exec_aten:lib", @@ -67,7 +67,7 @@ def define_common_targets(): supports_python_dlopen = True, # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/backend:interface", "//executorch/runtime/core:core", @@ -80,7 +80,7 @@ def define_common_targets(): # @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole) link_whole = True, supports_python_dlopen = True, - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], exported_deps = [ ":common_shims", ":delegate_handle", diff --git a/backends/apple/coreml/TARGETS b/backends/apple/coreml/TARGETS index 2f3494b6004..5d50c344a83 100644 --- a/backends/apple/coreml/TARGETS +++ b/backends/apple/coreml/TARGETS @@ -8,9 +8,7 @@ oncall("executorch") # TODO: this is a placeholder to support internal fbcode build. We should add the coreml backend target properly. runtime.python_library( name = "coreml", - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.python_library( @@ -19,9 +17,7 @@ runtime.python_library( "compiler/*.py", "logging.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/pypi/coremltools:coremltools", ":executorchcoreml", @@ -36,9 +32,7 @@ runtime.python_library( "partition/*.py", "logging.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/pypi/coremltools:coremltools", ":backend", @@ -55,9 +49,7 @@ runtime.python_library( srcs = glob([ "quantizer/*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.python_library( @@ -66,10 +58,7 @@ runtime.python_library( "recipes/__init__.py", "recipes/coreml_recipe_provider.py" ], - visibility = [ - "@EXECUTORCH_CLIENTS", - "//executorch/export/...", - ], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/pypi/coremltools:coremltools", ":coreml_recipe_types", @@ -91,10 +80,7 @@ runtime.python_library( srcs = [ "recipes/coreml_recipe_types.py", ], - visibility = [ - "@EXECUTORCH_CLIENTS", - "//executorch/export/...", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/export:recipe", ], @@ -124,10 +110,7 @@ runtime.cxx_python_extension( types = [ "executorchcoreml.pyi", ], - visibility = [ - "//executorch/examples/apple/coreml/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/nlohmann-json:nlohmann-json", "fbsource//third-party/pybind11:pybind11", diff --git a/backends/apple/mps/TARGETS b/backends/apple/mps/TARGETS index 1ab92b3fca0..d138b02e991 100644 --- a/backends/apple/mps/TARGETS +++ b/backends/apple/mps/TARGETS @@ -19,9 +19,7 @@ runtime.python_library( "__init__.py", "mps_preprocess.py", ], - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ ":operators", ":serialization", @@ -49,9 +47,7 @@ runtime.python_library( srcs = glob([ "partition/*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ ":backend", "//caffe2:torch", diff --git a/backends/apple/mps/targets.bzl b/backends/apple/mps/targets.bzl index 99c97d2b318..d2ab3a0755b 100644 --- a/backends/apple/mps/targets.bzl +++ b/backends/apple/mps/targets.bzl @@ -39,16 +39,7 @@ def define_common_targets(is_xplat = False, platforms = []): "runtime/operations/*.h", ]), "srcs": MPS_BACKEND_BUCK_SRCS, - "visibility": [ - "//executorch/backends/apple/...", - "//executorch/examples/...", - "//executorch/exir/backend:backend_lib", - "//executorch/extension/pybindings/...", - "//executorch/runtime/backend/...", - "//executorch/devtools/runners/...", - "//executorch/test/...", - "@EXECUTORCH_CLIENTS", - ], + "visibility": ["PUBLIC"], "link_whole": True, } diff --git a/backends/arm/runtime/targets.bzl b/backends/arm/runtime/targets.bzl index b4c17acda34..7dd0d74ec7d 100644 --- a/backends/arm/runtime/targets.bzl +++ b/backends/arm/runtime/targets.bzl @@ -5,7 +5,7 @@ def define_common_targets(): name = "vela_bin_stream", srcs = ["VelaBinStream.cpp"], exported_headers = ["VelaBinStream.h"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/core:core", ], @@ -21,7 +21,7 @@ def define_common_targets(): supports_python_dlopen = True, # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/backend:interface", ":vela_bin_stream", diff --git a/backends/cadence/fusion_g3/operators/targets.bzl b/backends/cadence/fusion_g3/operators/targets.bzl index dd04bd1223b..d09a9e65326 100644 --- a/backends/cadence/fusion_g3/operators/targets.bzl +++ b/backends/cadence/fusion_g3/operators/targets.bzl @@ -23,10 +23,7 @@ def define_operator(name: str, deps: list[str] | None = None) -> None: name = op_name, srcs = [op_name + ".cpp"], platforms = CXX, - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], compatible_with = ["ovr_config//cpu:xtensa"], deps = deps + common_deps, ) diff --git a/backends/cadence/generic/kernels/targets.bzl b/backends/cadence/generic/kernels/targets.bzl index d50cfe8f130..71f6b156ed1 100644 --- a/backends/cadence/generic/kernels/targets.bzl +++ b/backends/cadence/generic/kernels/targets.bzl @@ -8,9 +8,6 @@ def define_common_targets(): exported_headers = [ "kernels.h", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], platforms = CXX, ) diff --git a/backends/cadence/generic/operators/targets.bzl b/backends/cadence/generic/operators/targets.bzl index af271ace5ac..ece81f2ec54 100644 --- a/backends/cadence/generic/operators/targets.bzl +++ b/backends/cadence/generic/operators/targets.bzl @@ -38,10 +38,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", "//executorch/backends/cadence/generic/kernels:cadence_kernels", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -53,10 +50,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", "//executorch/backends/cadence/generic/kernels:cadence_kernels", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -69,10 +63,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -85,10 +76,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -102,10 +90,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten/util:tensor_util", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -118,10 +103,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -135,10 +117,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -151,10 +130,7 @@ def define_common_targets(): "//executorch/backends/cadence/generic/kernels:cadence_kernels", "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -167,10 +143,7 @@ def define_common_targets(): "//executorch/backends/cadence/generic/kernels:cadence_kernels", "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -184,10 +157,7 @@ def define_common_targets(): ":quantized_linear", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -200,10 +170,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -217,10 +184,7 @@ def define_common_targets(): ":quantized_op_macros", ":quantized_linear", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -233,10 +197,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -249,10 +210,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -266,10 +224,7 @@ def define_common_targets(): "//executorch/kernels/portable/cpu:scalar_utils", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -284,10 +239,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -299,10 +251,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -315,10 +264,7 @@ def define_common_targets(): "//executorch/runtime/kernel:kernel_includes", ":quantized_op_macros", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) @@ -334,10 +280,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -348,10 +291,7 @@ def define_common_targets(): deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -362,10 +302,7 @@ def define_common_targets(): deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -376,10 +313,7 @@ def define_common_targets(): deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -392,10 +326,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -406,10 +337,7 @@ def define_common_targets(): deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -422,10 +350,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -438,10 +363,7 @@ def define_common_targets(): "//executorch/runtime/core/exec_aten:lib", "//executorch/runtime/kernel:kernel_runtime_context", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -457,10 +379,7 @@ def define_common_targets(): exported_deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -476,10 +395,7 @@ def define_common_targets(): exported_deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) runtime.cxx_library( @@ -493,8 +409,5 @@ def define_common_targets(): exported_deps = [ "//executorch/runtime/kernel:kernel_includes", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], ) diff --git a/backends/cadence/hifi/kernels/targets.bzl b/backends/cadence/hifi/kernels/targets.bzl index fe5feed69b5..be04d4c0b35 100644 --- a/backends/cadence/hifi/kernels/targets.bzl +++ b/backends/cadence/hifi/kernels/targets.bzl @@ -14,10 +14,7 @@ def define_common_targets(): ], deps = common_deps, compatible_with = ["ovr_config//cpu:xtensa"], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], exported_deps = [ "fbsource//third-party/nnlib-hifi4/xa_nnlib:libxa_nnlib_common", ], diff --git a/backends/cadence/hifi/operators/targets.bzl b/backends/cadence/hifi/operators/targets.bzl index 5a92a37237f..7937bea0682 100644 --- a/backends/cadence/hifi/operators/targets.bzl +++ b/backends/cadence/hifi/operators/targets.bzl @@ -28,10 +28,7 @@ def define_operator(name: str, deps: list[str] | None = None, exported_headers: name = op_name, srcs = [op_name + ".cpp"], platforms = CXX, - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], compatible_with = ["ovr_config//cpu:xtensa"], deps = deps + common_deps, exported_headers = exported_headers, diff --git a/backends/cadence/hifi/third-party/nnlib/targets.bzl b/backends/cadence/hifi/third-party/nnlib/targets.bzl index 2ad9d6568ac..807d98b04c7 100644 --- a/backends/cadence/hifi/third-party/nnlib/targets.bzl +++ b/backends/cadence/hifi/third-party/nnlib/targets.bzl @@ -8,10 +8,7 @@ def define_common_targets(): name = "nnlib-extensions", srcs = native.glob(["*.c", "*.cpp"]), exported_headers = glob(["*.h"]), - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], compatible_with = ["ovr_config//cpu:xtensa"], compiler_flags = [ "-Wno-pointer-sign", diff --git a/backends/cadence/runtime/targets.bzl b/backends/cadence/runtime/targets.bzl index 09a116764c2..25eddae42f3 100644 --- a/backends/cadence/runtime/targets.bzl +++ b/backends/cadence/runtime/targets.bzl @@ -5,10 +5,7 @@ def define_common_targets(): name = "et_pal", srcs = ["et_pal.cpp"], link_whole = True, - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS" - ], + visibility = ["PUBLIC"], exported_deps = [ "//executorch/runtime/platform:platform", ], @@ -17,10 +14,7 @@ def define_common_targets(): runtime.python_library( name = "etdump", srcs = ["etdump.py"], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS" - ], + visibility = ["PUBLIC"], deps = [ "fbcode//executorch/devtools:lib", "fbcode//executorch/devtools/inspector:inspector_utils", diff --git a/backends/cadence/vision/kernels/targets.bzl b/backends/cadence/vision/kernels/targets.bzl index 02136c872b3..77cebcd05ea 100644 --- a/backends/cadence/vision/kernels/targets.bzl +++ b/backends/cadence/vision/kernels/targets.bzl @@ -8,10 +8,7 @@ def define_common_targets(): exported_headers = [ "kernels.h", ], - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], platforms = CXX, compatible_with = select({ "DEFAULT": [], diff --git a/backends/cadence/vision/operators/targets.bzl b/backends/cadence/vision/operators/targets.bzl index 2dd47e12bd2..399e2096c28 100644 --- a/backends/cadence/vision/operators/targets.bzl +++ b/backends/cadence/vision/operators/targets.bzl @@ -44,10 +44,7 @@ def define_operator(name: str, deps: list[str] | None = None) -> None: name = op_name, srcs = [op_name + ".cpp"], platforms = CXX, - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], compatible_with = ["ovr_config//cpu:xtensa"], deps = deps + common_deps, exported_headers = exported_headers, diff --git a/backends/cadence/vision/third-party/targets.bzl b/backends/cadence/vision/third-party/targets.bzl index 26a097010d5..be3ead43162 100644 --- a/backends/cadence/vision/third-party/targets.bzl +++ b/backends/cadence/vision/third-party/targets.bzl @@ -17,10 +17,7 @@ def define_common_targets(): "include_private/*.h" ]), header_namespace = "", - visibility = [ - "//executorch/backends/cadence/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], platforms = CXX, compatible_with = select({ "DEFAULT": [], diff --git a/backends/cortex_m/ops/targets.bzl b/backends/cortex_m/ops/targets.bzl index 304f02ca7a4..250fcf9e330 100644 --- a/backends/cortex_m/ops/targets.bzl +++ b/backends/cortex_m/ops/targets.bzl @@ -41,10 +41,7 @@ def define_common_targets(): runtime.cxx_library( name = "cortex_m_operators", srcs = [], - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], platforms = CXX, exported_deps = all_op_targets, ) diff --git a/backends/cuda/runtime/TARGETS b/backends/cuda/runtime/TARGETS index a85f3a7e6a3..532ab5544ab 100644 --- a/backends/cuda/runtime/TARGETS +++ b/backends/cuda/runtime/TARGETS @@ -14,7 +14,7 @@ runtime.cxx_library( # @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole) link_whole = True, supports_python_dlopen = True, - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/core:core", ], @@ -38,7 +38,7 @@ runtime.cxx_library( # @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole) link_whole = True, supports_python_dlopen = True, - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/core:core", "//executorch/runtime/core/exec_aten:lib", @@ -69,7 +69,7 @@ runtime.cxx_library( supports_python_dlopen = True, # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ ":tensor_maker", "//executorch/backends/aoti:common_shims", @@ -97,7 +97,7 @@ runtime.cxx_library( supports_python_dlopen = True, # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors"], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ ":runtime_shims", "//executorch/backends/aoti:aoti_common", diff --git a/backends/nxp/runtime/targets.bzl b/backends/nxp/runtime/targets.bzl index 3214761a9cb..f15495efdb7 100644 --- a/backends/nxp/runtime/targets.bzl +++ b/backends/nxp/runtime/targets.bzl @@ -13,11 +13,7 @@ def define_common_targets(): # Constructor needed for backend registration. compiler_flags = ["-Wno-global-constructors", "-fno-rtti", "-DNO_HEAP_USAGE"], labels = [ci.skip_target()], - visibility = [ - "//executorch/backends/nxp/runtime/fb:nxp_fb_backend", - "//executorch/backends/nxp/runtime/fb:nxp_hifi_fb_backend", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/runtime/backend:interface", "//executorch/runtime/core:core", diff --git a/backends/qualcomm/TARGETS b/backends/qualcomm/TARGETS index 895a5e8aae4..747930e8e84 100644 --- a/backends/qualcomm/TARGETS +++ b/backends/qualcomm/TARGETS @@ -8,10 +8,7 @@ define_common_targets() runtime.python_library( name = "preprocess", srcs = ["qnn_preprocess.py"], - visibility = [ - "//executorch/backends/qualcomm/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/backends/qualcomm/_passes:passes", ], diff --git a/backends/qualcomm/_passes/TARGETS b/backends/qualcomm/_passes/TARGETS index 876b51d3863..eaea7236c93 100644 --- a/backends/qualcomm/_passes/TARGETS +++ b/backends/qualcomm/_passes/TARGETS @@ -7,9 +7,7 @@ runtime.python_library( srcs = glob([ "*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/backends/transforms:addmm_mm_to_linear", "//executorch/backends/transforms:decompose_sdpa", diff --git a/backends/qualcomm/aot/python/targets.bzl b/backends/qualcomm/aot/python/targets.bzl index 0133aa73b93..f9dffafed9f 100644 --- a/backends/qualcomm/aot/python/targets.bzl +++ b/backends/qualcomm/aot/python/targets.bzl @@ -55,7 +55,7 @@ def define_common_targets(): "*.h", ]), platforms = (CXX), - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "//executorch/backends/qualcomm/aot/wrappers:wrappers", "//executorch/backends/qualcomm/runtime:logging", diff --git a/backends/qualcomm/aot/wrappers/targets.bzl b/backends/qualcomm/aot/wrappers/targets.bzl index 9c77a637b5e..cbd7ce32427 100644 --- a/backends/qualcomm/aot/wrappers/targets.bzl +++ b/backends/qualcomm/aot/wrappers/targets.bzl @@ -21,7 +21,7 @@ def define_common_targets(): ]), define_static_target = True, platforms = [ANDROID], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()), "fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()), diff --git a/backends/qualcomm/builders/targets.bzl b/backends/qualcomm/builders/targets.bzl index fc7d88781cc..046e2f478dd 100644 --- a/backends/qualcomm/builders/targets.bzl +++ b/backends/qualcomm/builders/targets.bzl @@ -11,9 +11,7 @@ def define_common_targets(): srcs = glob([ "*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/exir/backend:backend_details", "//executorch/exir/backend:compile_spec_schema", diff --git a/backends/qualcomm/partition/targets.bzl b/backends/qualcomm/partition/targets.bzl index 72248a6cebb..67c3cd5fdf4 100644 --- a/backends/qualcomm/partition/targets.bzl +++ b/backends/qualcomm/partition/targets.bzl @@ -11,9 +11,7 @@ def define_common_targets(): srcs = glob([ "*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/exir/backend:backend_details", "//executorch/exir/backend:compile_spec_schema", diff --git a/backends/qualcomm/quantizer/targets.bzl b/backends/qualcomm/quantizer/targets.bzl index e7a94faa652..4247da7b969 100644 --- a/backends/qualcomm/quantizer/targets.bzl +++ b/backends/qualcomm/quantizer/targets.bzl @@ -12,9 +12,7 @@ def define_common_targets(): "*.py", "*/*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/backends/transforms:decompose_sdpa", ], diff --git a/backends/qualcomm/recipes/TARGETS b/backends/qualcomm/recipes/TARGETS index 6a7abfd61c6..dca1e6fd232 100644 --- a/backends/qualcomm/recipes/TARGETS +++ b/backends/qualcomm/recipes/TARGETS @@ -7,10 +7,7 @@ runtime.python_library( srcs = [ "__init__.py", ], - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/export:recipe_registry", ":qnn_recipe_provider", @@ -23,10 +20,7 @@ runtime.python_library( srcs = [ "qnn_recipe_provider.py", ], - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//caffe2:torch", "//executorch/export:lib", @@ -44,10 +38,7 @@ runtime.python_library( srcs = [ "qnn_recipe_types.py", ], - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/export:lib", ], diff --git a/backends/qualcomm/runtime/targets.bzl b/backends/qualcomm/runtime/targets.bzl index 85cece2bae7..978ce339fc2 100644 --- a/backends/qualcomm/runtime/targets.bzl +++ b/backends/qualcomm/runtime/targets.bzl @@ -22,7 +22,7 @@ def define_common_targets(): ], define_static_target = True, platforms = [ANDROID], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()), "fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()), @@ -66,7 +66,7 @@ def define_common_targets(): define_static_target = True, link_whole = True, # needed for executorch/examples/models/llama:main to register QnnBackend platforms = [ANDROID], - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], resources = ({ "qnn_lib": "fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs".format(get_qnn_library_version()), } if include_aot_qnn_lib else { diff --git a/backends/qualcomm/serialization/targets.bzl b/backends/qualcomm/serialization/targets.bzl index c4a40ba0130..01ca7ab0843 100644 --- a/backends/qualcomm/serialization/targets.bzl +++ b/backends/qualcomm/serialization/targets.bzl @@ -21,9 +21,7 @@ def define_common_targets(): resources = { ":qc_compiler_spec_schema": "qc_compiler_spec.fbs", }, - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/exir/backend:backend_details", "//executorch/exir/backend:compile_spec_schema", diff --git a/backends/qualcomm/targets.bzl b/backends/qualcomm/targets.bzl index 2301e6184db..5c604f9837b 100644 --- a/backends/qualcomm/targets.bzl +++ b/backends/qualcomm/targets.bzl @@ -82,7 +82,7 @@ def define_common_targets(): srcs = [], headers = [], define_static_target = True, - visibility = ["@EXECUTORCH_CLIENTS"], + visibility = ["PUBLIC"], deps = [ "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()), "//executorch/runtime/backend:interface", diff --git a/backends/qualcomm/utils/targets.bzl b/backends/qualcomm/utils/targets.bzl index c76ef7f1906..4ec50f0268b 100644 --- a/backends/qualcomm/utils/targets.bzl +++ b/backends/qualcomm/utils/targets.bzl @@ -11,9 +11,7 @@ def define_common_targets(): srcs = glob([ "*.py", ]), - visibility = [ - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/exir/backend:backend_details", "//executorch/exir/backend:compile_spec_schema", diff --git a/backends/test/harness/TARGETS b/backends/test/harness/TARGETS index d4edf9fb248..2799aedb7b5 100644 --- a/backends/test/harness/TARGETS +++ b/backends/test/harness/TARGETS @@ -5,10 +5,7 @@ oncall("executorch") runtime.python_library( name = "tester", srcs = native.glob(["*.py", "stages/*.py"]), - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//executorch/exir:graph_module", ], diff --git a/backends/transforms/targets.bzl b/backends/transforms/targets.bzl index 11a5b26e095..3cda58f6426 100644 --- a/backends/transforms/targets.bzl +++ b/backends/transforms/targets.bzl @@ -36,10 +36,7 @@ def define_common_targets(): runtime.python_library( name = "decompose_sdpa", srcs = ["decompose_sdpa.py"], - visibility = [ - "//executorch/backends/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//caffe2:torch", "//executorch/exir:pass_base", @@ -107,10 +104,7 @@ def define_common_targets(): runtime.python_library( name = "remove_clone_ops", srcs = ["remove_clone_ops.py"], - visibility = [ - "//executorch/backends/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//caffe2:torch", "//executorch/exir:pass_base", @@ -164,12 +158,7 @@ def define_common_targets(): runtime.python_library( name = "duplicate_dynamic_quant_chain", srcs = ["duplicate_dynamic_quant_chain.py"], - visibility = [ - "//executorch/backends/...", - "//executorch/examples/...", - "//executorch/extension/llm/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//caffe2:torch", ], @@ -180,10 +169,7 @@ def define_common_targets(): srcs = [ "convert_dtype_pass.py", ], - visibility = [ - "//executorch/backends/...", - "@EXECUTORCH_CLIENTS", - ], + visibility = ["PUBLIC"], deps = [ "//caffe2:torch", "//executorch/exir:pass_base",