25 lines
708 B
Text
25 lines
708 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Determine the build directory location based on the location of this script.
|
||
|
BPBUILD="${BASH_SOURCE[0]}"
|
||
|
BUILDDIR=`dirname "${BASH_SOURCE[0]}"`
|
||
|
|
||
|
# The source directory path and operating system will get substituted in by
|
||
|
# the bootstrap script.
|
||
|
SRCDIR_IN=@@SrcDir@@
|
||
|
if [[ ${SRCDIR_IN:0:1} == '/' ]]; then
|
||
|
# SRCDIR_IN is an absolute path
|
||
|
SRCDIR=${SRCDIR_IN}
|
||
|
else
|
||
|
# SRCDIR_IN is a relative path
|
||
|
SRCDIR=${BUILDDIR}/${SRCDIR_IN}
|
||
|
fi
|
||
|
|
||
|
PREBUILTOS=@@PrebuiltOS@@
|
||
|
|
||
|
# Let Blueprint know that the Ninja we're using performs multiple passes that
|
||
|
# can regenerate the build manifest.
|
||
|
export BLUEPRINT_NINJA_HAS_MULTIPASS=1
|
||
|
|
||
|
${SRCDIR}/prebuilts/ninja/${PREBUILTOS}/ninja -C ${BUILDDIR} "$@"
|