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