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

Side by Side Diff: examples/graphics/xaos/nacl-xaos.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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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-xaos.sh 7 # nacl-xaos.sh
8 # 8 #
9 # usage: nacl-xoas.sh 9 # usage: nacl-xoas.sh
10 # 10 #
(...skipping 30 matching lines...) Expand all
41 -Wl,--undefined=PPP_InitializeModule \ 41 -Wl,--undefined=PPP_InitializeModule \
42 -Wl,--undefined=original_main" 42 -Wl,--undefined=original_main"
43 if [ ${NACL_ARCH} = "pnacl" ] ; then 43 if [ ${NACL_ARCH} = "pnacl" ] ; then
44 export CFLAGS="${CFLAGS} -O3" 44 export CFLAGS="${CFLAGS} -O3"
45 export LDFLAGS="${LDFLAGS} -O0 -static" 45 export LDFLAGS="${LDFLAGS} -O0 -static"
46 else 46 else
47 export CFLAGS="${CFLAGS} -O2" 47 export CFLAGS="${CFLAGS} -O2"
48 fi 48 fi
49 export AR=${NACLAR} 49 export AR=${NACLAR}
50 export RANLIB=${NACLRANLIB} 50 export RANLIB=${NACLRANLIB}
51 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 51 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
52 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 52 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
53 53
54 export LIBS="-L${NACL_SDK_USR_LIB} -lppapi -lpthread -lstdc++ -lm -lnosys" 54 export LIBS="-L${NACLPORTS_LIBDIR} -lppapi -lpthread -lstdc++ -lm -lnosys"
55 55
56 CONFIG_FLAGS="--with-png=no \ 56 CONFIG_FLAGS="--with-png=no \
57 --with-long-double=no \ 57 --with-long-double=no \
58 --host=nacl \ 58 --host=nacl \
59 --with-x11-driver=no \ 59 --with-x11-driver=no \
60 --with-sffe=no" 60 --with-sffe=no"
61 61
62 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 62 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
63 63
64 # xaos does not work with a build dir which is separate from the 64 # xaos does not work with a build dir which is separate from the
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 DefaultBuildStep 101 DefaultBuildStep
102 if [ ${NACL_ARCH} = "pnacl" ] ; then 102 if [ ${NACL_ARCH} = "pnacl" ] ; then
103 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos 103 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos
104 fi 104 fi
105 CustomInstallStep 105 CustomInstallStep
106 DefaultCleanUpStep 106 DefaultCleanUpStep
107 } 107 }
108 108
109 CustomPackageInstall 109 CustomPackageInstall
110 exit 0 110 exit 0
OLDNEW
« no previous file with comments | « examples/games/snes9x-1.53/nacl-snes9x-1.53.sh ('k') | examples/needs_porting/xaos/xaos_tool.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698