@@ -5,50 +5,76 @@ package(default_visibility = ["//visibility:public"])
5
5
cc_library (
6
6
name = "include" ,
7
7
hdrs = [
8
- "include/proxy-wasm/context.h" ,
9
8
"include/proxy-wasm/compat.h" ,
10
- "include/proxy-wasm/exports.h" ,
11
- "include/proxy-wasm/null.h" ,
12
- "include/proxy-wasm/null_plugin.h" ,
13
- "include/proxy-wasm/null_vm.h" ,
14
- "include/proxy-wasm/null_vm_plugin.h" ,
15
- "include/proxy-wasm/v8.h" ,
16
- "include/proxy-wasm/wasm.h" ,
9
+ "include/proxy-wasm/context.h" ,
17
10
"include/proxy-wasm/wasm_vm.h" ,
18
- "include/proxy-wasm/wasm_api_impl.h" ,
19
11
"include/proxy-wasm/word.h" ,
20
12
],
21
- copts = ["-std=c++14" ],
22
13
deps = [
23
14
"@proxy_wasm_cpp_sdk//:common_lib" ,
24
15
],
25
16
)
26
17
18
+ # TODO: remove when dependent projects have been upgraded.
27
19
cc_library (
28
- name = "lib" ,
29
- srcs = [
30
- "src/exports.cc" ,
31
- "src/foreign.cc" ,
32
- "src/context.cc" ,
33
- "src/wasm.cc" ,
34
- "src/base64.cc" ,
35
- "src/base64.h" ,
36
- "src/v8/v8.cc" ,
37
- "src/null/null.cc" ,
38
- "src/null/null_plugin.cc" ,
39
- "src/null/null_vm.cc" ,
20
+ name = "include14" ,
21
+ hdrs = [
22
+ "include/proxy-wasm/compat.h" ,
23
+ "include/proxy-wasm/context.h" ,
24
+ "include/proxy-wasm/wasm_vm.h" ,
25
+ "include/proxy-wasm/word.h" ,
40
26
],
41
- copts = ["-std=c++14" ],
42
27
deps = [
43
- ":include" ,
44
- "@proxy_wasm_cpp_sdk//:api_lib" ,
45
28
"@proxy_wasm_cpp_sdk//:common_lib" ,
46
- "@envoy//external:abseil_flat_hash_map" ,
47
- "@envoy//external:abseil_strings" ,
48
- "@envoy//external:abseil_optional" ,
49
- "@envoy//external:zlib" ,
50
- "@boringssl//:ssl" ,
51
- "@envoy//external:wee8" ,
52
- "@envoy//external:protobuf" ,
29
+ ],
30
+ )
31
+
32
+ cc_test (
33
+ name = "wasm_vm_test" ,
34
+ srcs = ["wasm_vm_test.cc" ],
35
+ copts = ["-std=c++17" ],
36
+ deps = [
37
+ ":include" ,
38
+ "@com_google_googletest//:gtest" ,
39
+ "@com_google_googletest//:gtest_main" ,
40
+ ],
41
+ )
42
+
43
+ cc_test (
44
+ name = "context_test" ,
45
+ srcs = ["context_test.cc" ],
46
+ deps = [
47
+ ":include" ,
48
+ "@com_google_googletest//:gtest" ,
49
+ "@com_google_googletest//:gtest_main" ,
50
+ ],
51
+ )
52
+
53
+ # TODO: remove when dependent projects have been upgraded.
54
+ cc_test (
55
+ name = "wasm_vm_14_test" ,
56
+ srcs = ["wasm_vm_test.cc" ],
57
+ copts = ["-std=c++14" ],
58
+ deps = [
59
+ ":include14" ,
60
+ "@com_google_absl//absl/base" ,
61
+ "@com_google_absl//absl/strings:strings" ,
62
+ "@com_google_absl//absl/types:optional" ,
63
+ "@com_google_googletest//:gtest" ,
64
+ "@com_google_googletest//:gtest_main" ,
65
+ ],
66
+ )
67
+
68
+ cc_test (
69
+ name = "context_14_test" ,
70
+ srcs = ["context_test.cc" ],
71
+ copts = ["-std=c++14" ],
72
+ deps = [
73
+ ":include14" ,
74
+ "@com_google_absl//absl/base" ,
75
+ "@com_google_absl//absl/strings:strings" ,
76
+ "@com_google_absl//absl/types:optional" ,
77
+ "@com_google_googletest//:gtest" ,
78
+ "@com_google_googletest//:gtest_main" ,
53
79
],
54
80
)
0 commit comments