diff options
Diffstat (limited to 'webkit/build/V8Bindings/build-generated-files.sh')
-rwxr-xr-x | webkit/build/V8Bindings/build-generated-files.sh | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/webkit/build/V8Bindings/build-generated-files.sh b/webkit/build/V8Bindings/build-generated-files.sh new file mode 100755 index 0000000..82a9945 --- /dev/null +++ b/webkit/build/V8Bindings/build-generated-files.sh @@ -0,0 +1,60 @@ +#!/usr/bin/bash -x + +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This build script is similar to the one found in webkit. +# We've temporarily modified it to support conditional compiling of +# the V8 DerivedSources. When we build our DerivedSources, we build +# partly from our port directory, and partly from the webkit directory; +# chosing files from our port area only if they contain changes from +# the original. +# + +XSRCROOT="$1" +# Do a little dance to get the path into 8.3 form to make it safe for gnu make +# http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 +XSRCROOT=`cygpath -m -s "$XSRCROOT"` +XSRCROOT=`cygpath -u "$XSRCROOT"` +export XSRCROOT +export SOURCE_ROOT="$XSRCROOT" + +PORTROOT="$2" +PORTROOT=`cygpath -m -s "$PORTROOT"` +PORTROOT=`cygpath -u "$PORTROOT"` +export PORTROOT=`realpath "$PORTROOT"` + +XDSTROOT="$3" +export XDSTROOT +# Do a little dance to get the path into 8.3 form to make it safe for gnu make +# http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 +XDSTROOT=`cygpath -m -s "$XDSTROOT"` +XDSTROOT=`cygpath -u "$XDSTROOT"` +export XDSTROOT + +export BUILT_PRODUCTS_DIR="$4" +export CREATE_HASH_TABLE="$XSRCROOT/../JavaScriptCore/create_hash_table" + +DerivedSourcesDir="${BUILT_PRODUCTS_DIR}\DerivedSources" +echo "$DerivedSourcesDir" +mkdir -p "$DerivedSourcesDir" +cd "$DerivedSourcesDir" + +export WebCore="${XSRCROOT}" +export ENCODINGS_FILE="${WebCore}/platform/win/win-encodings.txt"; +export ENCODINGS_PREFIX="" + +# To see what FEATURE_DEFINES Apple uses, look at: +# webkit/third_party/WebCore/Configurations/WebCore.xcconfig +export FEATURE_DEFINES="ENABLE_DATABASE ENABLE_SVG ENABLE_SVG_ANIMATION ENABLE_SVG_AS_IMAGE ENABLE_SVG_FONTS ENABLE_SVG_FOREIGN_OBJECT ENABLE_SVG_USE ENABLE_VIDEO ENABLE_WORKERS ENABLE_OFFLINE_WEB_APPLICATIONS ENABLE_CHANNEL_MESSAGING ENABLE_XPATH ENABLE_XSLT" + +# Adjust the number of jobs spawned according to the CPU count. +if [ -z "$NUMBER_OF_PROCESSORS" ]; then + echo "WARNING: NUMBER_OF_PROCESSORS environment variable not defined; assuming 2" +fi +JOBS=$((${NUMBER_OF_PROCESSORS:-2} + 1)) + +echo Building DerivedSources ${PORTROOT}... +# Use silent flag. +make -s -f "${PORTROOT}/DerivedSources.make" -j $JOBS || exit 1 |