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

Unified Diff: libraries/boost_1_47_0/nacl-boost_1_47_0.sh

Issue 8060015: Update boost to 1.47.0 and, with glibc, build more boost libraries. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « libraries/boost_1_47_0/boost_1_47_0.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/boost_1_47_0/nacl-boost_1_47_0.sh
===================================================================
--- libraries/boost_1_47_0/nacl-boost_1_47_0.sh (revision 0)
+++ libraries/boost_1_47_0/nacl-boost_1_47_0.sh (revision 0)
@@ -0,0 +1,59 @@
+#!/bin/bash
+# Copyright (c) 2011 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+
+# nacl-boost_1_47_0.sh
+#
+# usage: nacl-boost_1_47_0.sh
+#
+# this script downloads, patches, and builds boost for Native Client
+#
+
+readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/boost_1_47_0.tar.bz2
+#readonly PATCH_FILE=nacl-SDL_net-1.2.7.patch
+readonly PACKAGE_NAME=boost_1_47_0
+
+source ../../build_tools/common.sh
+
+CustomConfigureStep() {
+ ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
+ echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam
+}
+
+CustomBuildStep() {
+ ./bootstrap.sh
+
+ # TODO(eugenis): build dynamic libraries, too
+ if [ $NACL_GLIBC = "1" ] ; then
+ ./bjam install \
+ --prefix=${NACL_SDK_USR} \
+ link=static \
+ -d+2 \
+ --without-python \
+ --without-signals \
+ --without-mpi
+ else
+ ./bjam install \
+ --prefix=${NACL_SDK_USR} \
+ -d+2 \
+ --with-date_time \
+ --with-program_options
+ fi
+}
+
+CustomPackageInstall() {
+ DefaultPreInstallStep
+ DefaultDownloadBzipStep
+ DefaultExtractBzipStep
+ # No patch needed.
+ CustomConfigureStep
+ CustomBuildStep
+ # Installation is done in the build step.
+ DefaultCleanUpStep
+}
+
+
+CustomPackageInstall
+exit 0
Property changes on: libraries/boost_1_47_0/nacl-boost_1_47_0.sh
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « libraries/boost_1_47_0/boost_1_47_0.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698