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

Side by Side Diff: ports/twm/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/tree/build.sh ('k') | ports/unzip/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 EXECUTABLES="twm${NACL_EXEEXT}" 5 EXECUTABLES="twm${NACL_EXEEXT}"
6 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main"
7 6
8 NACLPORTS_LIBS+="\ 7 NACLPORTS_LIBS+="\
9 -lXext -lXmu -lSM -lICE -lXt -lX11 -lxcb -lXau ${NACL_CLI_MAIN_LIB}" 8 -lXext -lXmu -lSM -lICE -lXt -lX11 -lxcb -lXau"
10 9
10 EnableCliMain
11 EnableGlibcCompat 11 EnableGlibcCompat
12 12
13 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then 13 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then
14 NACLPORTS_CFLAGS+=" -Wno-return-type -Wno-parentheses -Wno-dangling-else" 14 NACLPORTS_CFLAGS+=" -Wno-return-type -Wno-parentheses -Wno-dangling-else"
15 NACLPORTS_CPPFLAGS+=" -std=gnu89" 15 NACLPORTS_CPPFLAGS+=" -std=gnu89"
16 fi 16 fi
17 17
18 BuildStep() { 18 BuildStep() {
19 RC=deftwmrc.c 19 RC=deftwmrc.c
20 rm -f ${RC} 20 rm -f ${RC}
(...skipping 19 matching lines...) Expand all
40 PublishStep() { 40 PublishStep() {
41 MakeDir ${PUBLISH_DIR} 41 MakeDir ${PUBLISH_DIR}
42 ChangeDir ${PUBLISH_DIR} 42 ChangeDir ${PUBLISH_DIR}
43 LogExecute cp -f ${BUILD_DIR}/twm${NACL_EXEEXT} twm_${NACL_ARCH}${NACL_EXEEXT} 43 LogExecute cp -f ${BUILD_DIR}/twm${NACL_EXEEXT} twm_${NACL_ARCH}${NACL_EXEEXT}
44 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py\ 44 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py\
45 twm_*${NACL_EXEEXT} -s . -o twm.nmf 45 twm_*${NACL_EXEEXT} -s . -o twm.nmf
46 LogExecute python ${TOOLS_DIR}/create_term.py -n twm twm.nmf 46 LogExecute python ${TOOLS_DIR}/create_term.py -n twm twm.nmf
47 InstallNaClTerm . 47 InstallNaClTerm .
48 LogExecute cp -f ${START_DIR}/*.js . 48 LogExecute cp -f ${START_DIR}/*.js .
49 } 49 }
OLDNEW
« no previous file with comments | « ports/tree/build.sh ('k') | ports/unzip/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698