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

Side by Side Diff: examples/games/snes9x/nacl-snes9x.sh

Issue 14172016: Enable glibc shared library support for zlib. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 8 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/nethack/nacl-nethack.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 PACKAGE_DIR=${PACKAGE_NAME}-src 15 PACKAGE_DIR=${PACKAGE_NAME}-src
16 source ../../../build_tools/common.sh 16 source ../../../build_tools/common.sh
17 17
18 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 18 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53
19 EXECUTABLES=snes9x
19 20
20 CustomConfigureStep() { 21 CustomConfigureStep() {
21 Banner "Configuring ${PACKAGE_NAME}" 22 Banner "Configuring ${PACKAGE_NAME}"
22 23
23 # export the nacl tools 24 # export the nacl tools
24 export CC=${NACLCC} 25 export CC=${NACLCC}
25 export CXX=${NACLCXX} 26 export CXX=${NACLCXX}
26 export CXXFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include" 27 export CXXFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include"
27 export LDFLAGS="${NACLPORTS_LDFLAGS}" 28 export LDFLAGS="${NACLPORTS_LDFLAGS}"
28 if [ ${NACL_ARCH} = "pnacl" ] ; then 29 if [ ${NACL_ARCH} = "pnacl" ] ; then
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 DefaultTouchStep 74 DefaultTouchStep
74 } 75 }
75 76
76 CustomPackageInstall() { 77 CustomPackageInstall() {
77 DefaultPreInstallStep 78 DefaultPreInstallStep
78 DefaultDownloadBzipStep 79 DefaultDownloadBzipStep
79 DefaultExtractBzipStep 80 DefaultExtractBzipStep
80 DefaultPatchStep 81 DefaultPatchStep
81 CustomConfigureStep 82 CustomConfigureStep
82 DefaultBuildStep 83 DefaultBuildStep
83 if [ ${NACL_ARCH} = "pnacl" ] ; then 84 DefaultTranslateStep
84 # NOTE: snes9x has unusual dirnames 85 DefaultValidateStep
85 DefaultTranslateStep ${PACKAGE_DIR} unix/snes9x
86 fi
87 CustomInstallStep 86 CustomInstallStep
88 DefaultCleanUpStep 87 DefaultCleanUpStep
89 } 88 }
90 89
91 CustomPackageInstall 90 CustomPackageInstall
92 exit 0 91 exit 0
OLDNEW
« no previous file with comments | « examples/games/nethack/nacl-nethack.sh ('k') | examples/graphics/xaos/nacl-xaos.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698