• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "dumb_fht",
11        srcs = ["dumb_fht.c"],
12        exported_headers = ["dumb_fht.h"],
13        visibility = ["@EXECUTORCH_CLIENTS"],
14    )
15
16    runtime.cxx_library(
17        name = "fht",
18        srcs = select({
19            "DEFAULT": [],
20            "ovr_config//cpu:arm64": ["fht_neon.c"],
21            "ovr_config//cpu:x86_64": ["fht_avx.c"],
22        }),
23        exported_headers = ["fht.h"],
24        visibility = ["@EXECUTORCH_CLIENTS"],
25    )
26
27    runtime.cxx_binary(
28        name = "test_float",
29        srcs = ["test_float.c"],
30        deps = [
31            ":dumb_fht",
32            ":fht",
33        ],
34    )
35