OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 MIRROR_URL=http://storage.googleapis.com/webports/mirror | 5 MIRROR_URL=http://storage.googleapis.com/webports/mirror |
6 | 6 |
7 # Beneath a Steel Sky (floppy version) | 7 # Beneath a Steel Sky (floppy version) |
8 readonly BASS_FLOPPY_URL=${MIRROR_URL}/scummvm_games/bass/BASS-Floppy-1.3.zip | 8 readonly BASS_FLOPPY_URL=${MIRROR_URL}/scummvm_games/bass/BASS-Floppy-1.3.zip |
9 readonly BASS_FLOPPY_NAME=BASS-Floppy-1.3 | 9 readonly BASS_FLOPPY_NAME=BASS-Floppy-1.3 |
10 readonly BASS_FLOPPY_SHA1=acd7a578879c73fb3994b9c72b6571dc62635f6e | 10 readonly BASS_FLOPPY_SHA1=acd7a578879c73fb3994b9c72b6571dc62635f6e |
11 | 11 |
12 readonly LURE_URL=${MIRROR_URL}/scummvm_games/lure/lure-1.1.zip | 12 readonly LURE_URL=${MIRROR_URL}/scummvm_games/lure/lure-1.1.zip |
13 readonly LURE_NAME=lure-1.1 | 13 readonly LURE_NAME=lure-1.1 |
14 readonly LURE_SHA1=b7d430b17c361396ccf81734148cb0abb4bb4abb | 14 readonly LURE_SHA1=b7d430b17c361396ccf81734148cb0abb4bb4abb |
15 | 15 |
16 EXECUTABLES=scummvm | 16 EXECUTABLES=scummvm |
17 | 17 |
18 SCUMMVM_EXAMPLE_DIR=${NACL_SRC}/ports/scummvm | 18 SCUMMVM_EXAMPLE_DIR=${NACL_SRC}/ports/scummvm |
19 | 19 |
20 ConfigureStep() { | 20 ConfigureStep() { |
21 # NOTE: We can't use the DefaultConfigureStep, because the scummvm | 21 # NOTE: We can't use the DefaultConfigureStep, because the scummvm |
22 # configure script is hand-rolled, and won't accept additional arguments. | 22 # configure script is hand-rolled, and won't accept additional arguments. |
23 SetupCrossEnvironment | 23 SetupCrossEnvironment |
24 | 24 |
25 local conf_host=${NACL_CROSS_PREFIX} | 25 local conf_host=${NACL_CROSS_PREFIX} |
26 if [ "${NACL_ARCH}" = "pnacl" ]; then | 26 if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "le32" ]; then |
27 conf_host="pnacl" | 27 conf_host="pnacl" |
28 elif [ "${NACL_ARCH}" = "arm" ]; then | 28 elif [ "${NACL_ARCH}" = "arm" ]; then |
29 conf_host="nacl-arm" | 29 conf_host="nacl-arm" |
30 else | 30 else |
31 conf_host="nacl-x86" | 31 conf_host="nacl-x86" |
32 fi | 32 fi |
33 export DEFINES="-DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" | 33 export DEFINES="-DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" |
34 | 34 |
35 # NOTE: disabled mt32emu because it using inline assembly that won't | 35 # NOTE: disabled mt32emu because it using inline assembly that won't |
36 # validate. | 36 # validate. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 cd .. | 82 cd .. |
83 | 83 |
84 Banner "Publishing to ${PUBLISH_DIR}" | 84 Banner "Publishing to ${PUBLISH_DIR}" |
85 MakeDir ${PUBLISH_DIR} | 85 MakeDir ${PUBLISH_DIR} |
86 local ASSEMBLY_DIR=${PUBLISH_DIR}/scummvm | 86 local ASSEMBLY_DIR=${PUBLISH_DIR}/scummvm |
87 | 87 |
88 MakeDir ${ASSEMBLY_DIR} | 88 MakeDir ${ASSEMBLY_DIR} |
89 | 89 |
90 cp ${START_DIR}/packaged_app/* ${ASSEMBLY_DIR} | 90 cp ${START_DIR}/packaged_app/* ${ASSEMBLY_DIR} |
91 cp ${SRC_DIR}/*.tar ${ASSEMBLY_DIR} | 91 cp ${SRC_DIR}/*.tar ${ASSEMBLY_DIR} |
92 if [ "${NACL_DEBUG}" = "1" ]; then | 92 if [ "${NACL_DEBUG}" = "1" -o ${NACL_ARCH} = "le32" ]; then |
93 cp ${BUILD_DIR}/scummvm \ | 93 cp ${BUILD_DIR}/scummvm \ |
94 ${ASSEMBLY_DIR}/scummvm_${NACL_ARCH}${NACL_EXEEXT} | 94 ${ASSEMBLY_DIR}/scummvm_${NACL_ARCH}${NACL_EXEEXT} |
95 else | 95 else |
96 ${NACLSTRIP} ${BUILD_DIR}/scummvm \ | 96 ${NACLSTRIP} ${BUILD_DIR}/scummvm \ |
97 -o ${ASSEMBLY_DIR}/scummvm_${NACL_ARCH}${NACL_EXEEXT} | 97 -o ${ASSEMBLY_DIR}/scummvm_${NACL_ARCH}${NACL_EXEEXT} |
98 fi | 98 fi |
99 | 99 |
100 python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | 100 python ${NACL_SDK_ROOT}/tools/create_nmf.py \ |
101 ${ASSEMBLY_DIR}/scummvm_*${NACL_EXEEXT} \ | 101 ${ASSEMBLY_DIR}/scummvm_*${NACL_EXEEXT} \ |
102 -s ${ASSEMBLY_DIR} \ | 102 -s ${ASSEMBLY_DIR} \ |
103 -o ${ASSEMBLY_DIR}/scummvm.nmf | 103 -o ${ASSEMBLY_DIR}/scummvm.nmf |
104 | 104 |
105 if [ "${NACL_ARCH}" = "pnacl" ]; then | 105 if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "le32" ]; then |
106 sed -i.bak 's/x-nacl/x-pnacl/' ${ASSEMBLY_DIR}/index.html | 106 sed -i.bak 's/x-nacl/x-pnacl/' ${ASSEMBLY_DIR}/index.html |
107 fi | 107 fi |
108 | 108 |
109 ChangeDir ${PUBLISH_DIR} | 109 ChangeDir ${PUBLISH_DIR} |
110 CreateWebStoreZip scummvm-${VERSION}.zip scummvm | 110 CreateWebStoreZip scummvm-${VERSION}.zip scummvm |
111 } | 111 } |
112 | 112 |
113 # $1 - url | 113 # $1 - url |
114 # $2 - filename | 114 # $2 - filename |
115 # $3 - sha1 | 115 # $3 - sha1 |
(...skipping 21 matching lines...) Expand all Loading... |
137 # $3 - sha1 | 137 # $3 - sha1 |
138 GameGetStep() { | 138 GameGetStep() { |
139 DownloadZipStep $1 $2.zip $3 | 139 DownloadZipStep $1 $2.zip $3 |
140 ExtractGameZipStep $2 $2.zip | 140 ExtractGameZipStep $2 $2.zip |
141 } | 141 } |
142 | 142 |
143 DownloadStep() { | 143 DownloadStep() { |
144 GameGetStep ${BASS_FLOPPY_URL} ${BASS_FLOPPY_NAME} ${BASS_FLOPPY_SHA1} | 144 GameGetStep ${BASS_FLOPPY_URL} ${BASS_FLOPPY_NAME} ${BASS_FLOPPY_SHA1} |
145 GameGetStep ${LURE_URL} ${LURE_NAME} ${LURE_SHA1} | 145 GameGetStep ${LURE_URL} ${LURE_NAME} ${LURE_SHA1} |
146 } | 146 } |
OLD | NEW |