OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/bash -x |
| 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 |
| 7 # This build script is similar to the one found in webkit. |
| 8 # We've temporarily modified it to support conditional compiling of |
| 9 # the V8 DerivedSources. When we build our DerivedSources, we build |
| 10 # partly from our port directory, and partly from the webkit directory; |
| 11 # chosing files from our port area only if they contain changes from |
| 12 # the original. |
| 13 # |
| 14 |
| 15 XSRCROOT="$1" |
| 16 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| 17 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 |
| 18 XSRCROOT=`cygpath -m -s "$XSRCROOT"` |
| 19 XSRCROOT=`cygpath -u "$XSRCROOT"` |
| 20 export XSRCROOT |
| 21 export SOURCE_ROOT="$XSRCROOT" |
| 22 |
| 23 PORTROOT="$2" |
| 24 PORTROOT=`cygpath -m -s "$PORTROOT"` |
| 25 PORTROOT=`cygpath -u "$PORTROOT"` |
| 26 export PORTROOT=`realpath "$PORTROOT"` |
| 27 |
| 28 XDSTROOT="$3" |
| 29 export XDSTROOT |
| 30 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| 31 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 |
| 32 XDSTROOT=`cygpath -m -s "$XDSTROOT"` |
| 33 XDSTROOT=`cygpath -u "$XDSTROOT"` |
| 34 export XDSTROOT |
| 35 |
| 36 export BUILT_PRODUCTS_DIR="$4" |
| 37 export CREATE_HASH_TABLE="$XSRCROOT/../JavaScriptCore/create_hash_table" |
| 38 |
| 39 DerivedSourcesDir="${BUILT_PRODUCTS_DIR}\DerivedSources" |
| 40 echo "$DerivedSourcesDir" |
| 41 mkdir -p "$DerivedSourcesDir" |
| 42 cd "$DerivedSourcesDir" |
| 43 |
| 44 export WebCore="${XSRCROOT}" |
| 45 export ENCODINGS_FILE="${WebCore}/platform/win/win-encodings.txt"; |
| 46 export ENCODINGS_PREFIX="" |
| 47 |
| 48 # To see what FEATURE_DEFINES Apple uses, look at: |
| 49 # webkit/third_party/WebCore/Configurations/WebCore.xcconfig |
| 50 export FEATURE_DEFINES="ENABLE_DATABASE ENABLE_SVG ENABLE_SVG_ANIMATION ENABLE_S
VG_AS_IMAGE ENABLE_SVG_FONTS ENABLE_SVG_FOREIGN_OBJECT ENABLE_SVG_USE ENABLE_VID
EO ENABLE_WORKERS ENABLE_OFFLINE_WEB_APPLICATIONS ENABLE_CHANNEL_MESSAGING ENABL
E_XPATH ENABLE_XSLT" |
| 51 |
| 52 # Adjust the number of jobs spawned according to the CPU count. |
| 53 if [ -z "$NUMBER_OF_PROCESSORS" ]; then |
| 54 echo "WARNING: NUMBER_OF_PROCESSORS environment variable not defined; assuming
2" |
| 55 fi |
| 56 JOBS=$((${NUMBER_OF_PROCESSORS:-2} + 1)) |
| 57 |
| 58 echo Building DerivedSources ${PORTROOT}... |
| 59 # Use silent flag. |
| 60 make -s -f "${PORTROOT}/DerivedSources.make" -j $JOBS || exit 1 |
OLD | NEW |