File tree Expand file tree Collapse file tree 6 files changed +38
-2
lines changed Expand file tree Collapse file tree 6 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -35,5 +35,6 @@ cc_library(
35
35
"@com_google_protobuf//:protobuf_lite" ,
36
36
"@proxy_wasm_cpp_sdk//:api_lib" ,
37
37
"@wasm_c_api//:wasmtime_lib" ,
38
+ "@wamr//:wamr_lib" ,
38
39
],
39
40
)
Original file line number Diff line number Diff line change
1
+ licenses(["notice"]) # Apache 2
2
+
3
+ package(default_visibility = ["//visibility:public"])
4
+
5
+ cc_import(
6
+ name = "linklib",
7
+ shared_library = "library/linux-classic_interp-multi_module-dbg/libiwasm.so",
8
+ )
9
+
10
+ cc_library(
11
+ name = "headlib",
12
+ hdrs = glob(["include/*.h"]),
13
+ srcs = glob(["include/*.c"]),
14
+ include_prefix = "wamr",
15
+ )
16
+
17
+ cc_library(
18
+ name = "wamr_lib",
19
+ defines = ["WASM_WAMR"],
20
+ deps = [
21
+ "linklib",
22
+ "headlib",
23
+ ],
24
+ )
Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ def proxy_wasm_cpp_host_repositories():
44
44
url = "https://github.com/bytecodealliance/wasmtime/archive/v0.25.0.tar.gz" ,
45
45
)
46
46
47
+ http_archive (
48
+ name = "wamr" ,
49
+ build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD" ,
50
+ sha256 = "fb2ca3b0322becb8c62de626181ef66a7be15e36000913f0ad4bf51d4619891b" ,
51
+ strip_prefix = "wamr_pre_release" ,
52
+ url = "https://github.com/lum1n0us/wasm-micro-runtime/releases/download/WAMR-01-29-2021/wamr_pre_release.zip" ,
53
+ )
54
+
47
55
http_archive (
48
56
name = "wasm_c_api" ,
49
57
build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD" ,
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include " src/common/types.h"
16
- #include " wasm_c_api.h"
16
+ #include " wamr/include/ wasm_c_api.h"
17
17
18
18
namespace proxy_wasm {
19
19
namespace wamr {
Original file line number Diff line number Diff line change 30
30
#include < vector>
31
31
32
32
#include " src/wamr/types.h"
33
- #include " wasm_c_api.h"
33
+ #include " wamr/include/ wasm_c_api.h"
34
34
35
35
namespace proxy_wasm {
36
36
namespace wamr {
Original file line number Diff line number Diff line change 32
32
#if defined(WASM_WASMTIME)
33
33
#include " include/proxy-wasm/wasmtime.h"
34
34
#endif
35
+ #if defined(WASM_WASMTIME)
36
+ #include " include/proxy-wasm/wamr.h"
37
+ #endif
35
38
36
39
namespace proxy_wasm {
37
40
You can’t perform that action at this time.
0 commit comments