| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 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 |
| 4 # found in the LICENSE file. |
| 5 |
| 6 BUILD_DIR=${SRC_DIR}/Quake |
| 7 EXECUTABLES=quakespasm${NACL_EXEEXT} |
| 8 MAKE_TARGETS="MP3LIB=mpg123" |
| 9 |
| 10 ConfigureStep() { |
| 11 return |
| 12 } |
| 13 |
| 14 BuildStep() { |
| 15 make clean |
| 16 if [ "${NACL_DEBUG}" = "1" ]; then |
| 17 MAKE_TARGETS+=" DEBUG=1" |
| 18 fi |
| 19 SetupCrossEnvironment |
| 20 DefaultBuildStep |
| 21 } |
| 22 |
| 23 InstallStep() { |
| 24 MakeDir ${PUBLISH_DIR} |
| 25 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} |
| 26 LogExecute cp ${START_DIR}/quakespasm.js ${PUBLISH_DIR} |
| 27 LogExecute cp ${NACL_SRC}/third_party/zip.js/WebContent/*.js ${PUBLISH_DIR} |
| 28 LogExecute cp ${BUILD_DIR}/quakespasm${NACL_EXEEXT} ${PUBLISH_DIR} |
| 29 ChangeDir ${PUBLISH_DIR} |
| 30 LogExecute ${NACL_SDK_ROOT}/tools/create_nmf.py -s . \ |
| 31 quakespasm${NACL_EXEEXT} -o quakespasm.nmf |
| 32 if [ "${NACL_ARCH}" = "pnacl" ]; then |
| 33 sed -i.bak 's/x-nacl/x-pnacl/' quake.html |
| 34 fi |
| 35 } |
| OLD | NEW |