| OLD | NEW |
| 1 #!/usr/bin/bash -x | 1 #!/usr/bin/bash -x |
| 2 # | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 3 # This build script is similar to the one found in webkit. | 7 # This build script is similar to the one found in webkit. |
| 4 # We've temporarily modified it to support conditional compiling of | 8 # We've temporarily modified it to support conditional compiling of |
| 5 # the V8 DerivedSources. When we build our DerivedSources, we build | 9 # the V8 DerivedSources. When we build our DerivedSources, we build |
| 6 # partly from our port directory, and partly from the webkit directory; | 10 # partly from our port directory, and partly from the webkit directory; |
| 7 # chosing files from our port area only if they contain changes from | 11 # chosing files from our port area only if they contain changes from |
| 8 # the original. | 12 # the original. |
| 9 # | 13 # |
| 10 | 14 |
| 11 XSRCROOT="$1" | 15 XSRCROOT="$1" |
| 12 # Do a little dance to get the path into 8.3 form to make it safe for gnu make | 16 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 51 |
| 48 # Adjust the number of jobs spawned according to the CPU count. | 52 # Adjust the number of jobs spawned according to the CPU count. |
| 49 if [ -z "$NUMBER_OF_PROCESSORS" ]; then | 53 if [ -z "$NUMBER_OF_PROCESSORS" ]; then |
| 50 echo "WARNING: NUMBER_OF_PROCESSORS environment variable not defined; assuming
2" | 54 echo "WARNING: NUMBER_OF_PROCESSORS environment variable not defined; assuming
2" |
| 51 fi | 55 fi |
| 52 JOBS=$((${NUMBER_OF_PROCESSORS:-2} + 1)) | 56 JOBS=$((${NUMBER_OF_PROCESSORS:-2} + 1)) |
| 53 | 57 |
| 54 echo Building DerivedSources ${PORTROOT}... | 58 echo Building DerivedSources ${PORTROOT}... |
| 55 # Use silent flag. | 59 # Use silent flag. |
| 56 make -s -f "${PORTROOT}/DerivedSources.make" -j $JOBS || exit 1 | 60 make -s -f "${PORTROOT}/DerivedSources.make" -j $JOBS || exit 1 |
| OLD | NEW |