platform_build_soong/soong.in
Colin Cross e441b9df9a Initial soong
This creates the infrastructure that will be used to bootstrap the
soong primary builder through blueprint and ninja.

Change-Id: Iebed8f369e4db41b207d0b2a48a7a54a4dd7d45d
2015-03-04 16:13:27 -08:00

24 lines
708 B
Bash

#!/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} "$@"