OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2008 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2008 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that be | 3 # Use of this source code is governed by a BSD-style license that be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 | 6 |
7 #@ xaos_tool.sh | 7 #@ xaos_tool.sh |
8 #@ | 8 #@ |
9 #@ usage: xaos_tool.sh <mode> | 9 #@ usage: xaos_tool.sh <mode> |
10 #@ | 10 #@ |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 # params (tmp, install) | 111 # params (tmp, install) |
112 BuildXaos() { | 112 BuildXaos() { |
113 Banner "configuring xaos" | 113 Banner "configuring xaos" |
114 cd $1 | 114 cd $1 |
115 export PATH="$2/bin:${PATH}" | 115 export PATH="$2/bin:${PATH}" |
116 export CC=${NACLCC} | 116 export CC=${NACLCC} |
117 export AR=${NACLAR} | 117 export AR=${NACLAR} |
118 export RANLIB=${NACLRANLIB} | 118 export RANLIB=${NACLRANLIB} |
119 export LDFLAGS="-static" | 119 export LDFLAGS="-static" |
120 export CFLAGS="" | 120 export CFLAGS="${NACLPORTS_CFLAGS}" |
121 export CFLAGS="${CFLAGS} -DNACL_DIM_H=${NACL_DIM_H}" | 121 export CFLAGS="${CFLAGS} -DNACL_DIM_H=${NACL_DIM_H}" |
122 export CFLAGS="${CFLAGS} -DNACL_DIM_W=${NACL_DIM_W}" | 122 export CFLAGS="${CFLAGS} -DNACL_DIM_W=${NACL_DIM_W}" |
123 export CFLAGS="${CFLAGS} -I${DIR_AV_INCLUDE}" | 123 export CFLAGS="${CFLAGS} -I${DIR_AV_INCLUDE}" |
124 export LIBS="-L${DIR_AV_LIB} -lav -lsrpc -lpthread" | 124 export LIBS="-L${DIR_AV_LIB} -lav -lsrpc -lpthread" |
125 rm -rf xaos-build | 125 rm -rf xaos-build |
126 # sadly xaos seem wants to be built in-place | 126 # sadly xaos seem wants to be built in-place |
127 cp -r XaoS-3.4 xaos-build | 127 cp -r XaoS-3.4 xaos-build |
128 cd xaos-build | 128 cd xaos-build |
129 ../XaoS-3.4/configure\ | 129 ../XaoS-3.4/configure\ |
130 --with-png=no\ | 130 --with-png=no\ |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 | 204 |
205 ###################################################################### | 205 ###################################################################### |
206 # Mode is not handled | 206 # Mode is not handled |
207 ###################################################################### | 207 ###################################################################### |
208 | 208 |
209 echo "unknown mode: ${MODE}" | 209 echo "unknown mode: ${MODE}" |
210 exit -1 | 210 exit -1 |
211 | 211 |
212 | 212 |
OLD | NEW |