-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathBUILD
67 lines (57 loc) · 1.53 KB
/
BUILD
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
load("@proxy_wasm_cpp_sdk//bazel:defs.bzl", "proxy_wasm_cc_binary")
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
licenses(["notice"]) # Apache 2
proxy_wasm_cc_binary(
name = "http_wasm_example.wasm",
srcs = ["http_wasm_example.cc"],
copts = ["-std=c++17"],
)
proxy_wasm_cc_binary(
name = "http_re_example.wasm",
srcs = ["http_re_example.cc"],
copts = ["-std=c++17"],
deps = ["@com_google_re2//:re2"],
)
proxy_wasm_cc_binary(
name = "http_proto_example_none.wasm",
srcs = ["http_proto_example.cc"],
copts = ["-std=c++17"],
)
proto_library(
name = "example_proto",
srcs = ["example.proto"],
deps = ["@com_google_protobuf//:struct_proto"],
)
cc_proto_library(
name = "example_proto_cc",
deps = [":example_proto"],
)
cc_library(
name = "http_proto_example_lite_lib",
srcs = ["http_proto_example.cc"],
copts = ["-std=c++17"],
deps = [
":example_proto_cc",
"@proxy_wasm_cpp_sdk//:proxy_wasm_intrinsics_lite",
],
alwayslink = 1,
)
proxy_wasm_cc_binary(
name = "http_proto_example_lite.wasm",
deps = [":http_proto_example_lite_lib"],
)
cc_library(
name = "http_proto_example_full_lib",
srcs = ["http_proto_example.cc"],
copts = ["-std=c++17"],
deps = [
":example_proto_cc",
"@proxy_wasm_cpp_sdk//:proxy_wasm_intrinsics_full",
],
alwayslink = 1,
)
proxy_wasm_cc_binary(
name = "http_proto_example_full.wasm",
deps = [":http_proto_example_full_lib"],
)