File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ load("@rules_cc//cc:defs.bzl", "cc_library")
2
+
3
+ licenses(["notice"]) # Apache 2
4
+
5
+ cc_library(
6
+ name = "boost_headers",
7
+ hdrs = glob(["include/boost/**"]),
8
+ visibility = ["//visibility:public"],
9
+ includes = ['include'],
10
+ )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ filegroup(
12
12
cmake(
13
13
name = "wasmedge_lib",
14
14
cache_entries = {
15
+ "Boost_NO_SYSTEM_PATHS": "TRUE",
16
+ "BOOST_INCLUDEDIR": "$EXT_BUILD_DEPS/copy_boost/",
15
17
"CMAKE_BUILD_TYPE": "Release",
16
18
"WASMEDGE_BUILD_AOT_RUNTIME": "OFF",
17
19
"WASMEDGE_BUILD_SHARED_LIB": "OFF",
24
26
out_static_libs = [
25
27
"libwasmedge_c.a",
26
28
],
29
+ deps = [
30
+ '@boost//:boost_headers',
31
+ ],
27
32
)
Original file line number Diff line number Diff line change @@ -112,6 +112,14 @@ def proxy_wasm_cpp_host_repositories():
112
112
actual = "@com_github_wavm_wavm//:wavm_lib" ,
113
113
)
114
114
115
+ http_archive (
116
+ name = "boost" ,
117
+ build_file = "@proxy_wasm_cpp_host//bazel/external:boost.BUILD" ,
118
+ sha256 = "7bd7ddceec1a1dfdcbdb3e609b60d01739c38390a5f956385a12f3122049f0ca" ,
119
+ strip_prefix = "boost_1_76_0" ,
120
+ url = "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz" ,
121
+ )
122
+
115
123
http_archive (
116
124
name = "com_github_wasmedge_wasmedge" ,
117
125
build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD" ,
You can’t perform that action at this time.
0 commit comments