-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathBUILD
More file actions
43 lines (39 loc) · 1.19 KB
/
BUILD
File metadata and controls
43 lines (39 loc) · 1.19 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
load("//:plugins.bzl", "proxy_wasm_plugin_cpp", "proxy_wasm_plugin_go", "proxy_wasm_plugin_rust", "proxy_wasm_tests")
licenses(["notice"]) # Apache 2
proxy_wasm_plugin_cpp(
name = "plugin_cpp.wasm",
srcs = ["plugin.cc"],
deps = [
"@jwt_verify_lib//:jwt_verify_lib",
"//:boost_exception",
"@boost//:url",
],
linkopts = [
# BoringSSL crypto assumes -pthread is OK to use:
# https://github.com/google/boringssl/blob/9ac494a171014fa0f06dbf2b0e08abf1d7ec85aa/BUILD.bazel#L87
#
# Using -pthread results in linker errors like:
# "error: --shared-memory is disallowed by lto.tmp because it was not
# compiled with 'atomics' or 'bulk-memory' features."
#
# Override the -pthread option to avoid the error.
# Consider moving this to ProxyWasmCppSdk.
"-sUSE_PTHREADS=0",
],
)
proxy_wasm_plugin_go(
name = "plugin_go.wasm",
srcs = ["plugin.go"],
deps = [
"@com_github_golang_jwt_jwt_v5//:jwt",
],
)
proxy_wasm_tests(
name = "tests",
config = ":publickey.pem",
plugins = [
":plugin_cpp.wasm",
":plugin_go.wasm",
],
tests = ":tests.textpb",
)