aboutsummaryrefslogtreecommitdiff
path: root/bazel/constants.go
blob: b10f256f0f2c4ef8770d1acdfd2ea397a86fb403 (plain)
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
package bazel

type RunName string

// Below is a list bazel execution run names used through out the
// Platform Build systems. Each run name represents an unique key
// to query the bazel metrics.
const (
	// Perform a bazel build of the phony root to generate symlink forests
	// for dependencies of the bazel build.
	BazelBuildPhonyRootRunName = RunName("bazel-build-phony-root")

	// Perform aquery of the bazel build root to retrieve action information.
	AqueryBuildRootRunName = RunName("aquery-buildroot")

	// Perform cquery of the Bazel build root and its dependencies.
	CqueryBuildRootRunName = RunName("cquery-buildroot")

	// Run bazel as a ninja executer
	BazelNinjaExecRunName = RunName("bazel-ninja-exec")

	SoongInjectionDirName = "soong_injection"

	GeneratedBazelFileWarning = "# GENERATED FOR BAZEL FROM SOONG. DO NOT EDIT."
)

// String returns the name of the run.
func (c RunName) String() string {
	return string(c)
}