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

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

Issue 1285953002: Switch devenv to use pkg packages (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@toolchain_install
Patch Set: Created 5 years, 4 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
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}" 7 LIBS="${NACL_CLI_MAIN_LIB}"
8 8
9 if [ "${NACL_LIBC}" = "newlib" ]; then 9 if [ "${NACL_LIBC}" = "newlib" ]; then
10 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" 10 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
(...skipping 24 matching lines...) Expand all
35 BuildStep() { 35 BuildStep() {
36 LogExecute ${SRC_DIR}/ninja 36 LogExecute ${SRC_DIR}/ninja
37 } 37 }
38 38
39 TestStep() { 39 TestStep() {
40 LogExecute ${SRC_DIR}/ninja ninja_test 40 LogExecute ${SRC_DIR}/ninja ninja_test
41 RunSelLdrCommand ninja_test --gtest_filter=-SubprocessTest.* 41 RunSelLdrCommand ninja_test --gtest_filter=-SubprocessTest.*
42 } 42 }
43 43
44 InstallStep() { 44 InstallStep() {
45 return 45 MakeDir ${DESTDIR}${PREFIX}/bin
46 LogExecute cp ninja ${DESTDIR}${PREFIX}/bin/
46 } 47 }
47
48 PublishStep() {
49 MakeDir ${PUBLISH_DIR}
50 MakeDir ${PUBLISH_DIR}/${NACL_ARCH}
51 LogExecute cp ninja ${PUBLISH_DIR}/${NACL_ARCH}/ninja
52 PublishByArchForDevEnv
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698