| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | |
| 9 BuildStep() { | 6 BuildStep() { |
| 10 export TARGET_OS=NaCl | 7 export TARGET_OS=NaCl |
| 11 LogExecute make clean | 8 LogExecute make clean |
| 12 LogExecute make -j${OS_JOBS} | 9 LogExecute make -j${OS_JOBS} |
| 13 LogExecute make -j${OS_JOBS} tests programs | 10 LogExecute make -j${OS_JOBS} tests programs |
| 14 } | 11 } |
| 15 | 12 |
| 16 InstallStep() { | 13 InstallStep() { |
| 17 LogExecute cp libleveldb.a ${NACLPORTS_LIBDIR} | 14 LogExecute cp libleveldb.a ${NACLPORTS_LIBDIR} |
| 18 LogExecute cp -r include/leveldb ${NACLPORTS_LIBDIR} | 15 LogExecute cp -r include/leveldb ${NACLPORTS_LIBDIR} |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 version_set_test \ | 49 version_set_test \ |
| 53 write_batch_test" | 50 write_batch_test" |
| 54 for test_binary in $TESTS; do | 51 for test_binary in $TESTS; do |
| 55 WriteSelLdrScript $test_binary.sh $test_binary | 52 WriteSelLdrScript $test_binary.sh $test_binary |
| 56 done | 53 done |
| 57 for test_binary in $TESTS; do | 54 for test_binary in $TESTS; do |
| 58 echo "***** Running $test_binary.sh"i | 55 echo "***** Running $test_binary.sh"i |
| 59 ./$test_binary.sh | 56 ./$test_binary.sh |
| 60 done | 57 done |
| 61 } | 58 } |
| 62 | |
| 63 PackageInstall | |
| 64 exit 0 | |
| OLD | NEW |