We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0e567 commit 56715afCopy full SHA for 56715af
1 file changed
third_party/hsm/BUILD.softhsm2.bazel
@@ -14,12 +14,14 @@ filegroup(
14
cmake(
15
name = "softhsm2",
16
build_args = ["-j"],
17
+ build_data = ["@openssl//:gen_dir"],
18
cache_entries = {
19
"ENABLE_GOST": "OFF",
20
"ENABLE_P11_KIT": "OFF",
21
"ENABLE_STATIC": "OFF",
22
"ENABLE_ECC": "ON",
23
"WITH_CRYPTO_BACKEND": "openssl",
24
+ "OPENSSL_ROOT_DIR": "${OPENSSL}/install",
25
26
# This build is for tests only.
27
# "CMAKE_BUILD_TYPE": "Debug",
@@ -38,9 +40,13 @@ cmake(
38
40
# "-DDEBUG_LOG_STDERR",
39
41
# "-DSOFTHSM_LOG_FUNCTION_NAME",
42
],
43
+ env = {
44
+ "OPENSSL": "$$(dirname $(execpath @openssl//:gen_dir))",
45
+ },
46
lib_source = ":all_srcs",
47
out_binaries = ["softhsm2-util"],
48
out_shared_libs = ["softhsm/libsofthsm2.so"],
49
+ deps = ["@openssl//:ssl"],
50
)
51
52
filegroup(
0 commit comments