Index: ports/ipython_extension/build.sh |
diff --git a/ports/ipython_extension/build.sh b/ports/ipython_extension/build.sh |
new file mode 100644 |
index 0000000000000000000000000000000000000000..461c19096905d9f4acf4fbff3b0219deb4fff877 |
--- /dev/null |
+++ b/ports/ipython_extension/build.sh |
@@ -0,0 +1,42 @@ |
+#!/bin/bash |
+# Copyright (c) 2013 The Native Client Authors. All rights reserved. |
Sam Clegg
2014/02/18 23:39:31
2014
|
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+BUILD_DIR=${START_DIR} |
+ |
+BuildStep() { |
+ # The sample is built using the NaCl SDK common.mk system. |
+ # We override $(OUTBASE) to force the build system to put |
+ # all its artifacts in ${NACL_PACKAGES_REPOSITORY} rather |
+ # than alongside the Makefile. |
+ export OUTBASE=${SRC_DIR} |
+ export NACLPORTS_INCLUDE |
+ export NACLPORTS_PREFIX |
+ export NACL_PACKAGES_PUBLISH |
+ export NACL_SRC |
+ export CFLAGS=${NACLPORTS_CFLAGS} |
+ export CXXFLAGS=${NACLPORTS_CXXFLAGS} |
+ export LDFLAGS=${NACLPORTS_LDFLAGS} |
+ |
+ MakeDir ${OUTBASE} |
+ if [ "${NACL_GLIBC}" = "1" ]; then |
+ MAKEFLAGS+=" TOOLCHAIN=glibc" |
+ elif [ "${NACL_ARCH}" = "pnacl" ]; then |
+ MAKEFLAGS+=" TOOLCHAIN=pnacl" |
+ else |
+ MAKEFLAGS+=" TOOLCHAIN=newlib" |
+ fi |
+ if [ "${NACL_DEBUG}" = "1" ]; then |
+ MAKEFLAGS+=" CONFIG=Debug" |
+ else |
+ MAKEFLAGS+=" CONFIG=Release" |
+ fi |
+ if [ "${NACL_ARCH}" != "pnacl" ]; then |
+ MAKEFLAGS+=" NACL_ARCH=${NACL_ARCH_ALT}" |
+ fi |
+ MAKEFLAGS+=" V=1" |
+ export MAKEFLAGS |
+ ChangeDir ${START_DIR} |
+ DefaultBuildStep |
Sam Clegg
2014/02/18 23:39:31
You should be able to just call BuildStep_SDKBuild
|
+} |