Colin Cross | e441b9d | 2015-01-26 16:30:13 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Determine the build directory location based on the location of this script. |
| 4 | BPBUILD="${BASH_SOURCE[0]}" |
| 5 | BUILDDIR=`dirname "${BASH_SOURCE[0]}"` |
| 6 | |
| 7 | # The source directory path and operating system will get substituted in by |
| 8 | # the bootstrap script. |
| 9 | SRCDIR_IN=@@SrcDir@@ |
| 10 | if [[ ${SRCDIR_IN:0:1} == '/' ]]; then |
| 11 | # SRCDIR_IN is an absolute path |
| 12 | SRCDIR=${SRCDIR_IN} |
| 13 | else |
| 14 | # SRCDIR_IN is a relative path |
| 15 | SRCDIR=${BUILDDIR}/${SRCDIR_IN} |
| 16 | fi |
| 17 | |
| 18 | PREBUILTOS=@@PrebuiltOS@@ |
| 19 | |
| 20 | # Let Blueprint know that the Ninja we're using performs multiple passes that |
| 21 | # can regenerate the build manifest. |
| 22 | export BLUEPRINT_NINJA_HAS_MULTIPASS=1 |
| 23 | |
| 24 | ${SRCDIR}/prebuilts/ninja/${PREBUILTOS}/ninja -C ${BUILDDIR} "$@" |