1# Copyright 2021 the V8 project authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5workspace(name = "v8") 6 7load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 8 9http_archive( 10 name = "bazel_skylib", 11 sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", 12 urls = [ 13 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", 14 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", 15 ], 16) 17 18load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") 19 20bazel_skylib_workspace() 21 22http_archive( 23 name = "rules_python", 24 sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", 25 strip_prefix = "rules_python-0.6.0", 26 url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", 27) 28 29load("@rules_python//python:pip.bzl", "pip_install") 30 31pip_install( 32 name = "v8_python_deps", 33 extra_pip_args = ["--require-hashes"], 34 requirements = "//:bazel/requirements.txt", 35) 36 37new_local_repository( 38 name = "com_googlesource_chromium_zlib", 39 build_file = "bazel/BUILD.zlib", 40 path = "third_party/zlib", 41) 42 43bind( 44 name = "zlib", 45 actual = "@com_googlesource_chromium_zlib//:zlib", 46) 47 48bind( 49 name = "zlib_compression_utils", 50 actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils", 51) 52 53new_local_repository( 54 name = "com_googlesource_chromium_icu", 55 build_file = "bazel/BUILD.icu", 56 path = "third_party/icu", 57) 58 59bind( 60 name = "icu", 61 actual = "@com_googlesource_chromium_icu//:icu", 62) 63 64new_local_repository( 65 name = "com_googlesource_chromium_base_trace_event_common", 66 build_file = "bazel/BUILD.trace_event_common", 67 path = "base/trace_event/common", 68) 69 70bind( 71 name = "base_trace_event_common", 72 actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", 73) 74