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 NACLPORTS_CPPFLAGS+=" ${NACL_EXCEPTIONS_FLAG}" |
5 EXECUTABLES=src/dosbox${NACL_EXEEXT} | 6 EXECUTABLES=src/dosbox${NACL_EXEEXT} |
6 MAKE_TARGETS="AR=${NACLAR}" | 7 MAKE_TARGETS="AR=${NACLAR}" |
7 | 8 |
8 ConfigureStep() { | 9 ConfigureStep() { |
9 SetupCrossEnvironment | 10 SetupCrossEnvironment |
10 | 11 |
11 CONFIG_FLAGS="--host=${CONF_HOST} --build=${CONF_BUILD} \ | 12 CONFIG_FLAGS="--host=${CONF_HOST} --build=${CONF_BUILD} \ |
12 --prefix=${PREFIX} \ | 13 --prefix=${PREFIX} \ |
13 --with-sdl-prefix=${NACL_TOOLCHAIN_ROOT} \ | 14 --with-sdl-prefix=${NACL_TOOLCHAIN_ROOT} \ |
14 --disable-shared \ | 15 --disable-shared \ |
15 --with-sdl-exec-prefix=${NACL_TOOLCHAIN_ROOT}" | 16 --with-sdl-exec-prefix=${NACL_TOOLCHAIN_ROOT}" |
16 | 17 |
17 LogExecute ${SRC_DIR}/configure ${CONFIG_FLAGS} | 18 LogExecute ${SRC_DIR}/configure ${CONFIG_FLAGS} |
18 } | 19 } |
19 | 20 |
20 InstallStep(){ | 21 InstallStep(){ |
21 MakeDir ${PUBLISH_DIR} | 22 MakeDir ${PUBLISH_DIR} |
22 LogExecute install ${START_DIR}/dosbox.html ${PUBLISH_DIR} | 23 LogExecute install ${START_DIR}/dosbox.html ${PUBLISH_DIR} |
23 LogExecute install src/dosbox${NACL_EXEEXT} \ | 24 LogExecute install src/dosbox${NACL_EXEEXT} \ |
24 ${PUBLISH_DIR}/dosbox_${NACL_ARCH}${NACL_EXEEXT} | 25 ${PUBLISH_DIR}/dosbox_${NACL_ARCH}${NACL_EXEEXT} |
25 local CREATE_NMF="${NACL_SDK_ROOT}/tools/create_nmf.py" | 26 local CREATE_NMF="${NACL_SDK_ROOT}/tools/create_nmf.py" |
26 LogExecute ${CREATE_NMF} -s ${PUBLISH_DIR} ${PUBLISH_DIR}/dosbox_*${NACL_EXEEX
T} -o ${PUBLISH_DIR}/dosbox.nmf | 27 LogExecute ${CREATE_NMF} -s ${PUBLISH_DIR} ${PUBLISH_DIR}/dosbox_*${NACL_EXEEX
T} -o ${PUBLISH_DIR}/dosbox.nmf |
27 | 28 |
28 if [ "${NACL_ARCH}" = "pnacl" ]; then | 29 if [ "${NACL_ARCH}" = "pnacl" ]; then |
29 sed -i.bak 's/x-nacl/x-pnacl/' ${PUBLISH_DIR}/dosbox.html | 30 sed -i.bak 's/x-nacl/x-pnacl/' ${PUBLISH_DIR}/dosbox.html |
30 fi | 31 fi |
31 } | 32 } |
OLD | NEW |