forked from nodejs/ncrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
37 lines (34 loc) · 900 Bytes
/
BUILD.bazel
File metadata and controls
37 lines (34 loc) · 900 Bytes
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
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"]),
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"],
}),
)