OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 | 6 |
7 # nacl-scummvm-1.2.1.sh | 7 # nacl-scummvm-1.2.1.sh |
8 # | 8 # |
9 # usage: nacl-scummvm-1.2.1.sh | 9 # usage: nacl-scummvm-1.2.1.sh |
10 # | 10 # |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 SCUMMVM_EXAMPLE_DIR=${NACL_SRC}/examples/games/scummvm-1.2.1 | 28 SCUMMVM_EXAMPLE_DIR=${NACL_SRC}/examples/games/scummvm-1.2.1 |
29 | 29 |
30 CustomConfigureStep() { | 30 CustomConfigureStep() { |
31 Banner "Configuring ${PACKAGE_NAME}" | 31 Banner "Configuring ${PACKAGE_NAME}" |
32 export CC=${NACLCC} | 32 export CC=${NACLCC} |
33 export CXX=${NACLCXX} | 33 export CXX=${NACLCXX} |
34 export AR=${NACLAR} | 34 export AR=${NACLAR} |
35 export CXXFLAGS="" | 35 export CXXFLAGS="" |
36 export LDFLAGS="" | 36 export LDFLAGS="" |
37 if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then | 37 if [ ${NACL_ARCH} = "pnacl" ] ; then |
38 export CXXFLAGS="-O3 -g" | 38 export CXXFLAGS="-O3 -g" |
39 export LDFLAGS="-O0 -static" | 39 export LDFLAGS="-O0 -static" |
40 fi | 40 fi |
41 # without this setting *make* will not show the full command lines | 41 # without this setting *make* will not show the full command lines |
42 export VERBOSE_BUILD=1 | 42 export VERBOSE_BUILD=1 |
43 export RANLIB=${NACLRANLIB} | 43 export RANLIB=${NACLRANLIB} |
44 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 44 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig |
45 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 45 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} |
46 export PATH="${NACL_BIN_PATH}:${PATH}" | 46 export PATH="${NACL_BIN_PATH}:${PATH}" |
47 export PATH="${NACL_SDK_USR_BIN}:${PATH}" | 47 export PATH="${NACL_SDK_USR_BIN}:${PATH}" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 MakeDir ${PUBLISH_DIR} | 120 MakeDir ${PUBLISH_DIR} |
121 | 121 |
122 # Prepare AppEngine app. | 122 # Prepare AppEngine app. |
123 APPENGINE_DIR=${PUBLISH_DIR}/appengine | 123 APPENGINE_DIR=${PUBLISH_DIR}/appengine |
124 MakeDir ${APPENGINE_DIR} | 124 MakeDir ${APPENGINE_DIR} |
125 cp `find ${START_DIR}/nacl-scumm -type f -maxdepth 1` ${APPENGINE_DIR} | 125 cp `find ${START_DIR}/nacl-scumm -type f -maxdepth 1` ${APPENGINE_DIR} |
126 MakeDir ${APPENGINE_DIR}/static | 126 MakeDir ${APPENGINE_DIR}/static |
127 cp ${START_DIR}/nacl-scumm/static/* ${APPENGINE_DIR}/static | 127 cp ${START_DIR}/nacl-scumm/static/* ${APPENGINE_DIR}/static |
128 cp ${SRC_DIR}/*.tar ${APPENGINE_DIR}/static | 128 cp ${SRC_DIR}/*.tar ${APPENGINE_DIR}/static |
129 ${NACLSTRIP} ${SRC_DIR}/${PACKAGE_NAME}-build/scummvm \ | 129 ${NACLSTRIP} ${SRC_DIR}/${PACKAGE_NAME}-build/scummvm \ |
130 -o ${APPENGINE_DIR}/static/scummvm_x86_${NACL_PACKAGES_BITSIZE}.nexe | 130 -o ${APPENGINE_DIR}/static/scummvm_${NACL_ARCH}.nexe |
131 | 131 |
132 # Publish chrome web store app (copy to repository to drop .svn etc). | 132 # Publish chrome web store app (copy to repository to drop .svn etc). |
133 MakeDir ${SRC_DIR}/hosted_app | 133 MakeDir ${SRC_DIR}/hosted_app |
134 cp ${START_DIR}/hosted_app/* ${SRC_DIR}/hosted_app | 134 cp ${START_DIR}/hosted_app/* ${SRC_DIR}/hosted_app |
135 ChangeDir ${SRC_DIR} | 135 ChangeDir ${SRC_DIR} |
136 WEBSTORE_DIR=${PUBLISH_DIR}/web_store | 136 WEBSTORE_DIR=${PUBLISH_DIR}/web_store |
137 MakeDir ${WEBSTORE_DIR} | 137 MakeDir ${WEBSTORE_DIR} |
138 zip -r ${WEBSTORE_DIR}/scummvm-1.2.1.zip hosted_app | 138 zip -r ${WEBSTORE_DIR}/scummvm-1.2.1.zip hosted_app |
139 cp ${START_DIR}/screenshots/* ${WEBSTORE_DIR} | 139 cp ${START_DIR}/screenshots/* ${WEBSTORE_DIR} |
140 cp ${START_DIR}/hosted_app/scummvm_128.png ${WEBSTORE_DIR} | 140 cp ${START_DIR}/hosted_app/scummvm_128.png ${WEBSTORE_DIR} |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 DefaultExtractBzipStep | 207 DefaultExtractBzipStep |
208 CustomPatchStep | 208 CustomPatchStep |
209 CustomConfigureStep | 209 CustomConfigureStep |
210 DefaultBuildStep | 210 DefaultBuildStep |
211 CustomInstallStep | 211 CustomInstallStep |
212 DefaultCleanUpStep | 212 DefaultCleanUpStep |
213 } | 213 } |
214 | 214 |
215 CustomPackageInstall | 215 CustomPackageInstall |
216 exit 0 | 216 exit 0 |
OLD | NEW |