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

Side by Side Diff: ports/font-util/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/findutils/nacl.patch ('k') | ports/fontconfig/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) 2013 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2013 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 # The host build of this tool is needed by its dependents. 5 # The host build of this tool is needed by its dependents.
6 HOST_BUILD_DIR=${WORK_DIR}/build_host 6 HOST_BUILD_DIR=${WORK_DIR}/build_host
7 HOST_INSTALL_DIR=${WORK_DIR}/install_host 7 HOST_INSTALL_DIR=${WORK_DIR}/install_host
8 8
9 EXECUTABLES="bdftruncate${NACL_EXEEXT} ucs2any${NACL_EXEEXT}" 9 EXECUTABLES="bdftruncate${NACL_EXEEXT} ucs2any${NACL_EXEEXT}"
10 10
11 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" 11 EnableCliMain
12 NACLPORTS_LDFLAGS+=" -Dmain=nacl_main"
13 export LIBS="${NACL_CLI_MAIN_LIB}"
14 12
15 EnableGlibcCompat 13 EnableGlibcCompat
16 14
17 BuildForHost() { 15 BuildForHost() {
18 Banner "Building for Host" 16 Banner "Building for Host"
19 MakeDir ${HOST_BUILD_DIR} 17 MakeDir ${HOST_BUILD_DIR}
20 ChangeDir ${HOST_BUILD_DIR} 18 ChangeDir ${HOST_BUILD_DIR}
21 CFLAGS="" LDFLAGS="" LIBS="" CC="gcc -m32" \ 19 CFLAGS="" LDFLAGS="" LIBS="" CC="gcc -m32" \
22 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} 20 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR}
23 LogExecute make -j${OS_JOBS} 21 LogExecute make -j${OS_JOBS}
24 LogExecute make install 22 LogExecute make install
25 } 23 }
26 24
27 ConfigureStep() { 25 ConfigureStep() {
28 BuildForHost 26 BuildForHost
29 Banner "Building for NaCl" 27 Banner "Building for NaCl"
30 ChangeDir ${BUILD_DIR} 28 ChangeDir ${BUILD_DIR}
31 DefaultConfigureStep 29 DefaultConfigureStep
32 } 30 }
OLDNEW
« no previous file with comments | « ports/findutils/nacl.patch ('k') | ports/fontconfig/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698