7f88956c16
Most of the variable export code for cc modules can be re-used for exporting variables for java modules. Refactor this code into a more composable structure for reuse. Test: build/bazel/bp2build.sh Test: manual comparison of out/soong/soong_injection/cc_toolchain/constants.bzl with previous output Change-Id: Ie5a6fee08cc888b7dc69c3e324e5c3f8aa269a8f
30 lines
942 B
Go
30 lines
942 B
Go
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)
|
|
}
|