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 rule build.ninja 11 command = ${builder} ${extraArgs} -b ${bootstrapBuildDir} -n ${builddir} -d ${out}.d -o ${out} ${in} 12 deps = gcc 13 depfile = ${out}.d 14 description = ${builder} ${out} 15 16 bootstrapNinja = ${bootstrapBuildDir}/.bootstrap/build.ninja 17 18 build ${bootstrapNinja}: build.ninja ${topFile} | ${builder} 19 builder = ${bootstrapBuildDir}/.minibootstrap/minibp 20 default ${bootstrapNinja} 21