Dan Willemsen | 1e72321 | 2017-07-18 19:37:37 -0700 | [diff] [blame] | 1 | # 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 | |
| 8 | ninja_required_version = 1.7.0 |
| 9 | |
Dan Willemsen | ab223a5 | 2018-07-05 21:56:59 -0700 | [diff] [blame] | 10 | myGlobs = ${bootstrapBuildDir}/.minibootstrap/build-globs.ninja |
| 11 | subninja ${myGlobs} |
| 12 | |
Dan Willemsen | 1e72321 | 2017-07-18 19:37:37 -0700 | [diff] [blame] | 13 | rule build.ninja |
Dan Willemsen | ab223a5 | 2018-07-05 21:56:59 -0700 | [diff] [blame] | 14 | command = ${builder} ${extraArgs} -b ${bootstrapBuildDir} -n ${builddir} -d ${out}.d -globFile ${myGlobs} -o ${out} ${in} |
Dan Willemsen | 2d9b59b | 2017-12-18 09:14:16 -0800 | [diff] [blame] | 15 | deps = gcc |
Dan Willemsen | 1e72321 | 2017-07-18 19:37:37 -0700 | [diff] [blame] | 16 | depfile = ${out}.d |
| 17 | description = ${builder} ${out} |
| 18 | |
| 19 | bootstrapNinja = ${bootstrapBuildDir}/.bootstrap/build.ninja |
| 20 | |
| 21 | build ${bootstrapNinja}: build.ninja ${topFile} | ${builder} |
| 22 | builder = ${bootstrapBuildDir}/.minibootstrap/minibp |
| 23 | default ${bootstrapNinja} |