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

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: 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 -Wl,--undefined=PPP_InitializeModule \ 44 -Wl,--undefined=PPP_InitializeModule \
45 -Wl,--undefined=original_main" 45 -Wl,--undefined=original_main"
46 if [ ${NACL_ARCH} = "pnacl" ] ; then 46 if [ ${NACL_ARCH} = "pnacl" ] ; then
47 export CFLAGS="${CFLAGS} -O3" 47 export CFLAGS="${CFLAGS} -O3"
48 export LDFLAGS="${LDFLAGS} -O0 -static" 48 export LDFLAGS="${LDFLAGS} -O0 -static"
49 else 49 else
50 export CFLAGS="${CFLAGS} -O2" 50 export CFLAGS="${CFLAGS} -O2"
51 fi 51 fi
52 export AR=${NACLAR} 52 export AR=${NACLAR}
53 export RANLIB=${NACLRANLIB} 53 export RANLIB=${NACLRANLIB}
54 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 54 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
55 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 55 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
56 56
57 export LIBS="-L${NACL_SDK_USR_LIB} -lppapi -lpthread -lstdc++ -lm -lnosys" 57 export LIBS="-L${NACLPORTS_LIBDIR} -lppapi -lpthread -lstdc++ -lm -lnosys"
58 58
59 CONFIG_FLAGS="--with-png=no \ 59 CONFIG_FLAGS="--with-png=no \
60 --with-long-double=no \ 60 --with-long-double=no \
61 --host=nacl \ 61 --host=nacl \
62 --with-x11-driver=no \ 62 --with-x11-driver=no \
63 --with-sffe=no" 63 --with-sffe=no"
64 64
65 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 65 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
66 66
67 # xaos does not work with a build dir which is separate from the 67 # 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
104 DefaultBuildStep 104 DefaultBuildStep
105 if [ ${NACL_ARCH} = "pnacl" ] ; then 105 if [ ${NACL_ARCH} = "pnacl" ] ; then
106 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos 106 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos
107 fi 107 fi
108 CustomInstallStep 108 CustomInstallStep
109 DefaultCleanUpStep 109 DefaultCleanUpStep
110 } 110 }
111 111
112 CustomPackageInstall 112 CustomPackageInstall
113 exit 0 113 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698