Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/bash | |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 # | |
| 6 | |
| 7 # nacl-boost_1_47_0.sh | |
| 8 # | |
| 9 # usage: nacl-boost_1_47_0.sh | |
| 10 # | |
| 11 # this script downloads, patches, and builds boost for Native Client | |
| 12 # | |
| 13 | |
| 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/bo ost_1_47_0.tar.bz2 | |
| 15 #readonly PATCH_FILE=nacl-SDL_net-1.2.7.patch | |
| 16 readonly PACKAGE_NAME=boost_1_47_0 | |
| 17 | |
| 18 source ../../build_tools/common.sh | |
| 19 | |
| 20 CustomConfigureStep() { | |
| 21 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | |
| 22 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam | |
| 23 } | |
| 24 | |
| 25 CustomBuildStep() { | |
| 26 ./bootstrap.sh | |
| 27 | |
| 28 if [ $NACL_GLIBC = "1" ] ; then | |
| 29 ./bjam install \ | |
| 30 --prefix=${NACL_SDK_USR} \ | |
| 31 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()
| |
| 32 -d+2 \ | |
| 33 --without-python \ | |
| 34 --without-signals \ | |
| 35 --without-mpi | |
| 36 else | |
| 37 ./bjam install \ | |
| 38 --prefix=${NACL_SDK_USR} \ | |
| 39 -d+2 \ | |
| 40 --with-date_time \ | |
| 41 --with-program_options | |
| 42 fi | |
| 43 } | |
| 44 | |
| 45 CustomPackageInstall() { | |
| 46 DefaultPreInstallStep | |
| 47 DefaultDownloadBzipStep | |
| 48 DefaultExtractBzipStep | |
| 49 # No patch needed. | |
| 50 CustomConfigureStep | |
| 51 CustomBuildStep | |
| 52 # Installation is done in the build step. | |
| 53 DefaultCleanUpStep | |
| 54 } | |
| 55 | |
| 56 | |
| 57 CustomPackageInstall | |
| 58 exit 0 | |
| OLD | NEW |