blob: 5787c729bbec886ede0796821bdac17d586a2deb [file] [log] [blame]
Dan Willemsen1e723212017-07-18 19:37:37 -07001# Included by .minibootstrap/build.ninja, which is written by bootstrap.bash
2#
3# Expected input variables:
4# topFile - The path to the top-level Blueprints(etc) file
5# extraArgs - Any extra arguments to pass to minibp (-t)
6# bootstrapBuildDir - The path to the build directory
7
8ninja_required_version = 1.7.0
9
Dan Willemsenab223a52018-07-05 21:56:59 -070010myGlobs = ${bootstrapBuildDir}/.minibootstrap/build-globs.ninja
11subninja ${myGlobs}
12
Dan Willemsen1e723212017-07-18 19:37:37 -070013rule build.ninja
Dan Willemsenab223a52018-07-05 21:56:59 -070014 command = ${builder} ${extraArgs} -b ${bootstrapBuildDir} -n ${builddir} -d ${out}.d -globFile ${myGlobs} -o ${out} ${in}
Dan Willemsen2d9b59b2017-12-18 09:14:16 -080015 deps = gcc
Dan Willemsen1e723212017-07-18 19:37:37 -070016 depfile = ${out}.d
17 description = ${builder} ${out}
18
19bootstrapNinja = ${bootstrapBuildDir}/.bootstrap/build.ninja
20
21build ${bootstrapNinja}: build.ninja ${topFile} | ${builder}
22 builder = ${bootstrapBuildDir}/.minibootstrap/minibp
23default ${bootstrapNinja}