xref: /aosp_15_r20/external/executorch/extension/aten_util/test/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_test(
11        name = "aten_bridge_test",
12        srcs = [
13            "aten_bridge_test.cpp",
14            "make_aten_functor_from_et_functor_test.cpp",
15        ],
16        deps = [
17            "//executorch/runtime/core:core",
18            "//executorch/runtime/core/exec_aten:lib",
19            "//executorch/runtime/kernel:operator_registry",
20            "//executorch/extension/aten_util:aten_bridge",
21            "//executorch/runtime/core/exec_aten/testing_util:tensor_util",
22        ],
23        external_deps = [
24            "libtorch",
25            "gtest_aten",
26        ],
27    )
28