OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |