aboutsummaryrefslogtreecommitdiff
path: root/lib/blake2/BUILD.bazel
blob: 4723ae6e8e2a5c0bcd37e1f329785e5dd1465a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package(default_visibility = ["//visibility:public"])

cc_library(
    name = "blake2s",
    srcs = ["blake2s.c"],
    hdrs = ["include/blake2s.h"],
    includes = ["include"],
    deps = select({
        "@platforms//os:none": ["//lib/libk:k"],
        "//conditions:default": [],
    }),
)

cc_test(
    name = "test_blake2s",
    srcs = [
        "blake2s_kat.h",
        "blake2s_selftest.cc",
    ],
    target_compatible_with = select({
        "@platforms//os:none": ["@platforms//:incompatible"],
        "//conditions:default": [],
    }),
    deps = [
        "//lib/blake2:blake2s",
        "@googletest//:gtest_main",
    ],
)