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 10 myGlobs = ${bootstrapBuildDir}/.minibootstrap/build-globs.ninja 11 subninja ${myGlobs} 12 13 rule 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 19 bootstrapNinja = ${bootstrapBuildDir}/.bootstrap/build.ninja 20 21 build ${bootstrapNinja}: build.ninja ${topFile} | ${builder} 22 builder = ${bootstrapBuildDir}/.minibootstrap/minibp 23 default ${bootstrapNinja} 24