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.linkCmd = @@GoLink@@
27
28g.bootstrap.srcDir = @@SrcDir@@
29
30builddir = ${g.bootstrap.buildDir}/.minibootstrap
31
32rule g.bootstrap.bootstrap
33    command = BUILDDIR=${g.bootstrap.buildDir} ${g.bootstrap.bootstrapCmd} -i ${in}
34    description = bootstrap ${in}
35    generator = true
36
37rule g.bootstrap.chooseStage
38    command = ${g.bootstrap.chooseStageCmd} --current ${current} --bootstrap ${g.bootstrap.bootstrapManifest} -o ${out} ${in}
39    description = choosing next stage
40
41rule g.bootstrap.compile
42    command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.compileCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in}
43    description = compile ${out}
44
45rule g.bootstrap.cp
46    command = cp ${in} ${out}
47    description = cp ${out}
48
49rule g.bootstrap.link
50    command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.linkCmd} -o ${out} ${libDirFlags} ${in}
51    description = link ${out}
52
53# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
54# Module:  blueprint
55# Variant:
56# Type:    bootstrap_go_package
57# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
58# Defined: Blueprints:1:1
59
60build $
61        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
62        : g.bootstrap.compile ${g.bootstrap.srcDir}/context.go $
63        ${g.bootstrap.srcDir}/live_tracker.go ${g.bootstrap.srcDir}/mangle.go $
64        ${g.bootstrap.srcDir}/module_ctx.go $
65        ${g.bootstrap.srcDir}/ninja_defs.go $
66        ${g.bootstrap.srcDir}/ninja_strings.go $
67        ${g.bootstrap.srcDir}/ninja_writer.go $
68        ${g.bootstrap.srcDir}/package_ctx.go ${g.bootstrap.srcDir}/scope.go $
69        ${g.bootstrap.srcDir}/singleton_ctx.go ${g.bootstrap.srcDir}/unpack.go $
70        | ${g.bootstrap.compileCmd} $
71        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
72        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
73        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
74    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
75    pkgPath = github.com/google/blueprint
76default $
77        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
78
79# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
80# Module:  blueprint-bootstrap
81# Variant:
82# Type:    bootstrap_go_package
83# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
84# Defined: Blueprints:80:1
85
86build $
87        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a $
88        : g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/bootstrap.go $
89        ${g.bootstrap.srcDir}/bootstrap/cleanup.go $
90        ${g.bootstrap.srcDir}/bootstrap/command.go $
91        ${g.bootstrap.srcDir}/bootstrap/config.go $
92        ${g.bootstrap.srcDir}/bootstrap/doc.go $
93        ${g.bootstrap.srcDir}/bootstrap/writedocs.go | $
94        ${g.bootstrap.compileCmd} $
95        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
96        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
97        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
98        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
99        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
100        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
101    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
102    pkgPath = github.com/google/blueprint/bootstrap
103default $
104        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
105
106# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
107# Module:  blueprint-bootstrap-bpdoc
108# Variant:
109# Type:    bootstrap_go_package
110# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
111# Defined: Blueprints:99:1
112
113build $
114        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
115        : g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/bpdoc/bpdoc.go | $
116        ${g.bootstrap.compileCmd} $
117        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
118        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
119        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
120        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a
121    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
122    pkgPath = github.com/google/blueprint/bootstrap/bpdoc
123default $
124        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a
125
126# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
127# Module:  blueprint-deptools
128# Variant:
129# Type:    bootstrap_go_package
130# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
131# Defined: Blueprints:46:1
132
133build $
134        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
135        : g.bootstrap.compile ${g.bootstrap.srcDir}/deptools/depfile.go | $
136        ${g.bootstrap.compileCmd}
137    pkgPath = github.com/google/blueprint/deptools
138default $
139        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
140
141# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
142# Module:  blueprint-parser
143# Variant:
144# Type:    bootstrap_go_package
145# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
146# Defined: Blueprints:31:1
147
148build $
149        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
150        : g.bootstrap.compile ${g.bootstrap.srcDir}/parser/modify.go $
151        ${g.bootstrap.srcDir}/parser/parser.go $
152        ${g.bootstrap.srcDir}/parser/printer.go $
153        ${g.bootstrap.srcDir}/parser/sort.go | ${g.bootstrap.compileCmd}
154    pkgPath = github.com/google/blueprint/parser
155default $
156        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a
157
158# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
159# Module:  blueprint-pathtools
160# Variant:
161# Type:    bootstrap_go_package
162# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
163# Defined: Blueprints:52:1
164
165build $
166        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
167        : g.bootstrap.compile ${g.bootstrap.srcDir}/pathtools/lists.go $
168        ${g.bootstrap.srcDir}/pathtools/glob.go | ${g.bootstrap.compileCmd}
169    pkgPath = github.com/google/blueprint/pathtools
170default $
171        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a
172
173# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
174# Module:  blueprint-proptools
175# Variant:
176# Type:    bootstrap_go_package
177# Factory: github.com/google/blueprint/bootstrap.newGoPackageModuleFactory.func1
178# Defined: Blueprints:64:1
179
180build $
181        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
182        : g.bootstrap.compile ${g.bootstrap.srcDir}/proptools/clone.go $
183        ${g.bootstrap.srcDir}/proptools/extend.go $
184        ${g.bootstrap.srcDir}/proptools/proptools.go $
185        ${g.bootstrap.srcDir}/proptools/typeequal.go | $
186        ${g.bootstrap.compileCmd}
187    pkgPath = github.com/google/blueprint/proptools
188default $
189        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a
190
191# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
192# Module:  choosestage
193# Variant:
194# Type:    bootstrap_core_go_binary
195# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
196# Defined: Blueprints:142:1
197
198build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a: $
199        g.bootstrap.compile ${g.bootstrap.srcDir}/choosestage/choosestage.go | $
200        ${g.bootstrap.compileCmd}
201    pkgPath = choosestage
202default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a
203
204build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out: $
205        g.bootstrap.link $
206        ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a | $
207        ${g.bootstrap.linkCmd}
208default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
209
210build ${g.bootstrap.BinDir}/choosestage: g.bootstrap.cp $
211        ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out
212default ${g.bootstrap.BinDir}/choosestage
213
214# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
215# Module:  gotestmain
216# Variant:
217# Type:    bootstrap_core_go_binary
218# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
219# Defined: Blueprints:132:1
220
221build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a: $
222        g.bootstrap.compile ${g.bootstrap.srcDir}/gotestmain/gotestmain.go | $
223        ${g.bootstrap.compileCmd}
224    pkgPath = gotestmain
225default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a
226
227build ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out: $
228        g.bootstrap.link $
229        ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/gotestmain.a | $
230        ${g.bootstrap.linkCmd}
231default ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
232
233build ${g.bootstrap.BinDir}/gotestmain: g.bootstrap.cp $
234        ${g.bootstrap.buildDir}/.bootstrap/gotestmain/obj/a.out
235default ${g.bootstrap.BinDir}/gotestmain
236
237# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
238# Module:  gotestrunner
239# Variant:
240# Type:    bootstrap_core_go_binary
241# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
242# Defined: Blueprints:137:1
243
244build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a: $
245        g.bootstrap.compile ${g.bootstrap.srcDir}/gotestrunner/gotestrunner.go $
246        | ${g.bootstrap.compileCmd}
247    pkgPath = gotestrunner
248default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a
249
250build ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out: $
251        g.bootstrap.link $
252        ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/gotestrunner.a | $
253        ${g.bootstrap.linkCmd}
254default ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
255
256build ${g.bootstrap.BinDir}/gotestrunner: g.bootstrap.cp $
257        ${g.bootstrap.buildDir}/.bootstrap/gotestrunner/obj/a.out
258default ${g.bootstrap.BinDir}/gotestrunner
259
260# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
261# Module:  minibp
262# Variant:
263# Type:    bootstrap_core_go_binary
264# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1
265# Defined: Blueprints:111:1
266
267build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a: $
268        g.bootstrap.compile ${g.bootstrap.srcDir}/bootstrap/minibp/main.go | $
269        ${g.bootstrap.compileCmd} $
270        ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
271        ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $
272        ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $
273        ${g.bootstrap.buildDir}/.bootstrap/blueprint/pkg/github.com/google/blueprint.a $
274        ${g.bootstrap.buildDir}/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a $
275        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap-bpdoc/pkg/github.com/google/blueprint/bootstrap/bpdoc.a $
276        ${g.bootstrap.buildDir}/.bootstrap/blueprint-bootstrap/pkg/github.com/google/blueprint/bootstrap.a
277    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
278    pkgPath = minibp
279default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a
280
281build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out: g.bootstrap.link $
282        ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/minibp.a | $
283        ${g.bootstrap.linkCmd}
284    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
285default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
286
287build ${g.bootstrap.BinDir}/minibp: g.bootstrap.cp $
288        ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out
289default ${g.bootstrap.BinDir}/minibp
290
291# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
292# Singleton: bootstrap
293# Factory:   github.com/google/blueprint/bootstrap.newSingletonFactory.func1
294
295rule s.bootstrap.primarybp
296    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}
297    depfile = ${outfile}.d
298    description = minibp ${outfile}
299
300rule s.bootstrap.minibp
301    command = ${g.bootstrap.BinDir}/minibp ${runTests} -m ${g.bootstrap.bootstrapManifest} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in}
302    depfile = ${out}.d
303    description = minibp ${out}
304    generator = true
305
306build ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
307        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp: $
308        s.bootstrap.primarybp ${g.bootstrap.srcDir}/Blueprints | $
309        ${g.bootstrap.BinDir}/choosestage ${g.bootstrap.BinDir}/gotestmain $
310        ${g.bootstrap.BinDir}/gotestrunner ${g.bootstrap.BinDir}/minibp $
311        ${g.bootstrap.srcDir}/Blueprints
312    outfile = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in
313    timestamp = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
314    timestampdep = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp.d
315default ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $
316        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp
317
318build ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in: $
319        s.bootstrap.minibp ${g.bootstrap.srcDir}/Blueprints | $
320        ${g.bootstrap.bootstrapManifest} ${g.bootstrap.BinDir}/minibp
321default ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
322
323build ${g.bootstrap.buildDir}/.bootstrap/notAFile: phony
324default ${g.bootstrap.buildDir}/.bootstrap/notAFile
325
326build ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in: $
327        g.bootstrap.chooseStage $
328        ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in $
329        ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in | $
330        ${g.bootstrap.chooseStageCmd} ${g.bootstrap.bootstrapManifest} $
331        ${g.bootstrap.buildDir}/.bootstrap/notAFile
332    current = ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in
333default ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in
334
335build ${g.bootstrap.buildDir}/build.ninja: g.bootstrap.bootstrap $
336        ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in | $
337        ${g.bootstrap.bootstrapCmd}
338default ${g.bootstrap.buildDir}/build.ninja
339
340