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

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

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 months 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/nacl-spawn/nacl_spawn.cc ('k') | ports/openssh/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="ninja" 5 EXECUTABLES="ninja"
6 6
7 LIBS+="${NACL_CLI_MAIN_LIB} -lnacl_spawn -lppapi_simple -lnacl_io \ 7 LIBS+="${NACL_CLI_MAIN_LIB} -lppapi_simple -lnacl_io \
8 -lppapi -lppapi_cpp" 8 -lppapi -lppapi_cpp"
9 9
10 if [ "${NACL_LIBC}" = "newlib" ]; then 10 if [ "${NACL_LIBC}" = "newlib" ]; then
11 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" 11 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
12 LIBS+=" -lglibc-compat" 12 LIBS+=" -lglibc-compat"
13 fi 13 fi
14 14
15 BuildHostNinja() { 15 BuildHostNinja() {
16 # Build a host version ninja in $SRC_DIR 16 # Build a host version ninja in $SRC_DIR
17 if [ -f "${SRC_DIR}/ninja" ];then 17 if [ -f "${SRC_DIR}/ninja" ];then
(...skipping 25 matching lines...) Expand all
43 InstallStep() { 43 InstallStep() {
44 return 44 return
45 } 45 }
46 46
47 PublishStep() { 47 PublishStep() {
48 MakeDir ${PUBLISH_DIR} 48 MakeDir ${PUBLISH_DIR}
49 MakeDir ${PUBLISH_DIR}/${NACL_ARCH} 49 MakeDir ${PUBLISH_DIR}/${NACL_ARCH}
50 LogExecute cp ninja ${PUBLISH_DIR}/${NACL_ARCH}/ninja 50 LogExecute cp ninja ${PUBLISH_DIR}/${NACL_ARCH}/ninja
51 PublishByArchForDevEnv 51 PublishByArchForDevEnv
52 } 52 }
OLDNEW
« no previous file with comments | « ports/nacl-spawn/nacl_spawn.cc ('k') | ports/openssh/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698