Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: ports/ipython_extension/build.sh

Issue 165473002: Adds an IPython kernel running in NaCl, and a wrapper as a Chrome extension. Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+}

Powered by Google App Engine
This is Rietveld 408576698