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

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

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 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 # NOTE: This build doesn't work in parallel. 5 # NOTE: This build doesn't work in parallel.
6 OS_JOBS=1 6 OS_JOBS=1
7 7
8 # This build relies on certain host binaries. 8 # This build relies on certain host binaries.
9 HOST_BUILD_DIR=${WORK_DIR}/build_host 9 HOST_BUILD_DIR=${WORK_DIR}/build_host
10 HOST_INSTALL_DIR=${WORK_DIR}/install_host 10 HOST_INSTALL_DIR=${WORK_DIR}/install_host
11 11
12 EXECUTABLES="gforth-ditc${NACL_EXEEXT}" 12 EXECUTABLES="gforth-ditc${NACL_EXEEXT}"
13 MAKE_TARGETS="${EXECUTABLES}" 13 MAKE_TARGETS="${EXECUTABLES}"
14 14
15 BuildHostGforth() { 15 BuildHostGforth() {
16 MakeDir ${HOST_BUILD_DIR} 16 MakeDir ${HOST_BUILD_DIR}
17 ChangeDir ${HOST_BUILD_DIR} 17 ChangeDir ${HOST_BUILD_DIR}
18 CC="gcc -m32" \ 18 CC="gcc -m32" \
19 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} 19 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR}
20 LogExecute make -j${OS_JOBS} 20 LogExecute make -j${OS_JOBS}
21 LogExecute make install 21 LogExecute make install
22 } 22 }
23 23
24 ConfigureStep() { 24 ConfigureStep() {
25 ChangeDir ${SRC_DIR} 25 ChangeDir ${SRC_DIR}
26 ./autogen.sh 26 ./autogen.sh
27 BuildHostGforth 27 BuildHostGforth
28 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" 28 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
29 export skipcode=no 29 export skipcode=no
30 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" 30 export LIBS+=" ${NACL_CLI_MAIN_LIB}"
binji 2015/10/27 21:52:38 or here
Sam Clegg 2015/10/28 17:06:31 Done.
31 export LIBS+=" -Wl,--undefined=nacl_main ${NACL_CLI_MAIN_LIB} \
32 -ltar -lppapi_simple -lnacl_io -lppapi -l${NACL_CXX_LIB}"
33 EnableGlibcCompat 31 EnableGlibcCompat
34 ChangeDir ${BUILD_DIR} 32 ChangeDir ${BUILD_DIR}
35 EXTRA_CONFIGURE_ARGS="--without-check" 33 EXTRA_CONFIGURE_ARGS="--without-check"
36 DefaultConfigureStep 34 DefaultConfigureStep
37 } 35 }
38 36
39 BuildStep() { 37 BuildStep() {
40 rm -f gforth 38 rm -f gforth
41 DefaultBuildStep 39 DefaultBuildStep
42 cp ${MAKE_TARGETS} gforth 40 cp ${MAKE_TARGETS} gforth
(...skipping 27 matching lines...) Expand all
70 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf 68 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf
71 69
72 InstallNaClTerm ${PUBLISH_DIR} 70 InstallNaClTerm ${PUBLISH_DIR}
73 71
74 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/ 72 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/
75 73
76 ChangeDir ${PUBLISH_DIR} 74 ChangeDir ${PUBLISH_DIR}
77 Remove gforth.zip 75 Remove gforth.zip
78 LogExecute zip -r gforth.zip . 76 LogExecute zip -r gforth.zip .
79 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698