-
Notifications
You must be signed in to change notification settings - Fork 161
/
BUILD.bazel
47 lines (43 loc) · 1.28 KB
/
BUILD.bazel
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
load("@pip3_deps//:requirements.bzl", "requirement")
load("//tools/lint:go.bzl", "go_library")
sh_binary(
name = "docker_ip",
srcs = ["docker-ip"],
visibility = ["//visibility:public"],
)
# For some reason, gazelle insists to referring to the non-existing :go_default_library otherwise
# gazelle:resolve go github.com/google/go-containerregistry/cmd/registry @com_github_google_go_containerregistry//cmd/registry:registry_lib
go_library(
name = "go_default_library",
srcs = ["tools.go"],
importpath = "github.com/scionproto/scion/tools",
visibility = ["//visibility:public"],
deps = ["@com_github_google_go_containerregistry//cmd/registry:registry_lib"],
)
py_binary(
name = "gomocks",
srcs = ["gomocks.py"],
main = "gomocks.py",
deps = [
requirement("plumbum"),
],
)
py_binary(
name = "topogen",
srcs = ["topogen.py"],
data = [
"//scion-pki/cmd/scion-pki",
"//tools:docker_ip",
],
main = "topogen.py",
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:public"],
deps = [
"//tools/topology:py_default_library",
"@bazel_tools//tools/python/runfiles",
requirement("toml"),
requirement("plumbum"),
requirement("pyyaml"),
],
)