1# ******************************************************************************
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#
8#     bootstrap [from Go package github.com/google/blueprint/bootstrap]
9#
10ninja_required_version = 1.6.0
11
12g.bootstrap.buildDir = @@BuildDir@@
13
14g.bootstrap.BinDir = ${g.bootstrap.buildDir}/.bootstrap/bin
15
16g.bootstrap.bootstrapCmd = @@Bootstrap@@
17
18g.bootstrap.bootstrapManifest = @@BootstrapManifest@@
19
20g.bootstrap.chooseStageCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/choosestage
21
22g.bootstrap.compileCmd = @@GoCompile@@
23
24g.bootstrap.goRoot = @@GoRoot@@
25
26g.bootstrap.goTestMainCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/gotestmain
27
28g.bootstrap.goTestRunnerCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/gotestrunner
29
30g.bootstrap.linkCmd = @@GoLink@@
31
32g.bootstrap.srcDir = @@SrcDir@@
33
34builddir = ${g.bootstrap.buildDir}/.minibootstrap
35
36rule g.bootstrap.bootstrap
37    command = BUILDDIR=${g.bootstrap.buildDir} ${g.bootstrap.bootstrapCmd} -i ${in}
38    description = bootstrap ${in}
39    generator = true
40
41rule g.bootstrap.chooseStage
42    command = ${g.bootstrap.chooseStageCmd} --current ${current} --bootstrap ${g.bootstrap.bootstrapManifest} -o ${out} ${in}
43    description = choosing next stage
44
45rule g.bootstrap.compile
46    command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.compileCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in}
47    description = compile ${out}
48
49rule g.bootstrap.cp
50    command = cp ${in} ${out}
51    description = cp ${out}
52
53rule g.bootstrap.gotestmain
54    command = ${g.bootstrap.goTestMainCmd} -o ${out} -pkg ${pkg} ${in}
55    description = gotestmain ${out}
56
57rule g.bootstrap.link
58    command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.linkCmd} -o ${out} ${libDirFlags} ${in}
59    description = link ${out}
60
61rule g.bootstrap.test
62    command = ${g.bootstrap.goTestRunnerCmd} -p ${pkgSrcDir} -f ${out} -- ${in} -test.short
63    description = test ${pkg}
64
65# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
66# Module:  blueprint
67# Variant:
68# Type:    bootstrap_go_package
69# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
70# Defined: build/blueprint/Blueprints:1:1
71
72build $
73        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $
74        : g.bootstrap.compile ${g.bootstrap.srcDir}/build/blueprint/context.go $
75        ${g.bootstrap.srcDir}/build/blueprint/live_tracker.go $
76        ${g.bootstrap.srcDir}/build/blueprint/mangle.go $
77        ${g.bootstrap.srcDir}/build/blueprint/module_ctx.go $
78        ${g.bootstrap.srcDir}/build/blueprint/ninja_defs.go $
79        ${g.bootstrap.srcDir}/build/blueprint/ninja_strings.go $
80        ${g.bootstrap.srcDir}/build/blueprint/ninja_writer.go $
81        ${g.bootstrap.srcDir}/build/blueprint/package_ctx.go $
82        ${g.bootstrap.srcDir}/build/blueprint/scope.go $
83        ${g.bootstrap.srcDir}/build/blueprint/singleton_ctx.go $
84        ${g.bootstrap.srcDir}/build/blueprint/unpack.go $
85        ${g.bootstrap.srcDir}/build/blueprint/context_test.go $
86        ${g.bootstrap.srcDir}/build/blueprint/ninja_strings_test.go $
87        ${g.bootstrap.srcDir}/build/blueprint/ninja_writer_test.go $
88        ${g.bootstrap.srcDir}/build/blueprint/splice_modules_test.go $
89        ${g.bootstrap.srcDir}/build/blueprint/unpack_test.go | $
90        ${g.bootstrap.compileCmd} $
91        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
92        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
93        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
94    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
95    pkgPath = github.com/google/blueprint
96default $
97        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a
98
99build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go: $
100        g.bootstrap.gotestmain $
101        ${g.bootstrap.srcDir}/build/blueprint/context_test.go $
102        ${g.bootstrap.srcDir}/build/blueprint/ninja_strings_test.go $
103        ${g.bootstrap.srcDir}/build/blueprint/ninja_writer_test.go $
104        ${g.bootstrap.srcDir}/build/blueprint/splice_modules_test.go $
105        ${g.bootstrap.srcDir}/build/blueprint/unpack_test.go | $
106        ${g.bootstrap.goTestMainCmd}
107    pkg = github.com/google/blueprint
108default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go
109
110build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a: $
111        g.bootstrap.compile $
112        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.go | $
113        ${g.bootstrap.compileCmd} $
114        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a
115    incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint/test
116    pkgPath = main
117default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a
118
119build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test: g.bootstrap.link $
120        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.a | $
121        ${g.bootstrap.linkCmd}
122    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
123default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test
124
125build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed: $
126        g.bootstrap.test $
127        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test | $
128        ${g.bootstrap.goTestRunnerCmd}
129    pkg = github.com/google/blueprint
130    pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint
131default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed
132
133build $
134        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
135        : g.bootstrap.compile ${g.bootstrap.srcDir}/build/blueprint/context.go $
136        ${g.bootstrap.srcDir}/build/blueprint/live_tracker.go $
137        ${g.bootstrap.srcDir}/build/blueprint/mangle.go $
138        ${g.bootstrap.srcDir}/build/blueprint/module_ctx.go $
139        ${g.bootstrap.srcDir}/build/blueprint/ninja_defs.go $
140        ${g.bootstrap.srcDir}/build/blueprint/ninja_strings.go $
141        ${g.bootstrap.srcDir}/build/blueprint/ninja_writer.go $
142        ${g.bootstrap.srcDir}/build/blueprint/package_ctx.go $
143        ${g.bootstrap.srcDir}/build/blueprint/scope.go $
144        ${g.bootstrap.srcDir}/build/blueprint/singleton_ctx.go $
145        ${g.bootstrap.srcDir}/build/blueprint/unpack.go | $
146        ${g.bootstrap.compileCmd} $
147        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
148        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
149        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
150        || ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed
151    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
152    pkgPath = github.com/google/blueprint
153default $
154        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
155
156# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
157# Module:  blueprint-bootstrap
158# Variant:
159# Type:    bootstrap_go_package
160# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
161# Defined: build/blueprint/Blueprints:80:1
162
163build $
164        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a $
165        : g.bootstrap.compile $
166        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/bootstrap.go $
167        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/cleanup.go $
168        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/command.go $
169        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/config.go $
170        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/doc.go $
171        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/writedocs.go | $
172        ${g.bootstrap.compileCmd} $
173        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
174        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
175        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
176        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
177        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
178        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
179    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
180    pkgPath = github.com/google/blueprint/bootstrap
181default $
182        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
183
184# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
185# Module:  blueprint-bootstrap-bpdoc
186# Variant:
187# Type:    bootstrap_go_package
188# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
189# Defined: build/blueprint/Blueprints:99:1
190
191build $
192        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
193        : g.bootstrap.compile $
194        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/bpdoc/bpdoc.go | $
195        ${g.bootstrap.compileCmd} $
196        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
197        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
198        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
199        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
200    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
201    pkgPath = github.com/google/blueprint/bootstrap/bpdoc
202default $
203        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
204
205# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
206# Module:  blueprint-deptools
207# Variant:
208# Type:    bootstrap_go_package
209# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
210# Defined: build/blueprint/Blueprints:46:1
211
212build $
213        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
214        : g.bootstrap.compile $
215        ${g.bootstrap.srcDir}/build/blueprint/deptools/depfile.go | $
216        ${g.bootstrap.compileCmd}
217    pkgPath = github.com/google/blueprint/deptools
218default $
219        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
220
221# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
222# Module:  blueprint-parser
223# Variant:
224# Type:    bootstrap_go_package
225# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
226# Defined: build/blueprint/Blueprints:31:1
227
228build $
229        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $
230        : g.bootstrap.compile $
231        ${g.bootstrap.srcDir}/build/blueprint/parser/modify.go $
232        ${g.bootstrap.srcDir}/build/blueprint/parser/parser.go $
233        ${g.bootstrap.srcDir}/build/blueprint/parser/printer.go $
234        ${g.bootstrap.srcDir}/build/blueprint/parser/sort.go $
235        ${g.bootstrap.srcDir}/build/blueprint/parser/parser_test.go $
236        ${g.bootstrap.srcDir}/build/blueprint/parser/printer_test.go | $
237        ${g.bootstrap.compileCmd}
238    pkgPath = github.com/google/blueprint/parser
239default $
240        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a
241
242build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go: $
243        g.bootstrap.gotestmain $
244        ${g.bootstrap.srcDir}/build/blueprint/parser/parser_test.go $
245        ${g.bootstrap.srcDir}/build/blueprint/parser/printer_test.go | $
246        ${g.bootstrap.goTestMainCmd}
247    pkg = github.com/google/blueprint/parser
248default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go
249
250build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a: $
251        g.bootstrap.compile $
252        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.go | $
253        ${g.bootstrap.compileCmd} $
254        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a
255    incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test
256    pkgPath = main
257default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a
258
259build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test: $
260        g.bootstrap.link $
261        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.a | $
262        ${g.bootstrap.linkCmd}
263    libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test
264default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test
265
266build ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed: $
267        g.bootstrap.test $
268        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test | $
269        ${g.bootstrap.goTestRunnerCmd}
270    pkg = github.com/google/blueprint/parser
271    pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint/parser
272default ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed
273
274build $
275        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
276        : g.bootstrap.compile $
277        ${g.bootstrap.srcDir}/build/blueprint/parser/modify.go $
278        ${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 | $
281        ${g.bootstrap.compileCmd} || $
282        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed
283    pkgPath = github.com/google/blueprint/parser
284default $
285        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a
286
287# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
288# Module:  blueprint-pathtools
289# Variant:
290# Type:    bootstrap_go_package
291# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
292# Defined: build/blueprint/Blueprints:52:1
293
294build $
295        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a $
296        : g.bootstrap.compile $
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.compileCmd}
301    pkgPath = github.com/google/blueprint/pathtools
302default $
303        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a
304
305build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go: $
306        g.bootstrap.gotestmain $
307        ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob_test.go | $
308        ${g.bootstrap.goTestMainCmd}
309    pkg = github.com/google/blueprint/pathtools
310default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go
311
312build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a: $
313        g.bootstrap.compile $
314        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.go | $
315        ${g.bootstrap.compileCmd} $
316        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a
317    incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test
318    pkgPath = main
319default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a
320
321build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test: $
322        g.bootstrap.link $
323        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.a | $
324        ${g.bootstrap.linkCmd}
325    libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test
326default ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test
327
328build ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed: $
329        g.bootstrap.test $
330        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test | $
331        ${g.bootstrap.goTestRunnerCmd}
332    pkg = github.com/google/blueprint/pathtools
333    pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint/pathtools
334default $
335        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed
336
337build $
338        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
339        : g.bootstrap.compile $
340        ${g.bootstrap.srcDir}/build/blueprint/pathtools/lists.go $
341        ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob.go | $
342        ${g.bootstrap.compileCmd} || $
343        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed
344    pkgPath = github.com/google/blueprint/pathtools
345default $
346        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a
347
348# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
349# Module:  blueprint-proptools
350# Variant:
351# Type:    bootstrap_go_package
352# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
353# Defined: build/blueprint/Blueprints:64:1
354
355build $
356        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a $
357        : g.bootstrap.compile $
358        ${g.bootstrap.srcDir}/build/blueprint/proptools/clone.go $
359        ${g.bootstrap.srcDir}/build/blueprint/proptools/extend.go $
360        ${g.bootstrap.srcDir}/build/blueprint/proptools/proptools.go $
361        ${g.bootstrap.srcDir}/build/blueprint/proptools/typeequal.go $
362        ${g.bootstrap.srcDir}/build/blueprint/proptools/clone_test.go $
363        ${g.bootstrap.srcDir}/build/blueprint/proptools/extend_test.go $
364        ${g.bootstrap.srcDir}/build/blueprint/proptools/typeequal_test.go | $
365        ${g.bootstrap.compileCmd}
366    pkgPath = github.com/google/blueprint/proptools
367default $
368        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a
369
370build ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.go: $
371        g.bootstrap.gotestmain $
372        ${g.bootstrap.srcDir}/build/blueprint/proptools/clone_test.go $
373        ${g.bootstrap.srcDir}/build/blueprint/proptools/extend_test.go $
374        ${g.bootstrap.srcDir}/build/blueprint/proptools/typeequal_test.go | $
375        ${g.bootstrap.goTestMainCmd}
376    pkg = github.com/google/blueprint/proptools
377default ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.go
378
379build ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.a: $
380        g.bootstrap.compile $
381        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.go | $
382        ${g.bootstrap.compileCmd} $
383        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a
384    incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test
385    pkgPath = main
386default ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.a
387
388build ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test: $
389        g.bootstrap.link $
390        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.a | $
391        ${g.bootstrap.linkCmd}
392    libDirFlags = -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test
393default ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test
394
395build ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed: $
396        g.bootstrap.test $
397        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test | $
398        ${g.bootstrap.goTestRunnerCmd}
399    pkg = github.com/google/blueprint/proptools
400    pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint/proptools
401default $
402        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed
403
404build $
405        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
406        : g.bootstrap.compile $
407        ${g.bootstrap.srcDir}/build/blueprint/proptools/clone.go $
408        ${g.bootstrap.srcDir}/build/blueprint/proptools/extend.go $
409        ${g.bootstrap.srcDir}/build/blueprint/proptools/proptools.go $
410        ${g.bootstrap.srcDir}/build/blueprint/proptools/typeequal.go | $
411        ${g.bootstrap.compileCmd} || $
412        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed
413    pkgPath = github.com/google/blueprint/proptools
414default $
415        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
416
417# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
418# Module:  choosestage
419# Variant:
420# Type:    bootstrap_core_go_binary
421# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
422# Defined: build/blueprint/Blueprints:142:1
423
424build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a: $
425        g.bootstrap.compile $
426        ${g.bootstrap.srcDir}/build/blueprint/choosestage/choosestage.go | $
427        ${g.bootstrap.compileCmd}
428    pkgPath = choosestage
429default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a
430
431build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out: $
432        g.bootstrap.link $
433        ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a | $
434        ${g.bootstrap.linkCmd}
435default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
436
437build ${g.bootstrap.BinDir}/choosestage: g.bootstrap.cp $
438        ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
439default ${g.bootstrap.BinDir}/choosestage
440
441# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
442# Module:  gotestmain
443# Variant:
444# Type:    bootstrap_core_go_binary
445# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
446# Defined: build/blueprint/Blueprints:132:1
447
448build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a: $
449        g.bootstrap.compile $
450        ${g.bootstrap.srcDir}/build/blueprint/gotestmain/gotestmain.go | $
451        ${g.bootstrap.compileCmd}
452    pkgPath = gotestmain
453default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a
454
455build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out: $
456        g.bootstrap.link $
457        ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a | $
458        ${g.bootstrap.linkCmd}
459default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
460
461build ${g.bootstrap.BinDir}/gotestmain: g.bootstrap.cp $
462        ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
463default ${g.bootstrap.BinDir}/gotestmain
464
465# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
466# Module:  gotestrunner
467# Variant:
468# Type:    bootstrap_core_go_binary
469# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
470# Defined: build/blueprint/Blueprints:137:1
471
472build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a: $
473        g.bootstrap.compile $
474        ${g.bootstrap.srcDir}/build/blueprint/gotestrunner/gotestrunner.go | $
475        ${g.bootstrap.compileCmd}
476    pkgPath = gotestrunner
477default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a
478
479build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out: $
480        g.bootstrap.link $
481        ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a | $
482        ${g.bootstrap.linkCmd}
483default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
484
485build ${g.bootstrap.BinDir}/gotestrunner: g.bootstrap.cp $
486        ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
487default ${g.bootstrap.BinDir}/gotestrunner
488
489# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
490# Module:  minibp
491# Variant:
492# Type:    bootstrap_core_go_binary
493# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
494# Defined: build/blueprint/Blueprints:111:1
495
496build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a: $
497        g.bootstrap.compile $
498        ${g.bootstrap.srcDir}/build/blueprint/bootstrap/minibp/main.go | $
499        ${g.bootstrap.compileCmd} $
500        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
501        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
502        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
503        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
504        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
505        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
506        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
507    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
508    pkgPath = minibp
509default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a
510
511build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out: g.bootstrap.link $
512        ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a | $
513        ${g.bootstrap.linkCmd}
514    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
515default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
516
517build ${g.bootstrap.BinDir}/minibp: g.bootstrap.cp $
518        ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
519default ${g.bootstrap.BinDir}/minibp
520
521# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
522# Singleton: bootstrap
523# Factory:   github.com/google/blueprint/bootstrap.newSingletonFactory.func1
524
525rule s.bootstrap.primarybp
526    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}
527    depfile = ${outfile}.d
528    description = minibp ${outfile}
529
530rule s.bootstrap.minibp
531    command = ${g.bootstrap.BinDir}/minibp ${runTests} -m ${g.bootstrap.bootstrapManifest} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in}
532    depfile = ${out}.d
533    description = minibp ${out}
534    generator = true
535
536build ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
537        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp: $
538        s.bootstrap.primarybp ${g.bootstrap.srcDir}/Android.bp | $
539        ${g.bootstrap.BinDir}/choosestage ${g.bootstrap.BinDir}/gotestmain $
540        ${g.bootstrap.BinDir}/gotestrunner ${g.bootstrap.BinDir}/minibp $
541        ${g.bootstrap.srcDir}/Android.bp $
542        ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $
543        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $
544        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a $
545        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a
546    outfile = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in
547    runTests = -t
548    timestamp = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
549    timestampdep = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp.d
550default ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
551        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
552
553build ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in: $
554        s.bootstrap.minibp ${g.bootstrap.srcDir}/Android.bp | $
555        ${g.bootstrap.bootstrapManifest} ${g.bootstrap.BinDir}/minibp
556    runTests = -t
557default ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
558
559build ${g.bootstrap.buildDir}/.bootstrap/notAFile: phony
560default ${g.bootstrap.buildDir}/.bootstrap/notAFile
561
562build ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in: $
563        g.bootstrap.chooseStage $
564        ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in $
565        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in | $
566        ${g.bootstrap.chooseStageCmd} ${g.bootstrap.bootstrapManifest} $
567        ${g.bootstrap.buildDir}/.bootstrap/notAFile
568    current = ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
569default ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in
570
571build ${g.bootstrap.buildDir}/build.ninja: g.bootstrap.bootstrap $
572        ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in | $
573        ${g.bootstrap.bootstrapCmd}
574default ${g.bootstrap.buildDir}/build.ninja
575
576