Initial soong

This creates the infrastructure that will be used to bootstrap the
soong primary builder through blueprint and ninja.

Change-Id: Iebed8f369e4db41b207d0b2a48a7a54a4dd7d45d
diff --git a/soong.in b/soong.in
new file mode 100644
index 0000000..51882db
--- /dev/null
+++ b/soong.in
@@ -0,0 +1,24 @@
+#!/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} "$@"