OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 | 6 |
7 # nacl-agg-2.5.sh | 7 # nacl-agg-2.5.sh |
8 # | 8 # |
9 # usage: nacl-agg-2.5.sh | 9 # usage: nacl-agg-2.5.sh |
10 # | 10 # |
11 # this script downloads, patches, and builds agg for Native Client | 11 # this script downloads, patches, and builds agg for Native Client |
12 # | 12 # |
13 | 13 |
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ag
g-2.5.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ag
g-2.5.tar.gz |
15 #readonly URL=http://www.antigrain.com/agg-2.5.tar.gz | 15 #readonly URL=http://www.antigrain.com/agg-2.5.tar.gz |
16 readonly PATCH_FILE=nacl-agg-2.5.patch | 16 readonly PATCH_FILE=nacl-agg-2.5.patch |
17 readonly PACKAGE_NAME=agg-2.5 | 17 readonly PACKAGE_NAME=agg-2.5 |
18 | 18 |
19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
20 | 20 |
21 | 21 |
22 CustomBuildStep() { | 22 CustomBuildStep() { |
23 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 23 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
24 if [ ${NACL_PACKAGES_BITSIZE} = "pnacl" ] ; then | 24 if [ ${NACL_ARCH} = "pnacl" ] ; then |
25 extra="" | 25 extra="" |
26 else | 26 else |
27 extra="-O3 -mfpmath=sse -msse -fomit-frame-pointer" | 27 extra="-O3 -mfpmath=sse -msse -fomit-frame-pointer" |
28 fi | 28 fi |
29 AGGCXXFLAGS="${extra}" make NACLCXX=${NACLCXX} NACLCC=${NACLCC} NACLAR=${NACLA
R} | 29 AGGCXXFLAGS="${extra}" make NACLCXX=${NACLCXX} NACLCC=${NACLCC} NACLAR=${NACLA
R} |
30 } | 30 } |
31 | 31 |
32 | 32 |
33 CustomInstallStep() { | 33 CustomInstallStep() { |
34 # copy libs and headers manually | 34 # copy libs and headers manually |
(...skipping 16 matching lines...) Expand all Loading... |
51 DefaultExtractStep | 51 DefaultExtractStep |
52 DefaultPatchStep | 52 DefaultPatchStep |
53 CustomBuildStep | 53 CustomBuildStep |
54 CustomInstallStep | 54 CustomInstallStep |
55 DefaultCleanUpStep | 55 DefaultCleanUpStep |
56 } | 56 } |
57 | 57 |
58 | 58 |
59 CustomPackageInstall | 59 CustomPackageInstall |
60 exit 0 | 60 exit 0 |
OLD | NEW |