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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/quakespasm/README.nacl ('k') | ports/quakespasm/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/quakespasm/build.sh
diff --git a/ports/quakespasm/build.sh b/ports/quakespasm/build.sh
new file mode 100644
index 0000000000000000000000000000000000000000..c8384ce7cff31a69eb562f51f30ebb2e47cf3239
--- /dev/null
+++ b/ports/quakespasm/build.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+# Copyright (c) 2013 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+BUILD_DIR=${SRC_DIR}/Quake
+EXECUTABLES=quakespasm${NACL_EXEEXT}
+MAKE_TARGETS="MP3LIB=mpg123"
+
+ConfigureStep() {
+ return
+}
+
+BuildStep() {
+ make clean
+ if [ "${NACL_DEBUG}" = "1" ]; then
+ MAKE_TARGETS+=" DEBUG=1"
+ fi
+ SetupCrossEnvironment
+ DefaultBuildStep
+}
+
+InstallStep() {
+ MakeDir ${PUBLISH_DIR}
+ LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR}
+ LogExecute cp ${START_DIR}/quakespasm.js ${PUBLISH_DIR}
+ LogExecute cp ${NACL_SRC}/third_party/zip.js/WebContent/*.js ${PUBLISH_DIR}
+ LogExecute cp ${BUILD_DIR}/quakespasm${NACL_EXEEXT} ${PUBLISH_DIR}
+ ChangeDir ${PUBLISH_DIR}
+ LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . \
+ quakespasm${NACL_EXEEXT} -o quakespasm.nmf
+ if [ "${NACL_ARCH}" = "pnacl" ]; then
+ sed -i.bak 's/x-nacl/x-pnacl/' quake.html
+ fi
+}
« no previous file with comments | « ports/quakespasm/README.nacl ('k') | ports/quakespasm/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698