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

Side by Side Diff: examples/games/snes9x-1.53/nacl-snes9x-1.53.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/games/scummvm-1.2.1/nacl-scummvm-1.2.1.sh ('k') | examples/graphics/xaos/nacl-xaos.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) 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-snes-1.53.sh 7 # nacl-snes-1.53.sh
8 # 8 #
9 # Usage: nacl-snes-1.53.sh 9 # Usage: nacl-snes-1.53.sh
10 # 10 #
11 # This script downloads, patches, and builds an snes9x-based SNES emulator for 11 # This script downloads, patches, and builds an snes9x-based SNES emulator for
12 # Native Client. 12 # Native Client.
13 13
14 source pkg_info 14 source pkg_info
15 source ../../../build_tools/common.sh 15 source ../../../build_tools/common.sh
16 16
17 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 17 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53
18 18
19 CustomConfigureStep() { 19 CustomConfigureStep() {
20 Banner "Configuring ${PACKAGE_NAME}" 20 Banner "Configuring ${PACKAGE_NAME}"
21 21
22 # export the nacl tools 22 # export the nacl tools
23 export CC=${NACLCC} 23 export CC=${NACLCC}
24 export CXX=${NACLCXX} 24 export CXX=${NACLCXX}
25 export CXXFLAGS="-I${NACL_SDK_ROOT}/include" 25 export CXXFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include"
26 export LDFLAGS="" 26 export LDFLAGS="${NACLPORTS_LDFLAGS}"
27 if [ ${NACL_ARCH} = "pnacl" ] ; then 27 if [ ${NACL_ARCH} = "pnacl" ] ; then
28 export CXXFLAGS="-O3 -g" 28 export CXXFLAGS="${NACLPORTS_CFLAGS} -O3 -g"
29 export LDFLAGS="-O0 -static" 29 export LDFLAGS="${NACLPORTS_LDFLAGS} -O0 -static"
30 fi 30 fi
31 export AR=${NACLAR} 31 export AR=${NACLAR}
32 export RANLIB=${NACLRANLIB} 32 export RANLIB=${NACLRANLIB}
33 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 33 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
34 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 34 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
35 35
36 CONFIG_FLAGS="--host=nacl \ 36 CONFIG_FLAGS="--host=nacl \
37 --prefix=${NACL_SDK_USR} \ 37 --prefix=${NACLPORTS_PREFIX} \
38 --exec-prefix=${NACL_SDK_USR} \ 38 --exec-prefix=${NACLPORTS_PREFIX} \
39 --libdir=${NACL_SDK_USR_LIB} \ 39 --libdir=${NACLPORTS_LIBDIR} \
40 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ 40 --oldincludedir=${NACLPORTS_INCLUDE} \
41 --disable-gamepad \ 41 --disable-gamepad \
42 --disable-gzip \ 42 --disable-gzip \
43 --disable-zip \ 43 --disable-zip \
44 --disable-jma \ 44 --disable-jma \
45 --disable-screenshot \ 45 --disable-screenshot \
46 --disable-netplay \ 46 --disable-netplay \
47 --without-x \ 47 --without-x \
48 --enable-sound" 48 --enable-sound"
49 49
50 export LIBS="-L${NACL_SDK_USR_LIB} \ 50 export LIBS="-L${NACLPORTS_LIBDIR} \
51 -lnacl-mounts -lppapi_cpp -lppapi \ 51 -lnacl-mounts -lppapi_cpp -lppapi \
52 -lpthread -lstdc++" 52 -lpthread -lstdc++"
53 53
54 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}-src/unix 54 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}-src/unix
55 cp -f ${START_DIR}/pepper.cpp . 55 cp -f ${START_DIR}/pepper.cpp .
56 cp -f ${START_DIR}/nacl.h . 56 cp -f ${START_DIR}/nacl.h .
57 cp -f ${START_DIR}/nacl.cpp . 57 cp -f ${START_DIR}/nacl.cpp .
58 cp -f ${START_DIR}/event_queue.h . 58 cp -f ${START_DIR}/event_queue.h .
59 autoconf && ./configure ${CONFIG_FLAGS} 59 autoconf && ./configure ${CONFIG_FLAGS}
60 } 60 }
(...skipping 21 matching lines...) Expand all
82 if [ ${NACL_ARCH} = "pnacl" ] ; then 82 if [ ${NACL_ARCH} = "pnacl" ] ; then
83 # NOTE: snes9x has unusual dirnames 83 # NOTE: snes9x has unusual dirnames
84 DefaultTranslateStep ${PACKAGE_NAME}-src unix/snes9x 84 DefaultTranslateStep ${PACKAGE_NAME}-src unix/snes9x
85 fi 85 fi
86 CustomInstallStep 86 CustomInstallStep
87 DefaultCleanUpStep 87 DefaultCleanUpStep
88 } 88 }
89 89
90 CustomPackageInstall 90 CustomPackageInstall
91 exit 0 91 exit 0
OLDNEW
« no previous file with comments | « examples/games/scummvm-1.2.1/nacl-scummvm-1.2.1.sh ('k') | examples/graphics/xaos/nacl-xaos.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698