xref: /aosp_15_r20/external/executorch/extension/llm/custom_ops/spinquant/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    runtime.cxx_library(
10        name = "fast_hadamard_transform",
11        exported_headers = [
12            "fast_hadamard_transform.h",
13            "fast_hadamard_transform_special.h",
14        ],
15        srcs = [
16            "fast_hadamard_transform.cpp",
17        ],
18        exported_deps = [
19            "//executorch/extension/llm/custom_ops/spinquant/third-party/FFHT:fht",
20        ],
21        visibility = ["@EXECUTORCH_CLIENTS"],
22    )
23