Chromium Code Reviews| 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,58 @@ |
| +#!/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 |
| + |
| + if [ $NACL_GLIBC = "1" ] ; then |
| + ./bjam install \ |
| + --prefix=${NACL_SDK_USR} \ |
| + link=static \ |
|
khim
2011/09/27 18:17:54
Hmm... This is kind of strange? Why are we install
Evgeniy Stepanov
2011/09/27 18:38:28
That's a historic artifact. I think everything I u
Evgeniy Stepanov
2011/09/28 00:38:07
I'd like to point out that DefaultConfigureStep()
|
| + -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 |
| + * |