blob: 463256716ea8cf859430212cd33c402b45248a21 [file] [log] [blame]
Colin Crosse441b9d2015-01-26 16:30:13 -08001# ******************************************************************************
2# *** This file is generated and should not be edited ***
3# ******************************************************************************
4#
5# This file contains variables, rules, and pools with name prefixes indicating
6# they were generated by the following Go packages:
7#
Colin Cross70b40592015-03-23 12:57:34 -07008# bootstrap [from Go package github.com/google/blueprint/bootstrap]
Colin Crosse441b9d2015-01-26 16:30:13 -08009#
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070010ninja_required_version = 1.6.0
11
12g.bootstrap.buildDir = @@BuildDir@@
13
14g.bootstrap.BinDir = ${g.bootstrap.buildDir}/.bootstrap/bin
Colin Crosse441b9d2015-01-26 16:30:13 -080015
16g.bootstrap.bootstrapCmd = @@Bootstrap@@
17
18g.bootstrap.bootstrapManifest = @@BootstrapManifest@@
19
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070020g.bootstrap.chooseStageCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/choosestage
21
Colin Crosse441b9d2015-01-26 16:30:13 -080022g.bootstrap.goRoot = @@GoRoot@@
23
24g.bootstrap.goOS = @@GoOS@@
25
26g.bootstrap.goArch = @@GoArch@@
27
28g.bootstrap.goToolDir = ${g.bootstrap.goRoot}/pkg/tool/${g.bootstrap.goOS}_${g.bootstrap.goArch}
29
30g.bootstrap.goChar = @@GoChar@@
31
32g.bootstrap.gcCmd = ${g.bootstrap.goToolDir}/${g.bootstrap.goChar}g
33
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070034g.bootstrap.goTestMainCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/gotestmain
Dan Willemsene5e20332015-06-23 19:46:20 -070035
Colin Crosse441b9d2015-01-26 16:30:13 -080036g.bootstrap.linkCmd = ${g.bootstrap.goToolDir}/${g.bootstrap.goChar}l
37
38g.bootstrap.srcDir = @@SrcDir@@
39
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070040builddir = ${g.bootstrap.buildDir}/.minibootstrap
Colin Crosse441b9d2015-01-26 16:30:13 -080041
42rule g.bootstrap.bootstrap
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070043 command = ${g.bootstrap.bootstrapCmd} -i ${in} -b ${g.bootstrap.buildDir}
Colin Crosse441b9d2015-01-26 16:30:13 -080044 description = bootstrap ${in}
45 generator = true
46
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070047rule g.bootstrap.chooseStage
48 command = ${g.bootstrap.chooseStageCmd} --current ${current} --bootstrap ${g.bootstrap.bootstrapManifest} -o ${out} ${in}
49 description = choosing next stage
50
Colin Crosse441b9d2015-01-26 16:30:13 -080051rule g.bootstrap.cp
52 command = cp ${in} ${out}
53 description = cp ${out}
54
55rule g.bootstrap.gc
56 command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.gcCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in}
57 description = ${g.bootstrap.goChar}g ${out}
58
Dan Willemsene5e20332015-06-23 19:46:20 -070059rule g.bootstrap.gotestmain
60 command = ${g.bootstrap.goTestMainCmd} -o ${out} -pkg ${pkg} ${in}
61 description = gotestmain ${out}
62
Colin Crosse441b9d2015-01-26 16:30:13 -080063rule g.bootstrap.link
64 command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.linkCmd} -o ${out} ${libDirFlags} ${in}
65 description = ${g.bootstrap.goChar}l ${out}
66
Dan Willemsene5e20332015-06-23 19:46:20 -070067rule g.bootstrap.test
68 command = (cd ${pkgSrcDir} && $$OLDPWD/${in} -test.short) && touch ${out}
69 description = test ${pkg}
70
Colin Crosse441b9d2015-01-26 16:30:13 -080071# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
72# Module: blueprint
Colin Cross3f40fa42015-01-30 17:27:36 -080073# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -080074# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -070075# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
Colin Crosse441b9d2015-01-26 16:30:13 -080076# Defined: build/blueprint/Blueprints:1:1
77
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070078build $
79 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $
80 : g.bootstrap.gc ${g.bootstrap.srcDir}/build/blueprint/context.go $
Dan Willemsene5e20332015-06-23 19:46:20 -070081 ${g.bootstrap.srcDir}/build/blueprint/live_tracker.go $
82 ${g.bootstrap.srcDir}/build/blueprint/mangle.go $
83 ${g.bootstrap.srcDir}/build/blueprint/module_ctx.go $
84 ${g.bootstrap.srcDir}/build/blueprint/ninja_defs.go $
85 ${g.bootstrap.srcDir}/build/blueprint/ninja_strings.go $
86 ${g.bootstrap.srcDir}/build/blueprint/ninja_writer.go $
87 ${g.bootstrap.srcDir}/build/blueprint/package_ctx.go $
88 ${g.bootstrap.srcDir}/build/blueprint/scope.go $
89 ${g.bootstrap.srcDir}/build/blueprint/singleton_ctx.go $
90 ${g.bootstrap.srcDir}/build/blueprint/unpack.go $
91 ${g.bootstrap.srcDir}/build/blueprint/context_test.go $
92 ${g.bootstrap.srcDir}/build/blueprint/ninja_strings_test.go $
93 ${g.bootstrap.srcDir}/build/blueprint/ninja_writer_test.go $
94 ${g.bootstrap.srcDir}/build/blueprint/splice_modules_test.go $
95 ${g.bootstrap.srcDir}/build/blueprint/unpack_test.go | $
96 ${g.bootstrap.gcCmd} $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -070097 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
98 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
99 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
100 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg
Dan Willemsene5e20332015-06-23 19:46:20 -0700101 pkgPath = github.com/google/blueprint
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700102default $
103 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700104
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700105build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go: $
106 g.bootstrap.gotestmain $
Dan Willemsene5e20332015-06-23 19:46:20 -0700107 ${g.bootstrap.srcDir}/build/blueprint/context_test.go $
108 ${g.bootstrap.srcDir}/build/blueprint/ninja_strings_test.go $
109 ${g.bootstrap.srcDir}/build/blueprint/ninja_writer_test.go $
110 ${g.bootstrap.srcDir}/build/blueprint/splice_modules_test.go $
111 ${g.bootstrap.srcDir}/build/blueprint/unpack_test.go | $
112 ${g.bootstrap.goTestMainCmd}
113 pkg = github.com/google/blueprint
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700114default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go
Dan Willemsene5e20332015-06-23 19:46:20 -0700115
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700116build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a: g.bootstrap.gc $
117 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go | $
118 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a
119 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700120 pkgPath = main
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700121default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700122
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700123build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test: g.bootstrap.link $
124 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a | $
125 ${g.bootstrap.linkCmd}
126 libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint/test -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg
127default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700128
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700129build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed: $
130 g.bootstrap.test $
131 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700132 pkg = github.com/google/blueprint
133 pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700134default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed
Dan Willemsene5e20332015-06-23 19:46:20 -0700135
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700136build $
137 ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
138 : g.bootstrap.gc ${g.bootstrap.srcDir}/build/blueprint/context.go $
Colin Crosse441b9d2015-01-26 16:30:13 -0800139 ${g.bootstrap.srcDir}/build/blueprint/live_tracker.go $
140 ${g.bootstrap.srcDir}/build/blueprint/mangle.go $
141 ${g.bootstrap.srcDir}/build/blueprint/module_ctx.go $
142 ${g.bootstrap.srcDir}/build/blueprint/ninja_defs.go $
143 ${g.bootstrap.srcDir}/build/blueprint/ninja_strings.go $
144 ${g.bootstrap.srcDir}/build/blueprint/ninja_writer.go $
145 ${g.bootstrap.srcDir}/build/blueprint/package_ctx.go $
146 ${g.bootstrap.srcDir}/build/blueprint/scope.go $
147 ${g.bootstrap.srcDir}/build/blueprint/singleton_ctx.go $
148 ${g.bootstrap.srcDir}/build/blueprint/unpack.go | ${g.bootstrap.gcCmd} $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700149 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
150 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
151 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
152 || ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed
153 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg
Colin Cross70b40592015-03-23 12:57:34 -0700154 pkgPath = github.com/google/blueprint
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700155default $
156 ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800157
158# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
159# Module: blueprint-bootstrap
Colin Cross3f40fa42015-01-30 17:27:36 -0800160# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -0800161# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -0700162# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
163# Defined: build/blueprint/Blueprints:70:1
Colin Crosse441b9d2015-01-26 16:30:13 -0800164
Colin Cross70b40592015-03-23 12:57:34 -0700165build $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700166 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a $
Colin Cross70b40592015-03-23 12:57:34 -0700167 : g.bootstrap.gc $
Colin Crosse441b9d2015-01-26 16:30:13 -0800168 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/bootstrap.go $
169 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/cleanup.go $
170 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/command.go $
171 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/config.go $
Colin Cross0bc42682015-06-18 18:06:46 -0700172 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/doc.go $
173 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/writedocs.go | $
Colin Crosse441b9d2015-01-26 16:30:13 -0800174 ${g.bootstrap.gcCmd} $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700175 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
176 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
177 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
178 ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
179 ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
180 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
181 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/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-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg
Colin Cross70b40592015-03-23 12:57:34 -0700182 pkgPath = github.com/google/blueprint/bootstrap
183default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700184 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800185
186# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Colin Cross0bc42682015-06-18 18:06:46 -0700187# Module: blueprint-bootstrap-bpdoc
188# Variant:
189# Type: bootstrap_go_package
190# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
191# Defined: build/blueprint/Blueprints:89:1
192
193build $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700194 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
Colin Cross0bc42682015-06-18 18:06:46 -0700195 : g.bootstrap.gc $
196 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/bpdoc/bpdoc.go | $
197 ${g.bootstrap.gcCmd} $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700198 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
199 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
200 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
201 ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
202 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg
Colin Cross0bc42682015-06-18 18:06:46 -0700203 pkgPath = github.com/google/blueprint/bootstrap/bpdoc
204default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700205 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
Colin Cross0bc42682015-06-18 18:06:46 -0700206
207# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Colin Crosse441b9d2015-01-26 16:30:13 -0800208# Module: blueprint-deptools
Colin Cross3f40fa42015-01-30 17:27:36 -0800209# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -0800210# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -0700211# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
212# Defined: build/blueprint/Blueprints:46:1
Colin Crosse441b9d2015-01-26 16:30:13 -0800213
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700214build $
215 ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
Colin Cross70b40592015-03-23 12:57:34 -0700216 : g.bootstrap.gc $
Colin Crosse441b9d2015-01-26 16:30:13 -0800217 ${g.bootstrap.srcDir}/build/blueprint/deptools/depfile.go | $
218 ${g.bootstrap.gcCmd}
Colin Cross70b40592015-03-23 12:57:34 -0700219 pkgPath = github.com/google/blueprint/deptools
220default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700221 ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800222
223# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
224# Module: blueprint-parser
Colin Cross3f40fa42015-01-30 17:27:36 -0800225# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -0800226# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -0700227# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
228# Defined: build/blueprint/Blueprints:31:1
229
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700230build $
231 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $
232 : g.bootstrap.gc $
233 ${g.bootstrap.srcDir}/build/blueprint/parser/modify.go $
Dan Willemsene5e20332015-06-23 19:46:20 -0700234 ${g.bootstrap.srcDir}/build/blueprint/parser/parser.go $
235 ${g.bootstrap.srcDir}/build/blueprint/parser/printer.go $
236 ${g.bootstrap.srcDir}/build/blueprint/parser/sort.go $
237 ${g.bootstrap.srcDir}/build/blueprint/parser/parser_test.go $
238 ${g.bootstrap.srcDir}/build/blueprint/parser/printer_test.go | $
239 ${g.bootstrap.gcCmd}
240 pkgPath = github.com/google/blueprint/parser
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700241default $
242 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700243
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700244build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go: $
245 g.bootstrap.gotestmain $
Dan Willemsene5e20332015-06-23 19:46:20 -0700246 ${g.bootstrap.srcDir}/build/blueprint/parser/parser_test.go $
247 ${g.bootstrap.srcDir}/build/blueprint/parser/printer_test.go | $
248 ${g.bootstrap.goTestMainCmd}
249 pkg = github.com/google/blueprint/parser
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700250default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go
Dan Willemsene5e20332015-06-23 19:46:20 -0700251
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700252build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a: $
253 g.bootstrap.gc $
254 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go | $
255 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a
256 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700257 pkgPath = main
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700258default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700259
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700260build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test: $
261 g.bootstrap.link $
262 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a | $
263 ${g.bootstrap.linkCmd}
264 libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test
265default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700266
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700267build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed: $
268 g.bootstrap.test $
269 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700270 pkg = github.com/google/blueprint/parser
271 pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint/parser
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700272default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed
Colin Crosse441b9d2015-01-26 16:30:13 -0800273
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700274build $
275 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
276 : g.bootstrap.gc $
277 ${g.bootstrap.srcDir}/build/blueprint/parser/modify.go $
Colin Crosse441b9d2015-01-26 16:30:13 -0800278 ${g.bootstrap.srcDir}/build/blueprint/parser/parser.go $
279 ${g.bootstrap.srcDir}/build/blueprint/parser/printer.go $
280 ${g.bootstrap.srcDir}/build/blueprint/parser/sort.go | $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700281 ${g.bootstrap.gcCmd} || $
282 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed
Colin Cross70b40592015-03-23 12:57:34 -0700283 pkgPath = github.com/google/blueprint/parser
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700284default $
285 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800286
287# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
288# Module: blueprint-pathtools
Colin Cross3f40fa42015-01-30 17:27:36 -0800289# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -0800290# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -0700291# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
292# Defined: build/blueprint/Blueprints:52:1
293
294build $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700295 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a $
Dan Willemsene5e20332015-06-23 19:46:20 -0700296 : g.bootstrap.gc $
297 ${g.bootstrap.srcDir}/build/blueprint/pathtools/lists.go $
298 ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob.go $
299 ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob_test.go | $
300 ${g.bootstrap.gcCmd}
301 pkgPath = github.com/google/blueprint/pathtools
302default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700303 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700304
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700305build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go: $
306 g.bootstrap.gotestmain $
Dan Willemsene5e20332015-06-23 19:46:20 -0700307 ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob_test.go | $
308 ${g.bootstrap.goTestMainCmd}
309 pkg = github.com/google/blueprint/pathtools
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700310default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go
Dan Willemsene5e20332015-06-23 19:46:20 -0700311
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700312build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a: $
313 g.bootstrap.gc $
314 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go | $
315 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a
316 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700317 pkgPath = main
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700318default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700319
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700320build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test: $
321 g.bootstrap.link $
322 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a | $
323 ${g.bootstrap.linkCmd}
324 libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test
325default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700326
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700327build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed: $
328 g.bootstrap.test $
329 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test
Dan Willemsene5e20332015-06-23 19:46:20 -0700330 pkg = github.com/google/blueprint/pathtools
331 pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint/pathtools
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700332default $
333 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed
Colin Crosse441b9d2015-01-26 16:30:13 -0800334
Colin Cross70b40592015-03-23 12:57:34 -0700335build $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700336 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
Colin Cross70b40592015-03-23 12:57:34 -0700337 : g.bootstrap.gc $
Colin Crosse441b9d2015-01-26 16:30:13 -0800338 ${g.bootstrap.srcDir}/build/blueprint/pathtools/lists.go $
339 ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob.go | $
Dan Willemsene5e20332015-06-23 19:46:20 -0700340 ${g.bootstrap.gcCmd} || $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700341 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed
Colin Cross70b40592015-03-23 12:57:34 -0700342 pkgPath = github.com/google/blueprint/pathtools
343default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700344 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800345
346# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
347# Module: blueprint-proptools
Colin Cross3f40fa42015-01-30 17:27:36 -0800348# Variant:
Colin Crosse441b9d2015-01-26 16:30:13 -0800349# Type: bootstrap_go_package
Dan Willemsene5e20332015-06-23 19:46:20 -0700350# Factory: github.com/google/blueprint/bootstrap.funcĀ·002
351# Defined: build/blueprint/Blueprints:64:1
Colin Crosse441b9d2015-01-26 16:30:13 -0800352
Colin Cross70b40592015-03-23 12:57:34 -0700353build $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700354 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
Colin Cross70b40592015-03-23 12:57:34 -0700355 : g.bootstrap.gc $
Colin Crosse441b9d2015-01-26 16:30:13 -0800356 ${g.bootstrap.srcDir}/build/blueprint/proptools/proptools.go | $
357 ${g.bootstrap.gcCmd}
Colin Cross70b40592015-03-23 12:57:34 -0700358 pkgPath = github.com/google/blueprint/proptools
359default $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700360 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800361
362# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700363# Module: choosestage
Colin Cross3f40fa42015-01-30 17:27:36 -0800364# Variant:
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700365# Type: bootstrap_core_go_binary
Dan Willemsene5e20332015-06-23 19:46:20 -0700366# Factory: github.com/google/blueprint/bootstrap.funcĀ·003
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700367# Defined: build/blueprint/Blueprints:127:1
Colin Crosse441b9d2015-01-26 16:30:13 -0800368
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700369build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a: $
370 g.bootstrap.gc $
371 ${g.bootstrap.srcDir}/build/blueprint/choosestage/choosestage.go | $
372 ${g.bootstrap.gcCmd}
373 pkgPath = choosestage
374default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800375
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700376build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out: $
377 g.bootstrap.link $
378 ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a | $
379 ${g.bootstrap.linkCmd}
380default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
381build ${g.bootstrap.BinDir}/choosestage: g.bootstrap.cp $
382 ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
383default ${g.bootstrap.BinDir}/choosestage
Colin Crosse441b9d2015-01-26 16:30:13 -0800384
385# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Dan Willemsene5e20332015-06-23 19:46:20 -0700386# Module: gotestmain
387# Variant:
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700388# Type: bootstrap_core_go_binary
Dan Willemsene5e20332015-06-23 19:46:20 -0700389# Factory: github.com/google/blueprint/bootstrap.funcĀ·003
Colin Cross0bc42682015-06-18 18:06:46 -0700390# Defined: build/blueprint/Blueprints:122:1
Dan Willemsene5e20332015-06-23 19:46:20 -0700391
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700392build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a: $
393 g.bootstrap.gc $
Dan Willemsene5e20332015-06-23 19:46:20 -0700394 ${g.bootstrap.srcDir}/build/blueprint/gotestmain/gotestmain.go | $
395 ${g.bootstrap.gcCmd}
396 pkgPath = gotestmain
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700397default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a
Dan Willemsene5e20332015-06-23 19:46:20 -0700398
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700399build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out: $
400 g.bootstrap.link $
401 ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a | $
402 ${g.bootstrap.linkCmd}
403default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
404build ${g.bootstrap.BinDir}/gotestmain: g.bootstrap.cp $
405 ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
406default ${g.bootstrap.BinDir}/gotestmain
Dan Willemsene5e20332015-06-23 19:46:20 -0700407
408# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Colin Crosse441b9d2015-01-26 16:30:13 -0800409# Module: minibp
Colin Cross3f40fa42015-01-30 17:27:36 -0800410# Variant:
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700411# Type: bootstrap_core_go_binary
Dan Willemsene5e20332015-06-23 19:46:20 -0700412# Factory: github.com/google/blueprint/bootstrap.funcĀ·003
Colin Cross0bc42682015-06-18 18:06:46 -0700413# Defined: build/blueprint/Blueprints:101:1
Colin Crosse441b9d2015-01-26 16:30:13 -0800414
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700415build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a: g.bootstrap.gc $
Colin Crosse441b9d2015-01-26 16:30:13 -0800416 ${g.bootstrap.srcDir}/build/blueprint/bootstrap/minibp/main.go | $
417 ${g.bootstrap.gcCmd} $
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700418 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
419 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
420 ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
421 ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
422 ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
423 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
424 ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
425 incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/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-deptools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg
Colin Crosse441b9d2015-01-26 16:30:13 -0800426 pkgPath = minibp
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700427default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a
Colin Crosse441b9d2015-01-26 16:30:13 -0800428
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700429build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out: g.bootstrap.link $
430 ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a | $
431 ${g.bootstrap.linkCmd}
432 libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/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-deptools/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg
433default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
Colin Crosse441b9d2015-01-26 16:30:13 -0800434
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700435build ${g.bootstrap.BinDir}/minibp: g.bootstrap.cp $
436 ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
437default ${g.bootstrap.BinDir}/minibp
Colin Cross2fe66872015-03-30 17:20:39 -0700438
439# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Colin Crosse441b9d2015-01-26 16:30:13 -0800440# Singleton: bootstrap
Dan Willemsene5e20332015-06-23 19:46:20 -0700441# Factory: github.com/google/blueprint/bootstrap.funcĀ·008
Colin Crosse441b9d2015-01-26 16:30:13 -0800442
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700443rule s.bootstrap.primarybp
444 command = ${g.bootstrap.BinDir}/minibp --build-primary ${runTests} -m ${g.bootstrap.bootstrapManifest} --timestamp ${timestamp} --timestampdep ${timestampdep} -b ${g.bootstrap.buildDir} -d ${outfile}.d -o ${outfile} ${in}
445 depfile = ${outfile}.d
446 description = minibp ${outfile}
Colin Crosse441b9d2015-01-26 16:30:13 -0800447
448rule s.bootstrap.minibp
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700449 command = ${g.bootstrap.BinDir}/minibp ${runTests} -m ${g.bootstrap.bootstrapManifest} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in}
Colin Crosse441b9d2015-01-26 16:30:13 -0800450 depfile = ${out}.d
451 description = minibp ${out}
452 generator = true
453
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700454build ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
455 ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp: $
456 s.bootstrap.primarybp ${g.bootstrap.srcDir}/Android.bp | $
457 ${g.bootstrap.BinDir}/choosestage ${g.bootstrap.BinDir}/gotestmain $
458 ${g.bootstrap.BinDir}/minibp ${g.bootstrap.srcDir}/Android.bp $
459 ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $
460 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $
461 ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a
462 outfile = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in
Dan Willemsene5e20332015-06-23 19:46:20 -0700463 runTests = -t
Dan Willemsen24f2f8d2015-07-15 14:34:02 -0700464 timestamp = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
465 timestampdep = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp.d
466default ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
467 ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
468
469build ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in: $
470 s.bootstrap.minibp ${g.bootstrap.srcDir}/Android.bp | $
471 ${g.bootstrap.bootstrapManifest} ${g.bootstrap.BinDir}/minibp
472 runTests = -t
473default ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
474
475build ${g.bootstrap.buildDir}/.bootstrap/notAFile: phony
476default ${g.bootstrap.buildDir}/.bootstrap/notAFile
477build ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in: $
478 g.bootstrap.chooseStage $
479 ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in $
480 ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in | $
481 ${g.bootstrap.chooseStageCmd} ${g.bootstrap.bootstrapManifest} $
482 ${g.bootstrap.buildDir}/.bootstrap/notAFile
483 current = ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
484default ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in
485
486build ${g.bootstrap.buildDir}/build.ninja: g.bootstrap.bootstrap $
487 ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in | $
488 ${g.bootstrap.bootstrapCmd}
489default ${g.bootstrap.buildDir}/build.ninja
Colin Crosse441b9d2015-01-26 16:30:13 -0800490