Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
strategy:
fail-fast: false
matrix:
runtime: ["wamr", "wasmtime", "wavm"]
runtime: ["v8", "wamr", "wasmtime", "wavm"]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 7 additions & 0 deletions bazel/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates")
load("@rules_python//python:pip.bzl", "pip_install")
load("@rules_rust//rust:repositories.bzl", "rust_repositories")

def proxy_wasm_cpp_host_dependencies():
protobuf_deps()
rust_repositories()
proxy_wasm_cpp_host_fetch_remote_crates()

pip_install(
name = "v8_python_deps",
extra_pip_args = ["--require-hashes"],
requirements = "@v8//:bazel/requirements.txt",
)
37 changes: 37 additions & 0 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def proxy_wasm_cpp_host_repositories():
Expand Down Expand Up @@ -111,3 +112,39 @@ def proxy_wasm_cpp_host_repositories():
name = "wavm",
actual = "@com_github_wavm_wavm//:wavm_lib",
)

git_repository(
name = "v8",
commit = "a7535a152133bbe43ac2721c3c189749618e2072",
remote = "https://chromium.googlesource.com/v8/v8",
shallow_since = "1639689208 +0000",
patches = ["//:bazel/v8.patch"],
patch_args = ["-p1"],
)

new_git_repository(
name = "trace_event_common",
build_file = "@v8//:bazel/BUILD.trace_event_common",
commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb",
remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git",
shallow_since = "1635355186 -0700",
)

new_git_repository(
name = "zlib",
build_file = "@v8//:bazel/BUILD.zlib",
commit = "efd9399ae01364926be2a38946127fdf463480db",
remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git",
shallow_since = "1638492135 -0800",
)

http_archive(
name = "rules_python",
sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
)

native.bind(
name = "wee8",
actual = "@v8//:wee8",
)
Loading