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

Side by Side Diff: ports/ninja/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/nethack/nethack_pepper.c ('k') | ports/ninja/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 EXECUTABLES="ninja" 5 EXECUTABLES="ninja"
6 6
7 NACLPORTS_LIBS+=" ${NACL_CLI_MAIN_LIB}"
8 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe" 7 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe"
9 8
9 EnableCliMain
10 EnableGlibcCompat 10 EnableGlibcCompat
11 11
12 BuildHostNinja() { 12 BuildHostNinja() {
13 # Build a host version ninja in $SRC_DIR 13 # Build a host version ninja in $SRC_DIR
14 if [ -f "${SRC_DIR}/ninja" ];then 14 if [ -f "${SRC_DIR}/ninja" ];then
15 return 15 return
16 fi 16 fi
17 ChangeDir ${SRC_DIR} 17 ChangeDir ${SRC_DIR}
18 LogExecute python ./configure.py --bootstrap 18 LogExecute python ./configure.py --bootstrap
19 ChangeDir ${BUILD_DIR} 19 ChangeDir ${BUILD_DIR}
(...skipping 13 matching lines...) Expand all
33 33
34 TestStep() { 34 TestStep() {
35 LogExecute ${SRC_DIR}/ninja ninja_test 35 LogExecute ${SRC_DIR}/ninja ninja_test
36 RunSelLdrCommand ninja_test --gtest_filter=-SubprocessTest.* 36 RunSelLdrCommand ninja_test --gtest_filter=-SubprocessTest.*
37 } 37 }
38 38
39 InstallStep() { 39 InstallStep() {
40 MakeDir ${DESTDIR}${PREFIX}/bin 40 MakeDir ${DESTDIR}${PREFIX}/bin
41 LogExecute cp ninja ${DESTDIR}${PREFIX}/bin/ 41 LogExecute cp ninja ${DESTDIR}${PREFIX}/bin/
42 } 42 }
OLDNEW
« no previous file with comments | « ports/nethack/nethack_pepper.c ('k') | ports/ninja/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698