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

Side by Side Diff: ports/snes9x/build.sh

Issue 132343007: Add top level build script for building packages. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 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 | « ports/scummvm/build.sh ('k') | ports/speex/build.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 #
6 5
7 # nacl-snes-1.53.sh
8 #
9 # Usage: nacl-snes-1.53.sh
10 #
11 # This script downloads, patches, and builds an snes9x-based SNES emulator for
12 # Native Client.
13
14 source pkg_info
15 PACKAGE_DIR=${PACKAGE_NAME}-src 6 PACKAGE_DIR=${PACKAGE_NAME}-src
16 source ../../build_tools/common.sh 7 SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
8 BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
17 9
18 EXECUTABLES=snes9x 10 EXECUTABLES=snes9x
19 NACL_CONFIGURE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix/configure 11 NACL_CONFIGURE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix/configure
20 EXTRA_CONFIGURE_ARGS="\ 12 EXTRA_CONFIGURE_ARGS="\
21 --disable-gamepad \ 13 --disable-gamepad \
22 --disable-gzip \ 14 --disable-gzip \
23 --disable-zip \ 15 --disable-zip \
24 --disable-jma \ 16 --disable-jma \
25 --disable-screenshot \ 17 --disable-screenshot \
26 --disable-netplay \ 18 --disable-netplay \
27 --without-x \ 19 --without-x \
28 --enable-sound" 20 --enable-sound"
29 export LIBS="${NACLPORTS_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi" 21 export LIBS="${NACLPORTS_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi"
30 22
31 AutogenStep() { 23 AutogenStep() {
32 echo "Autogen..." 24 echo "Autogen..."
33 pushd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix 25 pushd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix
34 autoconf 26 autoconf
35 PatchConfigure 27 PatchConfigure
36 PatchConfigSub 28 PatchConfigSub
37 popd 29 popd
38 } 30 }
39 31
40 ConfigureStep() { 32 ConfigureStep() {
41 AutogenStep 33 AutogenStep
42 DefaultConfigureStep 34 DefaultConfigureStep
43 35
44 # This configure script generates a Makefile that checks timestamps on 36 # This configure script generates a Makefile that checks timestamps on
45 # configure.ac, configure and Makefile.in. Copy them from the unix directory. 37 # configure.ac, configure and Makefile.in. Copy them from the unix directory.
46 cp ../unix/{configure.ac,configure,Makefile.in} . 38 LogExecute cp ../unix/{configure.ac,configure,Makefile.in} .
47 touch Makefile 39 touch Makefile
48 } 40 }
49 41
50 InstallStep(){ 42 InstallStep(){
51 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
52 local BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
53 MakeDir ${PUBLISH_DIR} 43 MakeDir ${PUBLISH_DIR}
54 install ${START_DIR}/snes9x.html ${PUBLISH_DIR} 44 install ${START_DIR}/snes9x.html ${PUBLISH_DIR}
55 install ${START_DIR}/snes9x.js ${PUBLISH_DIR} 45 install ${START_DIR}/snes9x.js ${PUBLISH_DIR}
56 install ${BUILD_DIR}/snes9x ${PUBLISH_DIR}/snes9x_${NACL_ARCH}${NACL_EXEEXT} 46 install ${BUILD_DIR}/snes9x ${PUBLISH_DIR}/snes9x_${NACL_ARCH}${NACL_EXEEXT}
57 47
58 python ${NACL_SDK_ROOT}/tools/create_nmf.py \ 48 python ${NACL_SDK_ROOT}/tools/create_nmf.py \
59 ${PUBLISH_DIR}/snes9x_*${NACL_EXEEXT} \ 49 ${PUBLISH_DIR}/snes9x_*${NACL_EXEEXT} \
60 -s ${PUBLISH_DIR} \ 50 -s ${PUBLISH_DIR} \
61 -o ${PUBLISH_DIR}/snes9x.nmf 51 -o ${PUBLISH_DIR}/snes9x.nmf
62 52
63 if [ "${NACL_ARCH}" = "pnacl" ]; then 53 if [ "${NACL_ARCH}" = "pnacl" ]; then
64 sed -i.bak 's/x-nacl/x-pnacl/' ${PUBLISH_DIR}/snes9x.js 54 sed -i.bak 's/x-nacl/x-pnacl/' ${PUBLISH_DIR}/snes9x.js
65 fi 55 fi
66 } 56 }
67
68 PackageInstall
69 exit 0
OLDNEW
« no previous file with comments | « ports/scummvm/build.sh ('k') | ports/speex/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698