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
8ninja_required_version = 1.7.0
9
10myGlobs = ${bootstrapBuildDir}/.minibootstrap/build-globs.ninja
11subninja ${myGlobs}
12
13rule build.ninja
14    command = ${builder} ${extraArgs} -b ${bootstrapBuildDir} -n ${builddir} -d ${out}.d -globFile ${myGlobs} -o ${out} ${in}
15    deps = gcc
16    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}
24