2019-03-19 00:21:48 +08:00
|
|
|
# Copyright 2019 Google LLC. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
workspace(name = "com_google_sandboxed_api")
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2019-11-25 20:31:37 +08:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
2019-06-27 19:27:37 +08:00
|
|
|
load("//sandboxed_api/bazel:sapi_deps.bzl", "sapi_deps")
|
2019-03-19 00:21:48 +08:00
|
|
|
|
2019-06-27 19:27:37 +08:00
|
|
|
# Load common dependencies, then Protobuf's
|
|
|
|
sapi_deps()
|
2019-03-19 00:21:48 +08:00
|
|
|
|
2019-06-27 19:27:37 +08:00
|
|
|
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
2019-03-19 00:21:48 +08:00
|
|
|
|
2019-06-27 19:27:37 +08:00
|
|
|
protobuf_deps()
|
2019-03-19 00:21:48 +08:00
|
|
|
|
2019-06-27 19:27:37 +08:00
|
|
|
# zlib, only needed for examples
|
2019-03-19 00:21:48 +08:00
|
|
|
http_archive(
|
|
|
|
name = "net_zlib",
|
|
|
|
build_file = "//sandboxed_api:bazel/external/zlib.BUILD",
|
|
|
|
patch_args = ["-p1"],
|
|
|
|
# This is a patch that removes the "OF" macro that is used in zlib function
|
|
|
|
# definitions. It is necessary, because libclang, the library used by the
|
|
|
|
# interface generator to parse C/C++ files contains a bug that manifests
|
|
|
|
# itself with macros like this.
|
|
|
|
# We are investigating better ways to avoid this issue. For most "normal"
|
|
|
|
# C and C++ headers, parsing just works.
|
|
|
|
patches = ["//sandboxed_api:bazel/external/zlib.patch"],
|
2019-11-25 20:31:37 +08:00
|
|
|
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", # 2017-01-15
|
2019-03-19 00:21:48 +08:00
|
|
|
strip_prefix = "zlib-1.2.11",
|
2019-11-25 20:31:37 +08:00
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz",
|
|
|
|
"https://www.zlib.net/zlib-1.2.11.tar.gz",
|
|
|
|
],
|
2019-03-19 00:21:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# GoogleTest/GoogleMock
|
2019-11-25 20:31:37 +08:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
2019-03-19 00:21:48 +08:00
|
|
|
name = "com_google_googletest",
|
2019-11-25 20:31:37 +08:00
|
|
|
sha256 = "ba5b04a4849246e7c16ba94227eed46486ef942f61dc8b78609732543c19c9f4", # 2019-11-21
|
|
|
|
strip_prefix = "googletest-200ff599496e20f4e39566feeaf2f6734ca7570f",
|
|
|
|
urls = ["https://github.com/google/googletest/archive/200ff599496e20f4e39566feeaf2f6734ca7570f.zip"],
|
2019-03-19 00:21:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Google Benchmark
|
2019-11-25 20:31:37 +08:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
2019-03-19 00:21:48 +08:00
|
|
|
name = "com_google_benchmark",
|
2019-11-25 20:31:37 +08:00
|
|
|
sha256 = "9067442aa447e54cc144160420daf37fcd0663ccf3057ce2d87b9d7f6ad45d3f", # 2019-11-05
|
|
|
|
strip_prefix = "benchmark-c50ac68c50ff8da3827cd6720792117910d85666",
|
|
|
|
urls = ["https://github.com/google/benchmark/archive/c50ac68c50ff8da3827cd6720792117910d85666.zip"],
|
2019-03-19 00:21:48 +08:00
|
|
|
)
|