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

Side by Side Diff: ports/dosbox/build.sh

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW
« make_all.sh ('K') | « ports/devil/build.sh ('k') | ports/ffmpeg/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698