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

Side by Side Diff: examples/needs_porting/xaos/xaos_tool.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: rebase Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « examples/graphics/xaos/nacl-xaos.sh ('k') | examples/systems/bochs-2.4.6/nacl-bochs-2.4.6.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « examples/graphics/xaos/nacl-xaos.sh ('k') | examples/systems/bochs-2.4.6/nacl-bochs-2.4.6.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698