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

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, 6 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
Index: ports/quakespasm/build.sh
diff --git a/ports/sdlquake/build.sh b/ports/quakespasm/build.sh
similarity index 60%
copy from ports/sdlquake/build.sh
copy to ports/quakespasm/build.sh
index a63b473c9ebddb6d99c02ecf9958b639b159f980..5024e03bf5ce9b61d223191cb3d40ac9cdac0ce8 100644
--- a/ports/sdlquake/build.sh
+++ b/ports/quakespasm/build.sh
@@ -3,13 +3,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-BUILD_DIR=${SRC_DIR}
-EXECUTABLES=quake${NACL_EXEEXT}
-
-PatchStep() {
- DefaultPatchStep
- cp ${START_DIR}/Makefile ${BUILD_DIR}
-}
+BUILD_DIR=${SRC_DIR}/Quake
+EXECUTABLES=quakespasm${NACL_EXEEXT}
+MAKE_TARGETS="MP3LIB=mpg123"
ConfigureStep() {
return
@@ -17,6 +13,9 @@ ConfigureStep() {
BuildStep() {
make clean
+ if [ "${NACL_DEBUG}" = "1" ]; then
+ MAKE_TARGETS+=" DEBUG=1"
+ fi
SetupCrossEnvironment
DefaultBuildStep
}
@@ -24,10 +23,10 @@ BuildStep() {
InstallStep() {
MakeDir ${PUBLISH_DIR}
LogExecute cp ${START_DIR}/quake.html ${PUBLISH_DIR}
- LogExecute cp ${BUILD_DIR}/quake${NACL_EXEEXT} ${PUBLISH_DIR}
+ LogExecute cp ${BUILD_DIR}/quakespasm${NACL_EXEEXT} ${PUBLISH_DIR}
ChangeDir ${PUBLISH_DIR}
- LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . quake${NACL_EXEEXT} \
- -o quake.nmf
+ LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . \
+ 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.
if [ "${NACL_ARCH}" = "pnacl" ]; then
sed -i.bak 's/x-nacl/x-pnacl/' quake.html
fi

Powered by Google App Engine
This is Rietveld 408576698