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

Side by Side Diff: ports/unzip/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/twm/build.sh ('k') | ports/vim/nacl.patch » ('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 BUILD_DIR=${SRC_DIR} 5 BUILD_DIR=${SRC_DIR}
6 6
7 EnableCliMain
8
7 NACLPORTS_CPPFLAGS+=" -DHAVE_TERMIOS_H -DNO_CHMOD -DNO_FCHMOD -DNO_LCHMOD" 9 NACLPORTS_CPPFLAGS+=" -DHAVE_TERMIOS_H -DNO_CHMOD -DNO_FCHMOD -DNO_LCHMOD"
8 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main"
9 10
10 EXECUTABLES="funzip unzip unzipsfx" 11 EXECUTABLES="funzip unzip unzipsfx"
11 12
12 BuildStep() { 13 BuildStep() {
13 make -f unix/Makefile clean 14 make -f unix/Makefile clean
14 # "generic" target, which runs unix/configure, is 15 # "generic" target, which runs unix/configure, is
15 # suggested. However, this target does not work well with NaCl. For 16 # suggested. However, this target does not work well with NaCl. For
16 # example, it does not allow us to overwrite LFLAGS1, it sets the 17 # example, it does not allow us to overwrite LFLAGS1, it sets the
17 # results of uname command, etc. 18 # results of uname command, etc.
18 # 19 #
19 # We use NACLCXX as the linker because we link some C++ libraries 20 # We use NACLCXX as the linker because we link some C++ libraries
20 # (e.g., libppapi). 21 # (e.g., libppapi).
21 make -j${OS_JOBS} -f unix/Makefile unzips \ 22 make -j${OS_JOBS} -f unix/Makefile unzips \
22 CC=${NACLCC} LD=${NACLCXX} \ 23 CC=${NACLCC} LD=${NACLCXX} \
23 CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" LF2= \ 24 CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" \
24 LFLAGS1="${NACLPORTS_LDFLAGS} ${NACL_CLI_MAIN_LIB}" 25 LFLAGS1="${NACLPORTS_LDFLAGS}" LF2="${NACLPORTS_LIBS}"
25 } 26 }
26 27
27 InstallStep() { 28 InstallStep() {
28 LogExecute make -f unix/Makefile install prefix=${DESTDIR}/${PREFIX} 29 LogExecute make -f unix/Makefile install prefix=${DESTDIR}/${PREFIX}
29 } 30 }
30 31
31 TestStep() { 32 TestStep() {
32 if [ "${TOOLCHAIN}" = "pnacl" ]; then 33 if [ "${TOOLCHAIN}" = "pnacl" ]; then
33 return 34 return
34 fi 35 fi
35 TESTZIP=testmake.zip 36 TESTZIP=testmake.zip
36 LogExecute ./unzip.sh -bo ${TESTZIP} testmake.zipinfo 37 LogExecute ./unzip.sh -bo ${TESTZIP} testmake.zipinfo
37 CheckHash testmake.zipinfo f0d76aa12768455728f4bb0f42ceab64aaddfae8 38 CheckHash testmake.zipinfo f0d76aa12768455728f4bb0f42ceab64aaddfae8
38 } 39 }
39 40
40 PublishStep() { 41 PublishStep() {
41 PublishMultiArch unzip unzip 42 PublishMultiArch unzip unzip
42 } 43 }
OLDNEW
« no previous file with comments | « ports/twm/build.sh ('k') | ports/vim/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698