forked from project-oak/oak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
114 lines (99 loc) · 3.74 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#
# Copyright 2018 The Project Oak Authors
#
# 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 = "oak")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive(
name = "com_google_absl",
urls = [
# Head commit on 2019-05-23.
"https://github.com/abseil/abseil-cpp/archive/27c30ec671cb7b5ba84c4e79feff7fd0b0ac6338.zip"],
strip_prefix = "abseil-cpp-27c30ec671cb7b5ba84c4e79feff7fd0b0ac6338",
sha256 = "cd4dd948bfe3655269656277eb83dbeefcb1368d7c6b329e93cc8ca9a688e5e6",
)
# Asylo Framework.
http_archive(
name = "com_google_asylo",
urls = ["https://github.com/google/asylo/archive/v0.4.0.tar.gz"],
strip_prefix = "asylo-0.4.0",
sha256 = "9dd8063d1a8002f6cc729f0115e2140a2eb1b14a10c111411f6b554e14ee739c",
)
# Google Test
git_repository(
name = "gtest",
remote = "https://github.com/google/googletest",
commit = "2fe3bd994b3189899d93f1d5a881e725e046fdc2",
)
# Google Protocol Buffers.
http_archive(
name = "com_google_protobuf",
urls = [
"https://github.com/protocolbuffers/protobuf/archive/v3.7.1.tar.gz",
],
strip_prefix = "protobuf-3.7.1",
sha256 = "f1748989842b46fa208b2a6e4e2785133cfcc3e4d43c17fecb023733f0f5443f",
)
# Google APIs for Cloud Spanner protos.
# TODO: Switch from fork after https://github.com/googleapis/googleapis/pull/553 is merged.
http_archive(
name = "com_google_googleapis",
urls = [
"https://github.com/michael-kernel-sanders/googleapis/archive/66d43496b46c26915d7d37302cddbd81481302d7.zip"
],
strip_prefix = "googleapis-66d43496b46c26915d7d37302cddbd81481302d7",
sha256 = "3a426981242af9c05dbc3cdfc72f6627516232bbccaebaab1711397606184973",
)
# TODO: Create a deps function for the googleapis repo.
http_archive(
name = "io_grpc_grpc_java",
urls = [
"https://github.com/grpc/grpc-java/archive/v1.20.0.zip",
],
strip_prefix = "grpc-java-1.20.0",
sha256 = "9d23d9fec84e24bd3962f5ef9d1fd61ce939d3f649a22bcab0f19e8167fae8ef",
)
# TODO: Create a deps function for the googleapis repo.
http_archive(
name = "com_google_api_codegen",
urls = ["https://github.com/googleapis/gapic-generator/archive/8e930b79e846b9d4876462be9dc4c1dbc04e2903.zip"],
strip_prefix = "gapic-generator-8e930b79e846b9d4876462be9dc4c1dbc04e2903",
sha256 = "ba19948ebc4ea39358ba07fc0253f8927d7a2c9ba3462e8f34faad7ad5ac4142",
)
# WebAssembly Binary Toolkit (forked by tiziano88).
git_repository(
name = "wabt",
commit = "910d762920ac7575d7e3e04791a9d9c0ae07f8cd",
remote = "https://github.com/daviddrysdale/wabt",
)
load(
"@com_google_asylo//asylo/bazel:asylo_deps.bzl",
"asylo_deps",
"asylo_go_deps",
)
asylo_deps()
asylo_go_deps()
load("@com_google_asylo//asylo/bazel:sgx_deps.bzl", "sgx_deps")
sgx_deps()
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
# clang + llvm 8.0
http_archive(
name = "clang_llvm",
build_file = "//toolchain:clang_llvm.BUILD",
strip_prefix = "clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04",
url = "http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz",
sha256 = "0f5c314f375ebd5c35b8c1d5e5b161d9efaeff0523bac287f8b4e5b751272f51"
)