forked from google/asylo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
48 lines (42 loc) · 1.75 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
#
# Copyright 2018 Asylo 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.
#
# Bazel workspace file for Asylo builds.
workspace(name = "com_google_asylo")
load("//asylo/bazel:asylo_deps.bzl", "asylo_deps",
"asylo_backend_deps", "asylo_go_deps", "asylo_testonly_deps")
asylo_deps()
asylo_backend_deps()
asylo_testonly_deps()
# The following two lines are not strictly necessary, since Asylo
# is suited for multiple backends. In its current form, SGX is the only backend
# available, so these following two lines are default included in the WORKSPACE
# for ease of use.
load("//asylo/bazel:sgx_deps.bzl", "sgx_deps")
sgx_deps()
# The grpc dependency is defined by asylo_deps, and load must be top-level,
# so this has to come after asylo_deps().
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
# The go targets in Asylo are non-critical, so these dependencies need not be
# pulled in by Asylo users.
asylo_go_deps()
# io_bazel_rules is defined by asylo_go_deps(). Skylark loads cannot be
# produced by macros, so this must come after asylo_go_deps() in WORKSPACE.
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies",
"go_register_toolchains")
# Load go bazel rules and toolchain.
go_rules_dependencies()
go_register_toolchains()