This repository has been archived by the owner on May 3, 2024. It is now read-only.
forked from viperproject/VerifiedSCION
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
125 lines (113 loc) · 3.15 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
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
115
116
117
118
119
120
121
122
123
124
125
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@io_bazel_rules_go//go:def.bzl", "nogo")
load("//tools/lint:go_config.bzl", "go_lint_config")
load("//tools/lint/python:flake8_config.bzl", "flake8_lint_config")
load("//:nogo.bzl", "nogo_deps")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@cgrindel_bazel_starlib//updatesrc:defs.bzl", "updatesrc_update_all")
# gazelle:prefix github.com/scionproto/scion
# gazelle:map_kind go_library go_library //tools/lint:go.bzl
# gazelle:map_kind go_test go_test //tools/lint:go.bzl
# gazelle:exclude docker/_build/**
# gazelle:exclude proto/**
# gazelle:exclude doc/**
# gazelle:exclude rules_openapi/tools/node_modules/**
# gazelle:exclude tools/lint/**/testdata/src/**
gazelle(name = "gazelle")
go_lint_config(
name = "go_lint_config",
exclude_filter = [
"mock_",
".pb.go",
".gen.go",
],
visibility = [
"//visibility:public",
],
)
flake8_lint_config(
name = "flake8_lint_config",
config_file = ".flake8",
visibility = [
"//visibility:public",
],
)
# Add a build flag to enable bundling the management API documentation with the
# binaries. This can be enabled by passing --//:mgmtapi_bundle_doc=true when
# invoking bazel
bool_flag(
name = "mgmtapi_bundle_doc",
build_setting_default = False,
)
config_setting(
name = "mgmtapi_bundle_doc_build",
flag_values = {":mgmtapi_bundle_doc": "true"},
)
# This is the SCION distributable package. It contains all (binary) services,
# and the required tools.
pkg_tar(
name = "scion",
srcs = [
"//control/cmd/control",
"//daemon/cmd/daemon",
"//dispatcher/cmd/dispatcher",
"//gateway/cmd/gateway",
"//router/cmd/router",
"//scion-pki/cmd/scion-pki",
"//scion/cmd/scion",
"//tools/pathdb_dump",
],
mode = "0755",
package_dir = "",
)
# This contains all of the binaries needed to run CI (integration & acceptance
# tests)
pkg_tar(
name = "scion-ci",
srcs = [
"//acceptance/cmd/sig_ping_acceptance",
"//pkg/private/xtest/graphupdater",
"//tools/braccept",
"//tools/buildkite/cmd/buildkite_artifacts",
"//tools/end2end",
"//tools/end2end_integration",
"//tools/pktgen/cmd/pktgen",
"//tools/scion_integration",
"//tools/udpproxy",
],
mode = "0755",
package_dir = "",
)
# This contains all of the binaries needed to run the topology generator.
pkg_tar(
name = "scion-topo",
srcs = [
"//scion-pki/cmd/scion-pki",
],
mode = "0755",
package_dir = "",
)
# Nogo - Go code analysis tool
nogo(
name = "nogo",
config = "nogo.json",
visibility = ["//visibility:public"],
deps = nogo_deps,
)
buildifier(
name = "buildifier",
)
buildifier(
name = "buildifier_check",
mode = "check",
)
# Runs all update_src targets in this Workspace.
updatesrc_update_all(
name = "update_all",
targets_to_run = [
"//doc/command:copy_scion",
"//doc/command:copy_scion-pki",
],
)