diff options
Diffstat (limited to 'webkit/build/JSConfig')
-rwxr-xr-x | webkit/build/JSConfig/create-config.sh | 103 | ||||
-rw-r--r-- | webkit/build/JSConfig/prebuild.bat | 17 |
2 files changed, 0 insertions, 120 deletions
diff --git a/webkit/build/JSConfig/create-config.sh b/webkit/build/JSConfig/create-config.sh deleted file mode 100755 index 8a673cc..0000000 --- a/webkit/build/JSConfig/create-config.sh +++ /dev/null @@ -1,103 +0,0 @@ -#!/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. - -# In order to build KJS or V8 versions of Chrome, we need to create -# a custom configuration header. This script creates it. -# -# Input -# create-config.sh <OutputDir> <kjs|v8> -# -# Output -# in the $Output\WebCore directory, creates a config.h -# custom to the desired build setup -# -set -ex -# -# Step 1: Create the webkit config.h which is appropriate for our -# JavaScript engine. -# -if [[ "${OS}" != "Windows_NT" ]] -then - WebCoreObjDir="$1/WebCore" - JSHeadersDir="$1/WebCore/JavaScriptHeaders" - CP="cp -p" -else - WebCoreObjDir="$1\obj\WebCore" - JSHeadersDir="$1\obj\WebCore\JavaScriptHeaders" - CP="cp" -fi -mkdir -p "$WebCoreObjDir" -rm -f $WebCoreObjDir/definitions.h 2> /dev/null - - -if [[ "$2" = "kjs" ]] -then - SubDir=/kjs - cat > $WebCoreObjDir/definitions.h << -=EOF=- -#define WTF_USE_JAVASCRIPTCORE_BINDINGS 1 -#define WTF_USE_NPOBJECT 1 --=EOF=- -else - SubDir=/v8 - cat > $WebCoreObjDir/definitions.h << -=EOF=- -#define WTF_USE_V8_BINDING 1 -#define WTF_USE_NPOBJECT 1 --=EOF=- -fi - -if [[ "${OS}" = "Windows_NT" ]] -then - SubDir= -fi - -mkdir -p "${WebCoreObjDir}${SubDir}" - -pwd -cat ../../config.h.in $WebCoreObjDir/definitions.h > $WebCoreObjDir$SubDir/config.h.new -if [[ "${OS}" = "Windows_NT" ]] || \ - ! diff -q $WebCoreObjDir$SubDir/config.h.new $WebCoreObjDir$SubDir/config.h >& /dev/null -then - mv $WebCoreObjDir$SubDir/config.h.new $WebCoreObjDir$SubDir/config.h -else - rm $WebCoreObjDir$SubDir/config.h.new -fi - -rm -f "${WebCoreObjDir}/definitions.h" - -# -# Step 2: Populate the JavaScriptHeaders based on the selected -# JavaScript engine. -# -JSHeadersDir="${JSHeadersDir}${SubDir}" -mkdir -p $JSHeadersDir -JavaScriptCoreSrcDir="../../../third_party/WebKit/JavaScriptCore" -WebCoreSrcDir="../../../third_party/WebKit/WebCore" -if [[ "$2" = "kjs" ]] -then - mkdir -p $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/APICast.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JavaScript.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSBase.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSContextRef.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSObjectRef.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSStringRef.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSStringRefCF.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSStringRefBSTR.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSValueRef.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JavaScriptCore.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/JSRetainPtr.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/OpaqueJSString.h $JSHeadersDir/JavaScriptCore - $CP $JavaScriptCoreSrcDir/API/WebKitAvailability.h $JSHeadersDir/JavaScriptCore -else - $CP $WebCoreSrcDir/bridge/npapi.h $JSHeadersDir - $CP $WebCoreSrcDir/bridge/npruntime.h $JSHeadersDir - $CP ../../../webkit/port/bindings/v8/npruntime_priv.h $JSHeadersDir -fi - -if [[ "${OS}" = "Windows_NT" ]] -then - $CP $JavaScriptCoreSrcDir/os-win32/stdint.h $JSHeadersDir -fi diff --git a/webkit/build/JSConfig/prebuild.bat b/webkit/build/JSConfig/prebuild.bat deleted file mode 100644 index 29e68d3..0000000 --- a/webkit/build/JSConfig/prebuild.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -setlocal -set OUTDIR=%1 -set JSENG=%2 -set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ -set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files - -:: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. -set CYGWIN=nontsec - -set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 - -:: Ensure that the cygwin mount points are defined -CALL %CYGWIN_ROOT%setup_mount.bat > NUL - -bash -x create-config.sh %OUTDIR% %JSENG% |