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

Side by Side Diff: ports/perl/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) 2015 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2015 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 # falling back to cc for generating build time artifacts 5 # falling back to cc for generating build time artifacts
6 export BUILD_CC=cc 6 export BUILD_CC=cc
7 export BUILD_LD=cc 7 export BUILD_LD=cc
8 # use -Wno-return-type to suppress return-type errors encountered 8 # use -Wno-return-type to suppress return-type errors encountered
9 # with pnacl, arm's clang-newlib (microperl) 9 # with pnacl, arm's clang-newlib (microperl)
10 NACLPORTS_CFLAGS_MICRO=$NACLPORTS_CFLAGS 10 NACLPORTS_CFLAGS_MICRO=$NACLPORTS_CFLAGS
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 LogExecute ${BUILD_LD} -o generate_uudmap generate_uudmap.o -lm 143 LogExecute ${BUILD_LD} -o generate_uudmap generate_uudmap.o -lm
144 LogExecute make -j${OS_JOBS} libs="${LIBS}" all 144 LogExecute make -j${OS_JOBS} libs="${LIBS}" all
145 # test_prep prepares the perl for tests, might use this later 145 # test_prep prepares the perl for tests, might use this later
146 LogExecute make -j${OS_JOBS} libs="${LIBS}" test_prep 146 LogExecute make -j${OS_JOBS} libs="${LIBS}" test_prep
147 # clean removes everything, so moving in microperl 147 # clean removes everything, so moving in microperl
148 LogExecute mv -f ${HOST_BUILD}/microperl ${SRC_DIR} 148 LogExecute mv -f ${HOST_BUILD}/microperl ${SRC_DIR}
149 } 149 }
150 150
151 InstallStep() { 151 InstallStep() {
152 # microperl, perl don't require make install 152 # microperl, perl don't require make install
153 return 153 Makefile ${DESTDIR}${PREFIX}${LIB}
154 LogExecute cp -rf ${SRC_DIR}/lib ${DESTDIR}${PREFIX}/
154 } 155 }
155
156 PublishStep() {
157 MakeDir ${ARCH_DIR}
158 TAR_DIR=${ARCH_DIR}/perltar
159 MakeDir ${TAR_DIR}
160 ChangeDir ${TAR_DIR}
161 LogExecute cp -rf ${SRC_DIR}/lib ${TAR_DIR}
162 LogExecute tar cf ${ARCH_DIR}/perl.tar .
163 LogExecute shasum ${ARCH_DIR}/perl.tar > ${ARCH_DIR}/perl.tar.hash
164 ChangeDir ${SRC_DIR}
165 LogExecute rm -rf ${TAR_DIR}
166 PublishByArchForDevEnv
167 }
OLDNEW
« ports/devenv/package ('K') | « ports/ninja/build.sh ('k') | ports/subversion/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698