xref: /aosp_15_r20/external/executorch/extension/kernel_util/targets.bzl (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2
3def define_common_targets():
4    """Defines targets that should be shared between fbcode and xplat.
5
6    The directory containing this targets.bzl file should also contain both
7    TARGETS and BUCK files that call this function.
8    """
9
10    runtime.cxx_library(
11        name = "kernel_util",
12        srcs = [],
13        exported_headers = [
14            "make_boxed_from_unboxed_functor.h",
15            "meta_programming.h",
16            "type_list.h",
17        ],
18        visibility = [
19            "//executorch/...",
20            "@EXECUTORCH_CLIENTS",
21        ],
22        exported_deps = [
23            "//executorch/runtime/core:core",
24            "//executorch/runtime/core:evalue",
25            "//executorch/runtime/kernel:kernel_includes",
26            "//executorch/runtime/kernel:kernel_runtime_context",
27            "//executorch/runtime/kernel:operator_registry",
28        ],
29    )
30