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

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

Issue 337323007: Add quakespasm, and OpenGL+SDL-based port of quake1. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 5 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) 2013 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2013 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 BUILD_DIR=${SRC_DIR} 6 BUILD_DIR=${SRC_DIR}/Quake
7 EXECUTABLES=quake${NACL_EXEEXT} 7 EXECUTABLES=quakespasm${NACL_EXEEXT}
8 8 MAKE_TARGETS="MP3LIB=mpg123"
9 PatchStep() {
10 DefaultPatchStep
11 cp ${START_DIR}/Makefile ${BUILD_DIR}
12 }
13 9
14 ConfigureStep() { 10 ConfigureStep() {
15 return 11 return
16 } 12 }
17 13
18 BuildStep() { 14 BuildStep() {
19 make clean 15 make clean
16 if [ "${NACL_DEBUG}" = "1" ]; then
17 MAKE_TARGETS+=" DEBUG=1"
18 fi
20 SetupCrossEnvironment 19 SetupCrossEnvironment
21 DefaultBuildStep 20 DefaultBuildStep
22 } 21 }
23 22
24 InstallStep() { 23 InstallStep() {
25 MakeDir ${PUBLISH_DIR} 24 MakeDir ${PUBLISH_DIR}
26 LogExecute cp ${START_DIR}/quake.html ${PUBLISH_DIR} 25 LogExecute cp ${START_DIR}/quake.html ${PUBLISH_DIR}
27 LogExecute cp ${BUILD_DIR}/quake${NACL_EXEEXT} ${PUBLISH_DIR} 26 LogExecute cp ${BUILD_DIR}/quakespasm${NACL_EXEEXT} ${PUBLISH_DIR}
28 ChangeDir ${PUBLISH_DIR} 27 ChangeDir ${PUBLISH_DIR}
29 LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . quake${NACL_EXEEXT} \ 28 LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . \
30 -o quake.nmf 29 quakespasm${NACL_EXEEXT} -o quake.nmf
binji 2014/06/30 19:43:14 quakespasm.{nmf,html}
Sam Clegg 2014/07/18 23:16:44 Done.
31 if [ "${NACL_ARCH}" = "pnacl" ]; then 30 if [ "${NACL_ARCH}" = "pnacl" ]; then
32 sed -i.bak 's/x-nacl/x-pnacl/' quake.html 31 sed -i.bak 's/x-nacl/x-pnacl/' quake.html
33 fi 32 fi
34 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698