-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathBUILD.bazel
More file actions
44 lines (41 loc) · 1.12 KB
/
BUILD.bazel
File metadata and controls
44 lines (41 loc) · 1.12 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
bool_flag(
name = "bssl_libdecrepit_missing",
build_setting_default = False,
)
config_setting(
name = "cfg_bssl_libdecrepit_missing",
flag_values = {
"bssl_libdecrepit_missing": "True",
},
)
cc_library(
name = "ncrypto",
srcs = glob(["src/*.cpp"]),
hdrs = glob(["include/*.h", "include/ncrypto/*.h"]),
copts = [
"-Werror",
"-Wextra",
"-Wno-unused-parameter",
"-Wimplicit-fallthrough",
"-Wno-deprecated-declarations", # OpenSSL 3.0 deprecates many APIs we intentionally use
],
includes = ["include"],
local_defines = {
"NCRYPTO_BSSL_LIBDECREPIT_MISSING": select(
{
":cfg_bssl_libdecrepit_missing": 1,
"//conditions:default": 0,
},
),
},
visibility = ["//visibility:public"],
deps = [
"@ssl",
"@ssl//:crypto",
] + select({
":cfg_bssl_libdecrepit_missing": [],
"//conditions:default": ["@ssl//:decrepit"],
}),
)