load("@fbsource//tools/build_defs/dirsync:fb_dirsync_cpp_library.bzl", "fb_dirsync_cpp_library")
load("@fbsource//xplat/pfh/triage_InfrastructureSupermoduleOptou:DEFS.bzl", "triage_InfrastructureSupermoduleOptou")
load(
    "../../defs.bzl",
    "folly_xplat_library",
)

oncall("fbcode_entropy_wardens_folly")

fb_dirsync_cpp_library(
    name = "contains",
    srcs = ["Contains.cpp"],
    headers = ["Contains.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    deps = [
        "//folly/algorithm/simd/detail:simd_contains_impl",
    ],
    exported_deps = [
        "//folly:c_portability",
        "//folly/algorithm/simd/detail:traits",
    ],
)

fb_dirsync_cpp_library(
    name = "find_first_of",
    headers = ["find_first_of.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    exported_deps = [
        ":movemask",
        "//folly:portability",
        "//folly:utility",
        "//folly/container:span",
        "//folly/container:sparse_byte_set",
        "//folly/lang:align",
        "//folly/lang:bits",
        "//folly/lang:hint",
    ],
)

fb_dirsync_cpp_library(
    name = "find_first_of_extra",
    headers = ["find_first_of_extra.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    exported_deps = [
        "//folly:range",
        "//folly/container:span",
    ],
    exported_external_deps = [
        "tbb",
    ],
)

fb_dirsync_cpp_library(
    name = "find_fixed",
    headers = ["FindFixed.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    exported_deps = [
        ":movemask",
        "//folly:portability",
        "//folly/algorithm/simd/detail:traits",
    ],
)

fb_dirsync_cpp_library(
    name = "ignore",
    headers = ["Ignore.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    exported_deps = [
        "//folly/lang:bits",
    ],
)

fb_dirsync_cpp_library(
    name = "movemask",
    headers = ["Movemask.h"],
    feature = triage_InfrastructureSupermoduleOptou,
    use_raw_headers = True,
    xplat_impl = folly_xplat_library,
    exported_deps = [
        ":ignore",
        "//folly:portability",
        "//folly/lang:bits",
    ],
)
