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

Side by Side Diff: ports/glibc-compat/build.sh

Issue 1555913002: Build gtest from source rather than using SDK-provided version (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 11 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/glibc-compat/Makefile ('k') | ports/glibc-compat/pkg_info » ('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) 2012 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2012 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 BUILD_DIR=${SRC_DIR} 5 BUILD_DIR=${SRC_DIR}
6 if [ "${TOOLCHAIN}" != "emscripten" ]; then 6 if [ "${TOOLCHAIN}" != "emscripten" ]; then
7 EXECUTABLES=out/glibc_compat_test 7 EXECUTABLES=out/glibc_compat_test
8 fi 8 fi
9 9
10 ConfigureStep() { 10 ConfigureStep() {
11 LogExecute cp -rf ${START_DIR}/* . 11 LogExecute cp -rf ${START_DIR}/* .
12 LogExecute rm -rf out 12 LogExecute rm -rf out
13 } 13 }
14 14
15
15 BuildStep() { 16 BuildStep() {
16 if [ "${TOOLCHAIN}" = "emscripten" ]; then 17 if [ "${TOOLCHAIN}" = "emscripten" ]; then
17 return 18 return
18 fi 19 fi
19 # export the nacl tools 20 # export the nacl tools
20 export CC=${NACLCC} 21 export CC=${NACLCC}
21 export CXX=${NACLCXX} 22 export CXX=${NACLCXX}
22 export AR=${NACLAR} 23 export AR=${NACLAR}
23 export NACL_SDK_VERSION 24 export NACL_SDK_VERSION
24 export NACL_SDK_ROOT 25 export NACL_SDK_ROOT
25 export LDFLAGS=${NACLPORTS_LDFLAGS} 26 export LDFLAGS=${NACLPORTS_LDFLAGS}
26 export CPPFLAGS=${NACLPORTS_CPPFLAGS} 27 export CPPFLAGS=${NACLPORTS_CPPFLAGS}
27 export CFLAGS=${NACLPORTS_CFLAGS} 28 export CFLAGS=${NACLPORTS_CFLAGS}
29 export GTEST_DIR=${NACL_PREFIX}/src/gtest
28 DefaultBuildStep 30 DefaultBuildStep
29 } 31 }
30 32
31 TestStep() { 33 TestStep() {
32 if [ "${TOOLCHAIN}" = "emscripten" ]; then 34 if [ "${TOOLCHAIN}" = "emscripten" ]; then
33 return 35 return
34 fi 36 fi
35 if [ "${TOOLCHAIN}" = "pnacl" ]; then 37 if [ "${TOOLCHAIN}" = "pnacl" ]; then
36 RunSelLdrCommand ./out/glibc_compat_test 38 RunSelLdrCommand ./out/glibc_compat_test
37 else 39 else
(...skipping 14 matching lines...) Expand all
52 for file in include/*.h ${INCDIR}; do 54 for file in include/*.h ${INCDIR}; do
53 if [ -f $file ]; then 55 if [ -f $file ]; then
54 LogExecute install -m 644 $file ${INCDIR}/ 56 LogExecute install -m 644 $file ${INCDIR}/
55 fi 57 fi
56 done 58 done
57 for dir in sys arpa machine net netinet netinet6; do 59 for dir in sys arpa machine net netinet netinet6; do
58 MakeDir ${INCDIR}/${dir} 60 MakeDir ${INCDIR}/${dir}
59 LogExecute install -m 644 include/${dir}/*.h ${INCDIR}/${dir}/ 61 LogExecute install -m 644 include/${dir}/*.h ${INCDIR}/${dir}/
60 done 62 done
61 } 63 }
OLDNEW
« no previous file with comments | « ports/glibc-compat/Makefile ('k') | ports/glibc-compat/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698