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

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
« no previous file with comments | « ports/geturl/geturl.cc ('k') | ports/gimp/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EnableCliMain
16
15 BuildHostGforth() { 17 BuildHostGforth() {
16 MakeDir ${HOST_BUILD_DIR} 18 MakeDir ${HOST_BUILD_DIR}
17 ChangeDir ${HOST_BUILD_DIR} 19 ChangeDir ${HOST_BUILD_DIR}
18 CC="gcc -m32" \ 20 CC="gcc -m32" \
19 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} 21 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR}
20 LogExecute make -j${OS_JOBS} 22 LogExecute make -j${OS_JOBS}
21 LogExecute make install 23 LogExecute make install
22 } 24 }
23 25
24 ConfigureStep() { 26 ConfigureStep() {
25 ChangeDir ${SRC_DIR} 27 ChangeDir ${SRC_DIR}
26 ./autogen.sh 28 ./autogen.sh
27 BuildHostGforth 29 BuildHostGforth
28 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" 30 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
29 export skipcode=no 31 export skipcode=no
30 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main"
31 export LIBS+=" -Wl,--undefined=nacl_main ${NACL_CLI_MAIN_LIB} \
32 -ltar -lppapi_simple -lnacl_io -lppapi -l${NACL_CXX_LIB}"
33 EnableGlibcCompat 32 EnableGlibcCompat
34 ChangeDir ${BUILD_DIR} 33 ChangeDir ${BUILD_DIR}
35 EXTRA_CONFIGURE_ARGS="--without-check" 34 EXTRA_CONFIGURE_ARGS="--without-check"
36 DefaultConfigureStep 35 DefaultConfigureStep
37 } 36 }
38 37
39 BuildStep() { 38 BuildStep() {
40 rm -f gforth 39 rm -f gforth
41 DefaultBuildStep 40 DefaultBuildStep
42 cp ${MAKE_TARGETS} gforth 41 cp ${MAKE_TARGETS} gforth
(...skipping 27 matching lines...) Expand all
70 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf 69 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf
71 70
72 InstallNaClTerm ${PUBLISH_DIR} 71 InstallNaClTerm ${PUBLISH_DIR}
73 72
74 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/ 73 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/
75 74
76 ChangeDir ${PUBLISH_DIR} 75 ChangeDir ${PUBLISH_DIR}
77 Remove gforth.zip 76 Remove gforth.zip
78 LogExecute zip -r gforth.zip . 77 LogExecute zip -r gforth.zip .
79 } 78 }
OLDNEW
« no previous file with comments | « ports/geturl/geturl.cc ('k') | ports/gimp/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698