3e8e74f276
Make integrating with go tools easier by putting the blueprint package files in the top level directory of the git project instead of in a subdirectory called blueprint. Change-Id: I35c144c5fe7ddf34e478d0c47c50b2f6c92c2a03
25 lines
1 KiB
Go
25 lines
1 KiB
Go
package bootstrap
|
|
|
|
var (
|
|
// These variables are the only configuration needed by the boostrap
|
|
// modules. They are always set to the variable name enclosed in "@@" so
|
|
// that their values can be easily replaced in the generated Ninja file.
|
|
srcDir = pctx.StaticVariable("srcDir", "@@SrcDir@@")
|
|
goRoot = pctx.StaticVariable("goRoot", "@@GoRoot@@")
|
|
goOS = pctx.StaticVariable("goOS", "@@GoOS@@")
|
|
goArch = pctx.StaticVariable("goArch", "@@GoArch@@")
|
|
goChar = pctx.StaticVariable("goChar", "@@GoChar@@")
|
|
bootstrapCmd = pctx.StaticVariable("bootstrapCmd", "@@Bootstrap@@")
|
|
bootstrapManifest = pctx.StaticVariable("bootstrapManifest",
|
|
"@@BootstrapManifest@@")
|
|
|
|
goToolDir = pctx.StaticVariable("goToolDir",
|
|
"$goRoot/pkg/tool/${goOS}_$goArch")
|
|
)
|
|
|
|
type Config interface {
|
|
// GeneratingBootstrapper should return true if this build invocation is
|
|
// creating a build.ninja.in file to be used in a build bootstrapping
|
|
// sequence.
|
|
GeneratingBootstrapper() bool
|
|
}
|