2014-05-28 01:34:41 +02:00
|
|
|
# ******************************************************************************
|
|
|
|
# *** This file is generated and should not be edited ***
|
|
|
|
# ******************************************************************************
|
|
|
|
#
|
|
|
|
# This file contains variables, rules, and pools with name prefixes indicating
|
|
|
|
# they were generated by the following Go packages:
|
|
|
|
#
|
2015-03-21 03:39:29 +01:00
|
|
|
# bootstrap [from Go package github.com/google/blueprint/bootstrap]
|
2014-05-28 01:34:41 +02:00
|
|
|
#
|
2016-10-26 06:26:12 +02:00
|
|
|
ninja_required_version = 1.7.0
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
g.bootstrap.buildDir = @@BuildDir@@
|
|
|
|
|
|
|
|
g.bootstrap.BinDir = ${g.bootstrap.buildDir}/.bootstrap/bin
|
2015-07-14 08:28:37 +02:00
|
|
|
|
2014-11-09 20:52:56 +01:00
|
|
|
g.bootstrap.bootstrapCmd = @@Bootstrap@@
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-08-02 00:07:27 +02:00
|
|
|
g.bootstrap.compileCmd = @@GoCompile@@
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-08-02 00:07:27 +02:00
|
|
|
g.bootstrap.goRoot = @@GoRoot@@
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-08-02 00:07:27 +02:00
|
|
|
g.bootstrap.linkCmd = @@GoLink@@
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2014-11-09 20:52:56 +01:00
|
|
|
g.bootstrap.srcDir = @@SrcDir@@
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
builddir = ${g.bootstrap.buildDir}/.minibootstrap
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2014-09-25 05:26:52 +02:00
|
|
|
rule g.bootstrap.bootstrap
|
2015-09-18 07:48:04 +02:00
|
|
|
command = BUILDDIR=${g.bootstrap.buildDir} ${g.bootstrap.bootstrapCmd} -i ${in}
|
2014-09-25 05:26:52 +02:00
|
|
|
description = bootstrap ${in}
|
|
|
|
generator = true
|
|
|
|
|
2016-11-02 01:12:28 +01:00
|
|
|
rule g.bootstrap.build.ninja
|
|
|
|
command = ${builder} ${extra} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in}
|
|
|
|
depfile = ${out}.d
|
|
|
|
description = ${builder} ${out}
|
|
|
|
restat = true
|
|
|
|
|
2015-08-02 00:07:27 +02:00
|
|
|
rule g.bootstrap.compile
|
|
|
|
command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.compileCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in}
|
|
|
|
description = compile ${out}
|
|
|
|
|
2014-09-25 05:26:52 +02:00
|
|
|
rule g.bootstrap.cp
|
|
|
|
command = cp ${in} ${out}
|
|
|
|
description = cp ${out}
|
|
|
|
|
2014-05-28 01:34:41 +02:00
|
|
|
rule g.bootstrap.link
|
2014-11-09 20:52:56 +01:00
|
|
|
command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.linkCmd} -o ${out} ${libDirFlags} ${in}
|
2015-08-02 00:07:27 +02:00
|
|
|
description = link ${out}
|
2014-05-28 01:34:41 +02:00
|
|
|
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-05-28 01:34:41 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2014-06-05 00:33:08 +02:00
|
|
|
# Defined: Blueprints:1:1
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
|
2015-08-02 00:07:27 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/context.go $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.srcDir}/fs.go ${g.bootstrap.srcDir}/glob.go $
|
|
|
|
${g.bootstrap.srcDir}/live_tracker.go ${g.bootstrap.srcDir}/mangle.go $
|
|
|
|
${g.bootstrap.srcDir}/module_ctx.go $
|
2015-01-23 22:38:48 +01:00
|
|
|
${g.bootstrap.srcDir}/ninja_defs.go $
|
|
|
|
${g.bootstrap.srcDir}/ninja_strings.go $
|
|
|
|
${g.bootstrap.srcDir}/ninja_writer.go $
|
|
|
|
${g.bootstrap.srcDir}/package_ctx.go ${g.bootstrap.srcDir}/scope.go $
|
|
|
|
${g.bootstrap.srcDir}/singleton_ctx.go ${g.bootstrap.srcDir}/unpack.go $
|
2015-08-02 00:07:27 +02:00
|
|
|
| ${g.bootstrap.compileCmd} $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
|
2016-11-01 19:10:51 +01:00
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint
|
2015-07-14 03:11:49 +02:00
|
|
|
default $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2014-06-12 01:27:16 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint-bootstrap
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-06-12 01:27:16 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:89:1
|
2014-06-12 01:27:16 +02:00
|
|
|
|
2015-03-21 03:39:29 +01:00
|
|
|
build $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a $
|
2015-08-02 00:07:27 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/bootstrap.go $
|
2015-01-23 22:38:48 +01:00
|
|
|
${g.bootstrap.srcDir}/bootstrap/cleanup.go $
|
|
|
|
${g.bootstrap.srcDir}/bootstrap/command.go $
|
|
|
|
${g.bootstrap.srcDir}/bootstrap/config.go $
|
2015-05-13 23:36:24 +02:00
|
|
|
${g.bootstrap.srcDir}/bootstrap/doc.go $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.srcDir}/bootstrap/glob.go $
|
2015-08-02 00:07:27 +02:00
|
|
|
${g.bootstrap.srcDir}/bootstrap/writedocs.go | $
|
|
|
|
${g.bootstrap.compileCmd} $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
|
2016-11-01 19:10:51 +01:00
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint/bootstrap
|
|
|
|
default $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
|
2014-06-12 01:27:16 +02:00
|
|
|
|
2015-05-13 23:36:24 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint-bootstrap-bpdoc
|
|
|
|
# Variant:
|
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:109:1
|
2015-05-13 23:36:24 +02:00
|
|
|
|
|
|
|
build $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
|
2015-08-02 00:07:27 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/bpdoc/bpdoc.go | $
|
|
|
|
${g.bootstrap.compileCmd} $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
|
2016-11-01 19:10:51 +01:00
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg
|
2015-05-13 23:36:24 +02:00
|
|
|
pkgPath = github.com/google/blueprint/bootstrap/bpdoc
|
|
|
|
default $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
|
2015-05-13 23:36:24 +02:00
|
|
|
|
2014-10-24 19:42:57 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint-deptools
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-10-24 19:42:57 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:50:1
|
2014-10-24 19:42:57 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
2015-08-02 00:07:27 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/deptools/depfile.go | $
|
|
|
|
${g.bootstrap.compileCmd}
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint/deptools
|
|
|
|
default $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
|
2014-10-24 19:42:57 +02:00
|
|
|
|
2014-05-28 01:34:41 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint-parser
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-05-28 01:34:41 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:34:1
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
|
2016-06-07 21:28:16 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/parser/ast.go $
|
|
|
|
${g.bootstrap.srcDir}/parser/modify.go $
|
2015-01-23 22:38:48 +01:00
|
|
|
${g.bootstrap.srcDir}/parser/parser.go $
|
|
|
|
${g.bootstrap.srcDir}/parser/printer.go $
|
2015-08-02 00:07:27 +02:00
|
|
|
${g.bootstrap.srcDir}/parser/sort.go | ${g.bootstrap.compileCmd}
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint/parser
|
2015-07-14 03:11:49 +02:00
|
|
|
default $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a
|
2014-05-28 01:34:41 +02:00
|
|
|
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
2014-06-06 23:37:07 +02:00
|
|
|
# Module: blueprint-pathtools
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-05-28 01:34:41 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:56:1
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-03-21 03:39:29 +01:00
|
|
|
build $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
|
2015-08-02 00:07:27 +02:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/pathtools/lists.go $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.srcDir}/pathtools/glob.go | ${g.bootstrap.compileCmd} $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
|
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint/pathtools
|
|
|
|
default $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a
|
2014-06-06 23:37:07 +02:00
|
|
|
|
2014-10-03 03:36:13 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: blueprint-proptools
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2014-10-03 03:36:13 +02:00
|
|
|
# Type: bootstrap_go_package
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:71:1
|
2014-10-03 03:36:13 +02:00
|
|
|
|
2015-03-21 03:39:29 +01:00
|
|
|
build $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
|
2015-10-30 21:19:14 +01:00
|
|
|
: g.bootstrap.compile ${g.bootstrap.srcDir}/proptools/clone.go $
|
2016-09-29 22:19:34 +02:00
|
|
|
${g.bootstrap.srcDir}/proptools/escape.go $
|
2015-10-30 21:19:14 +01:00
|
|
|
${g.bootstrap.srcDir}/proptools/extend.go $
|
2015-11-02 23:58:10 +01:00
|
|
|
${g.bootstrap.srcDir}/proptools/proptools.go $
|
|
|
|
${g.bootstrap.srcDir}/proptools/typeequal.go | $
|
2015-08-02 00:07:27 +02:00
|
|
|
${g.bootstrap.compileCmd}
|
2015-03-21 03:39:29 +01:00
|
|
|
pkgPath = github.com/google/blueprint/proptools
|
|
|
|
default $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
|
2014-10-03 03:36:13 +02:00
|
|
|
|
2016-11-01 19:10:51 +01:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: bpglob
|
|
|
|
# Variant:
|
|
|
|
# Type: bootstrap_core_go_binary
|
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
|
|
|
|
# Defined: Blueprints:130:1
|
|
|
|
|
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/bpglob.a: $
|
|
|
|
g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/bpglob/bpglob.go | $
|
|
|
|
${g.bootstrap.compileCmd} $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a
|
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg
|
|
|
|
pkgPath = bpglob
|
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/bpglob.a
|
|
|
|
|
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/a.out: g.bootstrap.link $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/bpglob.a | $
|
|
|
|
${g.bootstrap.linkCmd}
|
|
|
|
libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg
|
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/a.out
|
|
|
|
|
|
|
|
build ${g.bootstrap.BinDir}/bpglob: g.bootstrap.cp $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/bpglob/obj/a.out
|
|
|
|
default ${g.bootstrap.BinDir}/bpglob
|
|
|
|
|
2015-06-24 02:21:00 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: gotestmain
|
|
|
|
# Variant:
|
2015-07-23 02:06:06 +02:00
|
|
|
# Type: bootstrap_core_go_binary
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:148:1
|
2015-06-24 02:21:00 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a: $
|
2015-08-02 00:07:27 +02:00
|
|
|
g.bootstrap.compile ${g.bootstrap.srcDir}/gotestmain/gotestmain.go | $
|
|
|
|
${g.bootstrap.compileCmd}
|
2015-06-24 02:21:00 +02:00
|
|
|
pkgPath = gotestmain
|
2015-07-14 03:11:49 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a
|
2015-06-24 02:21:00 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out: $
|
|
|
|
g.bootstrap.link $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a | $
|
|
|
|
${g.bootstrap.linkCmd}
|
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
|
2015-11-09 20:37:39 +01:00
|
|
|
|
2015-07-14 08:28:37 +02:00
|
|
|
build ${g.bootstrap.BinDir}/gotestmain: g.bootstrap.cp $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
|
2015-07-14 08:28:37 +02:00
|
|
|
default ${g.bootstrap.BinDir}/gotestmain
|
2015-06-24 02:21:00 +02:00
|
|
|
|
2015-09-18 05:59:51 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: gotestrunner
|
|
|
|
# Variant:
|
|
|
|
# Type: bootstrap_core_go_binary
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:153:1
|
2015-09-18 05:59:51 +02:00
|
|
|
|
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a: $
|
|
|
|
g.bootstrap.compile ${g.bootstrap.srcDir}/gotestrunner/gotestrunner.go $
|
|
|
|
| ${g.bootstrap.compileCmd}
|
|
|
|
pkgPath = gotestrunner
|
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a
|
|
|
|
|
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out: $
|
|
|
|
g.bootstrap.link $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a | $
|
|
|
|
${g.bootstrap.linkCmd}
|
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
|
2015-11-09 20:37:39 +01:00
|
|
|
|
2015-09-18 05:59:51 +02:00
|
|
|
build ${g.bootstrap.BinDir}/gotestrunner: g.bootstrap.cp $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
|
|
|
|
default ${g.bootstrap.BinDir}/gotestrunner
|
|
|
|
|
2014-05-28 01:34:41 +02:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Module: minibp
|
2015-03-21 03:39:29 +01:00
|
|
|
# Variant:
|
2015-07-23 02:06:06 +02:00
|
|
|
# Type: bootstrap_core_go_binary
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
|
2016-11-01 19:10:51 +01:00
|
|
|
# Defined: Blueprints:121:1
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-08-02 00:07:27 +02:00
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a: $
|
|
|
|
g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/minibp/main.go | $
|
|
|
|
${g.bootstrap.compileCmd} $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
|
2016-11-01 19:10:51 +01:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
|
2015-07-14 03:11:49 +02:00
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
|
2016-11-01 19:10:51 +01:00
|
|
|
incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg
|
2014-05-28 01:34:41 +02:00
|
|
|
pkgPath = minibp
|
2015-07-14 03:11:49 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out: g.bootstrap.link $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a | $
|
|
|
|
${g.bootstrap.linkCmd}
|
2016-11-01 19:10:51 +01:00
|
|
|
libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg
|
2015-07-14 03:11:49 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
|
2014-05-28 01:34:41 +02:00
|
|
|
|
2015-07-14 03:11:49 +02:00
|
|
|
build ${g.bootstrap.BinDir}/minibp: g.bootstrap.cp $
|
|
|
|
${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
|
2015-07-14 08:28:37 +02:00
|
|
|
default ${g.bootstrap.BinDir}/minibp
|
2014-05-28 01:34:41 +02:00
|
|
|
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Singleton: bootstrap
|
2015-11-09 20:37:39 +01:00
|
|
|
# Factory: github.com/google/blueprint/bootstrap.newSingletonFactory.func1
|
2015-07-23 02:06:06 +02:00
|
|
|
|
2016-11-02 01:12:28 +01:00
|
|
|
build ${g.bootstrap.buildDir}/.bootstrap/build.ninja: g.bootstrap.build.ninja $
|
2016-11-02 06:44:25 +01:00
|
|
|
${g.bootstrap.srcDir}/Blueprints | ${builder}
|
2016-11-02 01:12:28 +01:00
|
|
|
builder = ${g.bootstrap.BinDir}/minibp
|
|
|
|
extra = --build-primary
|
Simplify bootstrap
tl;dr: Read if you don't use the wrapper or use SKIP_NINJA
Previously, we were relying on the ninja behavior of restarting the
build when the build.ninja file was updated to switch between different
bootstrap stages. But that means that every step that could produce a
build.ninja must pass in order to switch to a different stage. That
wasn't a big problem when we had a two stage build -- there was very
little that could fail in the second stage before we chose to go back to
the first stage. But when we had a three stage build, it was possible to
get into a state (usually during development) where you were in the
second stage, but the build was failing because the first stage needed
to be run. This was fixed in d79f1af7423e0ef7a13573efdae5100a57fabc82
by adding a wrapper that always started building at the first stage.
But this kept all of the complexity of using ninja restarts without any
of the benefits, so this change removes that complexity and just runs
each stage sequentially in the wrapper. So the wrapper is now required.
Since we're no longer going through choosestage, we can also skip the
template parsing for the later stages that don't need to be templated --
this can save a couple of seconds for large files.
In addition to all of the above, this also lets Soong reduce the number
of times the main ninja file is loaded. We had been running the wrapper
once (3 stages), then running ninja again after combining the
Soong-generated build.ninja with the Kati-generated build.ninja. This
change lets us removing the intermediate parsing of Soong's build.ninja,
so that we only execute ninja 3 times per build. It also lets us have
dependencies on pools or rules from Kati in the primary builder, since
we're never executing the main build.ninja without the Kati build.ninja.
The wrapper has a new option, NINJA to provide the path to ninja. This
used to be hardcoded to `ninja`, and will still default to that. But
we'll be running the first two bootstrap stages with $NINJA even if
SKIP_NINJA is set.
The wrapper passes "-w dupbuild=err" to ninja now -- this really should
always be turned on if you care about reliable builds.
Change-Id: I6f656b74eb3d064b8b9e69d1d6dac1129d72b747
2016-08-13 21:42:11 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.bootstrap/build.ninja
|
2015-07-14 03:11:49 +02:00
|
|
|
|
Simplify bootstrap
tl;dr: Read if you don't use the wrapper or use SKIP_NINJA
Previously, we were relying on the ninja behavior of restarting the
build when the build.ninja file was updated to switch between different
bootstrap stages. But that means that every step that could produce a
build.ninja must pass in order to switch to a different stage. That
wasn't a big problem when we had a two stage build -- there was very
little that could fail in the second stage before we chose to go back to
the first stage. But when we had a three stage build, it was possible to
get into a state (usually during development) where you were in the
second stage, but the build was failing because the first stage needed
to be run. This was fixed in d79f1af7423e0ef7a13573efdae5100a57fabc82
by adding a wrapper that always started building at the first stage.
But this kept all of the complexity of using ninja restarts without any
of the benefits, so this change removes that complexity and just runs
each stage sequentially in the wrapper. So the wrapper is now required.
Since we're no longer going through choosestage, we can also skip the
template parsing for the later stages that don't need to be templated --
this can save a couple of seconds for large files.
In addition to all of the above, this also lets Soong reduce the number
of times the main ninja file is loaded. We had been running the wrapper
once (3 stages), then running ninja again after combining the
Soong-generated build.ninja with the Kati-generated build.ninja. This
change lets us removing the intermediate parsing of Soong's build.ninja,
so that we only execute ninja 3 times per build. It also lets us have
dependencies on pools or rules from Kati in the primary builder, since
we're never executing the main build.ninja without the Kati build.ninja.
The wrapper has a new option, NINJA to provide the path to ninja. This
used to be hardcoded to `ninja`, and will still default to that. But
we'll be running the first two bootstrap stages with $NINJA even if
SKIP_NINJA is set.
The wrapper passes "-w dupbuild=err" to ninja now -- this really should
always be turned on if you care about reliable builds.
Change-Id: I6f656b74eb3d064b8b9e69d1d6dac1129d72b747
2016-08-13 21:42:11 +02:00
|
|
|
build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in: $
|
2016-11-02 01:12:28 +01:00
|
|
|
g.bootstrap.build.ninja ${g.bootstrap.srcDir}/Blueprints | ${builder}
|
|
|
|
builder = ${g.bootstrap.BinDir}/minibp
|
|
|
|
extra =
|
Simplify bootstrap
tl;dr: Read if you don't use the wrapper or use SKIP_NINJA
Previously, we were relying on the ninja behavior of restarting the
build when the build.ninja file was updated to switch between different
bootstrap stages. But that means that every step that could produce a
build.ninja must pass in order to switch to a different stage. That
wasn't a big problem when we had a two stage build -- there was very
little that could fail in the second stage before we chose to go back to
the first stage. But when we had a three stage build, it was possible to
get into a state (usually during development) where you were in the
second stage, but the build was failing because the first stage needed
to be run. This was fixed in d79f1af7423e0ef7a13573efdae5100a57fabc82
by adding a wrapper that always started building at the first stage.
But this kept all of the complexity of using ninja restarts without any
of the benefits, so this change removes that complexity and just runs
each stage sequentially in the wrapper. So the wrapper is now required.
Since we're no longer going through choosestage, we can also skip the
template parsing for the later stages that don't need to be templated --
this can save a couple of seconds for large files.
In addition to all of the above, this also lets Soong reduce the number
of times the main ninja file is loaded. We had been running the wrapper
once (3 stages), then running ninja again after combining the
Soong-generated build.ninja with the Kati-generated build.ninja. This
change lets us removing the intermediate parsing of Soong's build.ninja,
so that we only execute ninja 3 times per build. It also lets us have
dependencies on pools or rules from Kati in the primary builder, since
we're never executing the main build.ninja without the Kati build.ninja.
The wrapper has a new option, NINJA to provide the path to ninja. This
used to be hardcoded to `ninja`, and will still default to that. But
we'll be running the first two bootstrap stages with $NINJA even if
SKIP_NINJA is set.
The wrapper passes "-w dupbuild=err" to ninja now -- this really should
always be turned on if you care about reliable builds.
Change-Id: I6f656b74eb3d064b8b9e69d1d6dac1129d72b747
2016-08-13 21:42:11 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in
|
|
|
|
|
|
|
|
build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja: $
|
|
|
|
g.bootstrap.bootstrap $
|
|
|
|
${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in | $
|
Enhance bootstrap stage selection
This simplifies the bootstrap process while making it more flexible by
moving the stage selection into a go binary(choosestage). It will now be
possible to have more than two build stages.
Now each stage has a ninja template(main.ninja.in) and a timestamp
file(main.ninja.in.timestamp). The timestamp file may be updated by any
build stage that wishes to regenerate the ninja template. If the
choosestage binaries sees that the timestamp is newer than the template,
it will choose the prior stage.
The main stage no longer writes to the source tree to update the
build.ninja.in file. This was a problem for read-only source trees.
Instead, the choosestage binary first checks to see if that file is
newer than the last bootstrap.ninja.in, copies it in place, and starts
the boostrap stage.
The bootstrap stage regenerates it's own ninja template, but that
required a loop through the main stage to actually run it. The
choosestage binary now detects if the template has changed for the
current stage, and will restart the stage.
One change is that if dependencies do get messed up, instead of silently
failing, there's a higher chance that the bootstrap step will just
continue looping, doing nothing. This can happen if the main stage
has a dependency that triggers the bootstrap stage, but the bootstrap
stage doesn't see anything required to rebuild the main ninja file. A
side effect of this requirement is that changes to test code will now
rebuild the main ninja file.
Change-Id: I9965cfba79dc0dbbd3af05f5944f7653054455a2
2015-07-23 02:05:59 +02:00
|
|
|
${g.bootstrap.bootstrapCmd}
|
Simplify bootstrap
tl;dr: Read if you don't use the wrapper or use SKIP_NINJA
Previously, we were relying on the ninja behavior of restarting the
build when the build.ninja file was updated to switch between different
bootstrap stages. But that means that every step that could produce a
build.ninja must pass in order to switch to a different stage. That
wasn't a big problem when we had a two stage build -- there was very
little that could fail in the second stage before we chose to go back to
the first stage. But when we had a three stage build, it was possible to
get into a state (usually during development) where you were in the
second stage, but the build was failing because the first stage needed
to be run. This was fixed in d79f1af7423e0ef7a13573efdae5100a57fabc82
by adding a wrapper that always started building at the first stage.
But this kept all of the complexity of using ninja restarts without any
of the benefits, so this change removes that complexity and just runs
each stage sequentially in the wrapper. So the wrapper is now required.
Since we're no longer going through choosestage, we can also skip the
template parsing for the later stages that don't need to be templated --
this can save a couple of seconds for large files.
In addition to all of the above, this also lets Soong reduce the number
of times the main ninja file is loaded. We had been running the wrapper
once (3 stages), then running ninja again after combining the
Soong-generated build.ninja with the Kati-generated build.ninja. This
change lets us removing the intermediate parsing of Soong's build.ninja,
so that we only execute ninja 3 times per build. It also lets us have
dependencies on pools or rules from Kati in the primary builder, since
we're never executing the main build.ninja without the Kati build.ninja.
The wrapper has a new option, NINJA to provide the path to ninja. This
used to be hardcoded to `ninja`, and will still default to that. But
we'll be running the first two bootstrap stages with $NINJA even if
SKIP_NINJA is set.
The wrapper passes "-w dupbuild=err" to ninja now -- this really should
always be turned on if you care about reliable builds.
Change-Id: I6f656b74eb3d064b8b9e69d1d6dac1129d72b747
2016-08-13 21:42:11 +02:00
|
|
|
default ${g.bootstrap.buildDir}/.minibootstrap/build.ninja
|
2014-05-28 01:34:41 +02:00
|
|
|
|