WORKSPACE 1.97 KB
Newer Older
1 2 3 4 5 6
# Copyright 2021 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

workspace(name = "v8")

7
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
8

9 10
http_archive(
    name = "bazel_skylib",
11
    sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
12 13 14 15 16
    urls = [
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
    ],
)
17

18
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
19

20
bazel_skylib_workspace()
21

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
http_archive(
    name = "rules_python",
    sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502",
    strip_prefix = "rules_python-0.6.0",
    url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz",
)

load("@rules_python//python:pip.bzl", "pip_install")

pip_install(
    name = "v8_python_deps",
    extra_pip_args = ["--require-hashes"],
    requirements = "//:bazel/requirements.txt",
)

37
new_local_repository(
38
    name = "com_googlesource_chromium_zlib",
39
    build_file = "bazel/BUILD.zlib",
40
    path = "third_party/zlib",
41
)
Victor Gomes's avatar
Victor Gomes committed
42

43 44 45 46 47 48 49 50 51 52
bind(
    name = "zlib",
    actual = "@com_googlesource_chromium_zlib//:zlib",
)

bind(
    name = "zlib_compression_utils",
    actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils",
)

Victor Gomes's avatar
Victor Gomes committed
53
new_local_repository(
54
    name = "com_googlesource_chromium_icu",
Victor Gomes's avatar
Victor Gomes committed
55
    build_file = "bazel/BUILD.icu",
56
    path = "third_party/icu",
Victor Gomes's avatar
Victor Gomes committed
57
)
58

59 60 61 62 63
bind(
    name = "icu",
    actual = "@com_googlesource_chromium_icu//:icu",
)

64 65 66
new_local_repository(
    name = "com_googlesource_chromium_base_trace_event_common",
    build_file = "bazel/BUILD.trace_event_common",
67
    path = "base/trace_event/common",
68
)
69 70 71 72 73

bind(
    name = "base_trace_event_common",
    actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common",
)