From f3516ff1282a2ad896bfabc678106233eed74e8e Mon Sep 17 00:00:00 2001 From: ap Date: Sat, 13 May 2006 16:47:07 +0000 Subject: [PATCH] 2006-05-13 Kevin M. Ollivier Reviewed by Darin, landed by ap. - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528 Bakefiles (and generated Makefiles) for wx and gdk ports JavaScriptCore: * make-generated-sources.sh: Added script to configure environment to run DerivedSources.make * JavaScriptCoreSources.bkl: Added JavaScriptCore sources list for Bakefile. * jscore.bkl: Bakefile used to generate JavaScriptCore project files (currently only used by wx and gdk ports) WebCore: * make-generated-sources.sh: Added script to configure environment to run DerivedSources.make * move-js-headers.sh: Added script to copy JavaScriptCore includes into one dir so that Framework-style includes will work on all OSes. (written by Mike Emmel) * platform/wx: New dir, home for the wxWidgets port * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file. * Projects: New dir, for various project files for ports. * Projects/gdk: New dir, GDK port files. * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files * Projects/wx: New dir, wxWidgets port files. * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files WebKitTools: * Scripts/install-unix-extras: Added. * Scripts/regenerate-makefiles: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14359 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Bakefiles/Bakefiles.bkgen | 91 ++++ Bakefiles/ChangeLog | 18 + Bakefiles/Readme.txt | 99 +++++ Bakefiles/presets.bkl | 112 +++++ Bakefiles/update-file-lists.py | 180 ++++++++ JavaScriptCore/ChangeLog | 17 + JavaScriptCore/JavaScriptCoreSources.bkl | 73 ++++ JavaScriptCore/jscore.bkl | 112 +++++ JavaScriptCore/make-generated-sources.sh | 18 + WebCore/ChangeLog | 25 ++ WebCore/Projects/gdk/webcore-gdk.bkl | 46 ++ WebCore/Projects/wx/webcore-wx.bkl | 50 +++ WebCore/WebCoreSources.bkl | 533 +++++++++++++++++++++++ WebCore/make-generated-sources.sh | 17 + WebCore/move-js-headers.sh | 12 + WebCore/platform/wx/wx-encodings.txt | 12 + WebCore/webcore-base.bkl | 142 ++++++ WebKitTools/ChangeLog | 10 + WebKitTools/Scripts/install-unix-extras | 112 +++++ WebKitTools/Scripts/regenerate-makefiles | 77 ++++ 20 files changed, 1756 insertions(+) create mode 100644 Bakefiles/Bakefiles.bkgen create mode 100644 Bakefiles/ChangeLog create mode 100644 Bakefiles/Readme.txt create mode 100644 Bakefiles/presets.bkl create mode 100644 Bakefiles/update-file-lists.py create mode 100644 JavaScriptCore/JavaScriptCoreSources.bkl create mode 100644 JavaScriptCore/jscore.bkl create mode 100644 JavaScriptCore/make-generated-sources.sh create mode 100644 WebCore/Projects/gdk/webcore-gdk.bkl create mode 100644 WebCore/Projects/wx/webcore-wx.bkl create mode 100644 WebCore/WebCoreSources.bkl create mode 100644 WebCore/make-generated-sources.sh create mode 100644 WebCore/move-js-headers.sh create mode 100644 WebCore/platform/wx/wx-encodings.txt create mode 100644 WebCore/webcore-base.bkl create mode 100644 WebKitTools/Scripts/install-unix-extras create mode 100644 WebKitTools/Scripts/regenerate-makefiles diff --git a/Bakefiles/Bakefiles.bkgen b/Bakefiles/Bakefiles.bkgen new file mode 100644 index 00000000000..5015a66114c --- /dev/null +++ b/Bakefiles/Bakefiles.bkgen @@ -0,0 +1,91 @@ + + + + + + + ../JavaScriptCore/jscore.bkl + ../WebCore/Projects/wx/webcore-wx.bkl + ../WebCore/Projects/gdk/webcore-gdk.bkl + + + + + msvc,msvs2005,gnu + + + + + msvs2005,msvc + + + + + -o../JavaScriptCore/GNUmakefile + + + -o../JavaScriptCore/JavaScriptCore.sln + + + -o../JavaScriptCore/bkl-makefile.vc + + + + + + -o../WebCore/Projects/wx/GNUmakefile + + + -o../WebCore/Projects/wx/wxWebCore.sln + + + -o../WebCore/Projects/wx/makefile.vc + + + + + + -o../WebCore/Projects/gdk/GNUmakefile + + + + + + + diff --git a/Bakefiles/ChangeLog b/Bakefiles/ChangeLog new file mode 100644 index 00000000000..71d84b19015 --- /dev/null +++ b/Bakefiles/ChangeLog @@ -0,0 +1,18 @@ +2006-05-11 Kevin M. Ollivier + + - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528 + Bakefiles (and generated Makefiles) for wx and gdk ports + + * Readme.txt: + Added file introducing the Bakefile build system and detailing how it works. + + * Bakefiles.bkgen: + Added Bakefile build configuration file + + * update-file-lists.py: + Added script to generate cross-platform sources list from Win VCProject files. + + * presets.bkl: + Added Bakefile containing templates for WebCore pre-requisites, like + libxml/xslt, ICU, etc. This file contains the logic for determining the + correct build settings for those projects on each platform. diff --git a/Bakefiles/Readme.txt b/Bakefiles/Readme.txt new file mode 100644 index 00000000000..f3f0ab8f690 --- /dev/null +++ b/Bakefiles/Readme.txt @@ -0,0 +1,99 @@ +WebKit Bakefile Docs + +The files in this folder are used to auto-generate project files in GNU +Make and Microsoft Visual Studio 6 (can be used in 7 and 8 too). Support +for many other formats are available, including eVC (for PocketPC), +autoconf, and Symbian project formats, so most future ports would be +able to take advantage of Bakefile support for their projects. (XCode +also has a partial backend in place, but it's not in a usable state for +this project.) + +The project files generated using Bakefile currently reside in the +WebCore/Projects/ folder. There are not any JavaScriptCore +Bakefiles yet as it build successfully pretty much everywhere already. +However, a Bakefile-based project management system might reduce the +maintenance burden of maintaining the JavaScriptCore project files too, +eventually. + + +Preparing the build environment +-------------------------------- + +Right now, the prepartion steps are not totally automated. Here are the steps +that need to be taken at present before you build. + +IMPORTANT: If you already have a copy of Bakefile 0.2.0 installed, you need to +update your version to a modified 0.2.0 release with MSVS 2005 support. (If you +haven't installed it, regenerate-makefiles will take care of it for you.) You can +get the release from here: + +http://kevino.theolliviers.com/bakefile-0.2.0-msvs2005.tar.gz + +This support will be officially in a future Bakefile release. + +--- On Unix, do the following: + +cd WebKitTools/Scripts +sudo ./install-unix-extras # or su, needed for make install + +--- On Windows, do the following: + +cd WebKitTools/Scripts +./install-win-extras + + +Building the projects +---------------------- + +cd into the project directory (WebKit/JavaScriptCore and +WebKit/WebCore/Projects/wx, respectively) and run the following: + +-- On Unix: + +make + +-- On Windows, you should open and build the .sln projects. + +Windows Note: Sometimes, the files generated by the pre-build step don't get +built and you get an error during linking. However, a subsequent build resolves +the issue. + + +Regenerating the Makefiles +--------------------------- + +cd into the WebCore/WebKitTools/Scripts directory and run the +./regenerate-makefiles script to recreate the makefiles. This will download +and install Bakefile if you don't have it installed already. (You may need to +authenticate if it needs to install Bakefile.) + + +Regenerating the source file lists +------------------------------------ +Currently, WebCoreSources.bkl and JavaScriptCore.bkl files are +autogenerated by reading the .vcproj files and extracting the file lists +from them, using update-file-lists.py. Whenever files are added/removed, +you should re-run 'python update-file-lists.py' to put the *Sources.bkl back in +sync with TOT. When the script is run, however, there are also currently two +source files that need to be manually removed: + +In JavaScriptCoreSources.bkl +- ./grammarWrapper.cpp + +In WebCoreSources.bkl +- $(SRCDIR)/rendering/RenderThemeWin.cpp + +Eventually, we need a way to ensure that these files get included only for +Win builds. Either we find a solution so that we no longer need to autogenerate +the source file list, or we move them in the vcproj to some sort of 'win' +subfolder, which would automatically keep them from being added to the Bakefiles. + + +Bakefile formats +----------------- + +For those of you curious about what other types of project files Bakefile can +generate, a list can be found here: + +http://bakefile.sourceforge.net/doc/html/rn01re01.html + diff --git a/Bakefiles/presets.bkl b/Bakefiles/presets.bkl new file mode 100644 index 00000000000..3069b0aaed8 --- /dev/null +++ b/Bakefiles/presets.bkl @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Bakefiles/update-file-lists.py b/Bakefiles/update-file-lists.py new file mode 100644 index 00000000000..94e2b4f790e --- /dev/null +++ b/Bakefiles/update-file-lists.py @@ -0,0 +1,180 @@ +#!/usr/bin/python + +# Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of +# its contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# A script to make sure the source file list for the Bakefiles is up-to-date +# with the MSVC project files. + +import sys, os +from xml.dom import minidom + +WebKitRoot = ".." + + +class MSVS8Compiler: + def __init__(self): + self.precomp_headers = True + self.warning_level = "default" + self.defines = [] + self.includes = [] + + def fromXML(self, tool): + if tool.attributes.has_key("AdditionalIncludeDirectories"): + includes_string = tool.attributes["AdditionalIncludeDirectories"].value + includes_string = includes_string.replace(""", '"') + includes_string = includes_string.replace("$", "$(DOLLAR)") + self.includes = includes_string.split(";") + + if tool.attributes.has_key("PreprocessorDefinitions"): + self.defines = tool.attributes["PreprocessorDefinitions"].value.split(";") + +class MSVS8Config: + def __init__(self): + self.target_type="exe" + self.target_name="Release" + self.output_dir = "" + self.build_dir = "" + self.pre_build_step = "" + self.compiler = MSVS8Compiler() + + def fromXML(self, config): + if config.attributes.has_key("Name"): + self.target_name = config.attributes["Name"].value + + config_type = config.attributes["ConfigurationType"].value + if config_type == "1": + self.target_type = "exe" + elif config_type == "2": + self.target_type = "dll" + elif config_type == "4": + self.target_type = "lib" + else: + print "Unknown project type %s. Exiting..." % (config_type) + sys.exit(1) + + tools = config.getElementsByTagName("Tool") + + for tool in tools: + if tool.attributes.has_key("Name") and tool.attributes["Name"].value == "VCPreBuildEventTool" and tool.attributes.has_key("VCPreBuildEventTool"): + self.pre_build_step = tool.attributes["VCPreBuildEventTool"].value + continue + + if tool.attributes.has_key("Name") and tool.attributes["Name"].value == "VCCLCompilerTool": + self.compiler.fromXML(tool) + + def asBkl(self, doc): + target = doc.createElement(self.target_type) + target.setAttribute("id", self.target_name) + + return target + +class MSVS8Filter: + def __init__(self): + self.files = [] + self.name = "" + self.varname = "" + self.prefix = "WEBCORE_" + + def fromXML(self, filter): + if filter.attributes.has_key("Name"): + self.name = filter.attributes["Name"].value + self.varname = self.prefix + "SOURCES_" + self.name.upper() + + for node in filter.childNodes: + if node.nodeName == "File" and node.attributes.has_key("RelativePath"): + filename = node.attributes["RelativePath"].value.replace("$", "$(DOLLAR)") + filename = filename.replace("\\", "/") + filename = "\t\t" + filename.replace("../../", "") + if os.path.splitext(filename)[1] in [".c", ".cpp"]: + self.files.append(filename) + + def asBkl(self, doc): + sources = doc.createElement("set") + if self.name != "": + sources.setAttribute("var", self.varname) + # currently we 'flatten' the MSVC sources hierarchy to a simple list + # so we may end up with duplicates for self.varname when the root + # and subfolders share the same name. For now, just make sure the + # sources are added together as part of the target + sources.setAttribute("append", "1") + + sources_text = "\n" + for afile in self.files: + sources_text += afile + "\n" + + sources.appendChild(doc.createTextNode(sources_text)) + return sources + +class MSVS8Project: + def __init__(self): + self.configs = [] + self.file_list = [] + self.prefix = "WEBCORE_" + + def loadFromXML(self, filename): + doc = minidom.parse(filename) + configs = doc.getElementsByTagName("Configuration") + for config in configs: + config_obj = MSVS8Config() + config_obj.fromXML(config) + self.configs.append(config_obj) + + if filename.find("JavaScriptCore") != -1: + self.prefix = "JSCORE_" + + files = doc.getElementsByTagName("Filter") + for node in files: + files = MSVS8Filter() + files.prefix = self.prefix + files.fromXML(node) + self.file_list.append(files) + + def saveAsBkl(self, filename): + doc = minidom.Document() + makefile = doc.createElement("makefile") + source_tags = [] + for files in self.file_list: + makefile.appendChild(files.asBkl(doc)) + + doc.appendChild(makefile) + + outfile = open(filename, "w") + outfile.write(doc.toprettyxml()) + outfile.close() + +jsdir = os.path.join(WebKitRoot, "JavaScriptCore") +wcdir = os.path.join(WebKitRoot, "WebCore") + +files = { jsdir: os.path.join(jsdir, "JavaScriptCore.vcproj", "JavaScriptCore", "JavaScriptCore.vcproj"), + wcdir: os.path.join(wcdir, "WebCore.vcproj", "WebCore", "WebCore.vcproj") + } + +for adir in files: + project = MSVS8Project() + project.loadFromXML(files[adir]) + outputfile = os.path.join(adir, os.path.splitext(os.path.basename(files[adir]))[0] + "Sources.bkl") + project.saveAsBkl(outputfile) diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index 0e545606875..3f3b23b5b33 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,3 +1,20 @@ +2006-05-13 Kevin M. Ollivier + + Reviewed by Darin, landed by ap. + + - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528 + Bakefiles (and generated Makefiles) for wx and gdk ports + + * make-generated-sources.sh: + Added script to configure environment to run DerivedSources.make + + * JavaScriptCoreSources.bkl: + Added JavaScriptCore sources list for Bakefile. + + * jscore.bkl: + Bakefile used to generate JavaScriptCore project files + (currently only used by wx and gdk ports) + 2006-05-09 Steve Falkenburg Fix Windows build. diff --git a/JavaScriptCore/JavaScriptCoreSources.bkl b/JavaScriptCore/JavaScriptCoreSources.bkl new file mode 100644 index 00000000000..d46ab6f2c8f --- /dev/null +++ b/JavaScriptCore/JavaScriptCoreSources.bkl @@ -0,0 +1,73 @@ + + + + + kjs/array_object.cpp + kjs/bool_object.cpp + kjs/collector.cpp + kjs/date_object.cpp + kjs/debugger.cpp + kjs/dtoa.cpp + kjs/error_object.cpp + kjs/fpconst.cpp + kjs/function.cpp + kjs/function_object.cpp + + kjs/identifier.cpp + kjs/internal.cpp + kjs/interpreter.cpp + kjs/JSImmediate.cpp + kjs/JSLock.cpp + kjs/lexer.cpp + kjs/list.cpp + kjs/lookup.cpp + kjs/math_object.cpp + kjs/nodes.cpp + kjs/nodes2string.cpp + kjs/number_object.cpp + kjs/object.cpp + kjs/object_object.cpp + kjs/operations.cpp + kjs/Parser.cpp + kjs/property_map.cpp + kjs/property_slot.cpp + kjs/reference.cpp + kjs/reference_list.cpp + kjs/regexp.cpp + kjs/regexp_object.cpp + kjs/scope_chain.cpp + kjs/string_object.cpp + kjs/ustring.cpp + kjs/value.cpp + + + + + wtf/Assertions.cpp + wtf/FastMalloc.cpp + wtf/HashTable.cpp + + + + + pcre/pcre_compile.c + pcre/pcre_config.c + pcre/pcre_exec.c + pcre/pcre_fullinfo.c + pcre/pcre_get.c + pcre/pcre_globals.c + pcre/pcre_info.c + pcre/pcre_maketables.c + pcre/pcre_ord2utf8.c + pcre/pcre_printint.c + pcre/pcre_refcount.c + pcre/pcre_study.c + pcre/pcre_tables.c + pcre/pcre_try_flipped.c + pcre/pcre_ucp_findchar.c + pcre/pcre_version.c + pcre/pcre_xclass.c + pcre/ucp_findchar.c + + + diff --git a/JavaScriptCore/jscore.bkl b/JavaScriptCore/jscore.bkl new file mode 100644 index 00000000000..efffb8eaa6d --- /dev/null +++ b/JavaScriptCore/jscore.bkl @@ -0,0 +1,112 @@ + + + + + + + + . + + + + + + obj-$(FORMAT) + + + + + $(SRCDIR) + $(SRCDIR)/pcre/dftables.c + + + + + bash make-generated-sources.sh + + + + dftables + DerivedSources + + $(JSCORE_SOURCES_WTF) + $(JSCORE_SOURCES_PCRE) + $(JSCORE_SOURCES_KJS) + + $(BUILDDIR) + + + + + + diff --git a/JavaScriptCore/make-generated-sources.sh b/JavaScriptCore/make-generated-sources.sh new file mode 100644 index 00000000000..4720ff8bc88 --- /dev/null +++ b/JavaScriptCore/make-generated-sources.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +export SRCROOT=$PWD +export WebCore=$PWD +export CREATE_HASH_TABLE="$SRCROOT/kjs/create_hash_table" + +mkdir -p DerivedSources/JavaScriptCore +cd DerivedSources/JavaScriptCore + +make -f ../../DerivedSources.make JavaScriptCore=../.. BUILT_PRODUCTS_DIR=../.. +cd ../.. + + +Property changes on: make-generated-sources.sh +___________________________________________________________________ +Name: svn:executable + + * + diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index e20ca897dc2..e2088a5ab9d 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,28 @@ +2006-05-13 Kevin M. Ollivier + + Reviewed by Darin, landed by ap. + + - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528 + Bakefiles (and generated Makefiles) for wx and gdk ports + + * make-generated-sources.sh: + Added script to configure environment to run DerivedSources.make + + * move-js-headers.sh: + Added script to copy JavaScriptCore includes into one dir so that + Framework-style includes will work on all OSes. (written by Mike Emmel) + + * platform/wx: New dir, home for the wxWidgets port + * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file. + + * Projects: New dir, for various project files for ports. + + * Projects/gdk: New dir, GDK port files. + * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files + + * Projects/wx: New dir, wxWidgets port files. + * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files + 2006-05-13 Mitz Pettel Reviewed by Darin, landed by ap. diff --git a/WebCore/Projects/gdk/webcore-gdk.bkl b/WebCore/Projects/gdk/webcore-gdk.bkl new file mode 100644 index 00000000000..bd4d7565823 --- /dev/null +++ b/WebCore/Projects/gdk/webcore-gdk.bkl @@ -0,0 +1,46 @@ + + + + + + + + + + + . + on + multi + no + -w + -w + BUILDING_GDK__ + BUILDING_CAIRO__ + + + platform/gdk/CursorGdk.cpp + platform/gdk/FontFtCairo.cpp + platform/gdk/FontPlatformDataFtCairo.cpp + platform/gdk/FrameGdk.cpp + platform/gdk/GtkGraphicsContext.cpp + platform/gdk/GtkIntPoint.cpp + platform/gdk/GtkIntRect.cpp + platform/gdk/GtkMouseEvent.cpp + platform/gdk/PageGdk.cpp + platform/gdk/RenderThemeGdk.cpp + platform/gdk/ScreenGdk.cpp + platform/gdk/ScrollViewGdk.cpp + platform/gdk/SharedTimerLinux.cpp + platform/gdk/SystemTimeLinux.cpp + platform/gdk/TemporaryLinkStubs.cpp + platform/gdk/TransferJobCurl.cpp + platform/gdk/WidgetGdk.cpp + + $(SRCDIR)/platform/gdk + + + diff --git a/WebCore/Projects/wx/webcore-wx.bkl b/WebCore/Projects/wx/webcore-wx.bkl new file mode 100644 index 00000000000..27cf040a8fc --- /dev/null +++ b/WebCore/Projects/wx/webcore-wx.bkl @@ -0,0 +1,50 @@ + + + + + + + + + + + + cd $(SRCDIR);bash move-js-headers.sh; bash make-generated-sources.sh platform/wx/wx-encodings.txt;cd Projects/wx + + + + DerivedSources + . + + + + + diff --git a/WebCore/WebCoreSources.bkl b/WebCore/WebCoreSources.bkl new file mode 100644 index 00000000000..b858f066855 --- /dev/null +++ b/WebCore/WebCoreSources.bkl @@ -0,0 +1,533 @@ + + + + + kwq/KWQCString.cpp + kwq/KWQTextStream.cpp + + + + + DerivedSources/WebCore/CharsetData.cpp + DerivedSources/WebCore/ColorData.c + DerivedSources/WebCore/CSSGrammar.cpp + DerivedSources/WebCore/HTMLEntityNames.c + DerivedSources/WebCore/JSAttr.cpp + DerivedSources/WebCore/JSCanvasGradient.cpp + DerivedSources/WebCore/JSCanvasPattern.cpp + DerivedSources/WebCore/JSCanvasRenderingContext2D.cpp + DerivedSources/WebCore/JSCharacterData.cpp + DerivedSources/WebCore/JSCounter.cpp + DerivedSources/WebCore/JSCSSPrimitiveValue.cpp + DerivedSources/WebCore/JSCSSRule.cpp + DerivedSources/WebCore/JSCSSStyleDeclaration.cpp + DerivedSources/WebCore/JSCSSValue.cpp + DerivedSources/WebCore/JSDocument.cpp + DerivedSources/WebCore/JSDocumentType.cpp + DerivedSources/WebCore/JSDOMImplementation.cpp + DerivedSources/WebCore/JSDOMWindow.cpp + DerivedSources/WebCore/JSElement.cpp + DerivedSources/WebCore/JSEntity.cpp + DerivedSources/WebCore/JSEvent.cpp + DerivedSources/WebCore/JSHTMLCanvasElement.cpp + DerivedSources/WebCore/JSKeyboardEvent.cpp + DerivedSources/WebCore/JSMouseEvent.cpp + DerivedSources/WebCore/JSMutationEvent.cpp + DerivedSources/WebCore/JSNode.cpp + DerivedSources/WebCore/JSNodeFilter.cpp + DerivedSources/WebCore/JSNotation.cpp + DerivedSources/WebCore/JSProcessingInstruction.cpp + DerivedSources/WebCore/JSRange.cpp + DerivedSources/WebCore/JSText.cpp + DerivedSources/WebCore/JSUIEvent.cpp + DerivedSources/WebCore/JSWheelEvent.cpp + DerivedSources/WebCore/JSXPathEvaluator.cpp + DerivedSources/WebCore/JSXPathExpression.cpp + DerivedSources/WebCore/JSXPathNSResolver.cpp + DerivedSources/WebCore/JSXPathResult.cpp + DerivedSources/WebCore/JSWheelEvent.cpp + DerivedSources/WebCore/UserAgentStyleSheetsData.cpp + DerivedSources/WebCore/XPathGrammar.cpp + + + + + + + + + + + + + page/DOMWindow.cpp + page/Frame.cpp + page/FrameTree.cpp + page/FrameView.cpp + page/MouseEventWithHitTestResults.cpp + page/Page.cpp + + + + + loader/Cache.cpp + loader/CachedCSSStyleSheet.cpp + loader/CachedImage.cpp + loader/CachedObject.cpp + loader/CachedObjectClientWalker.cpp + loader/CachedScript.cpp + loader/CachedXSLStyleSheet.cpp + loader/Decoder.cpp + loader/DocLoader.cpp + loader/FormData.cpp + loader/loader.cpp + loader/Request.cpp + loader/TextDocument.cpp + + + + + platform/Arena.cpp + platform/ArrayImpl.cpp + platform/AtomicString.cpp + platform/CharsetNames.cpp + platform/Color.cpp + platform/DeprecatedPtrListImpl.cpp + platform/DeprecatedString.cpp + platform/DeprecatedStringList.cpp + platform/DeprecatedValueListImpl.cpp + platform/FloatPoint.cpp + platform/FloatRect.cpp + platform/FloatSize.cpp + platform/Font.cpp + platform/FontFamily.cpp + platform/GraphicsContext.cpp + platform/GraphicsTypes.cpp + platform/Image.cpp + platform/IntPointArray.cpp + platform/IntRect.cpp + platform/KURL.cpp + platform/Logging.cpp + platform/Pen.cpp + platform/RegularExpression.cpp + platform/SegmentedString.cpp + platform/StreamingTextDecoder.cpp + platform/String.cpp + platform/StringImpl.cpp + platform/TextEncoding.cpp + platform/Timer.cpp + platform/TransferJob.cpp + platform/Widget.cpp + + + + + platform/win/CursorWin.cpp + platform/win/FontPlatformDataWin.cpp + platform/win/FontWin.cpp + platform/win/IntPointWin.cpp + platform/win/IntRectWin.cpp + platform/win/IntSizeWin.cpp + platform/win/KeyEventWin.cpp + platform/win/MouseEventWin.cpp + platform/win/ScreenWin.cpp + platform/win/ScrollViewWin.cpp + platform/win/SharedTimerWin.cpp + platform/win/SystemTimeWin.cpp + platform/win/TemporaryLinkStubs.cpp + platform/win/TransferJobWin.cpp + platform/win/WidgetWin.cpp + + + + + + + + + platform/image-decoders/gif/GIFImageDecoder.cpp + platform/image-decoders/gif/GIFImageReader.cpp + + + + + platform/image-decoders/png/png.c + platform/image-decoders/png/pngerror.c + platform/image-decoders/png/pnggccrd.c + platform/image-decoders/png/pngget.c + platform/image-decoders/png/PNGImageDecoder.cpp + platform/image-decoders/png/pngmem.c + platform/image-decoders/png/pngpread.c + platform/image-decoders/png/pngread.c + platform/image-decoders/png/pngrio.c + platform/image-decoders/png/pngrtran.c + platform/image-decoders/png/pngrutil.c + platform/image-decoders/png/pngset.c + platform/image-decoders/png/pngtrans.c + platform/image-decoders/png/pngvcrd.c + platform/image-decoders/png/pngwio.c + platform/image-decoders/png/pngwrite.c + platform/image-decoders/png/pngwtran.c + platform/image-decoders/png/pngwutil.c + + + + + platform/image-decoders/zlib/adler32.c + platform/image-decoders/zlib/compress.c + platform/image-decoders/zlib/crc32.c + platform/image-decoders/zlib/deflate.c + platform/image-decoders/zlib/gzio.c + platform/image-decoders/zlib/infback.c + platform/image-decoders/zlib/inffast.c + platform/image-decoders/zlib/inflate.c + platform/image-decoders/zlib/inftrees.c + platform/image-decoders/zlib/trees.c + platform/image-decoders/zlib/uncompr.c + platform/image-decoders/zlib/zutil.c + + + + + platform/image-decoders/jpeg/jcomapi.c + platform/image-decoders/jpeg/jdapimin.c + platform/image-decoders/jpeg/jdapistd.c + platform/image-decoders/jpeg/jdatadst.c + platform/image-decoders/jpeg/jdatasrc.c + platform/image-decoders/jpeg/jdcoefct.c + platform/image-decoders/jpeg/jdcolor.c + platform/image-decoders/jpeg/jddctmgr.c + platform/image-decoders/jpeg/jdhuff.c + platform/image-decoders/jpeg/jdinput.c + platform/image-decoders/jpeg/jdmainct.c + platform/image-decoders/jpeg/jdmarker.c + platform/image-decoders/jpeg/jdmaster.c + platform/image-decoders/jpeg/jdmerge.c + platform/image-decoders/jpeg/jdphuff.c + platform/image-decoders/jpeg/jdpostct.c + platform/image-decoders/jpeg/jdsample.c + platform/image-decoders/jpeg/jerror.c + platform/image-decoders/jpeg/jfdctflt.c + platform/image-decoders/jpeg/jfdctfst.c + platform/image-decoders/jpeg/jfdctint.c + platform/image-decoders/jpeg/jidctflt.c + platform/image-decoders/jpeg/jidctfst.c + platform/image-decoders/jpeg/jidctint.c + platform/image-decoders/jpeg/jmemmgr.c + platform/image-decoders/jpeg/jmemnobs.c + platform/image-decoders/jpeg/JPEGImageDecoder.cpp + platform/image-decoders/jpeg/jquant1.c + platform/image-decoders/jpeg/jquant2.c + platform/image-decoders/jpeg/jutils.c + + + + + platform/cairo/GraphicsContextCairo.cpp + platform/cairo/ImageCairo.cpp + platform/cairo/ImageSourceCairo.cpp + + + + + platform/cairo/pixman/src/fbcompose.c + platform/cairo/pixman/src/fbedge.c + platform/cairo/pixman/src/fbpict.c + platform/cairo/pixman/src/fbtrap.c + platform/cairo/pixman/src/icblt.c + platform/cairo/pixman/src/icbltone.c + platform/cairo/pixman/src/iccolor.c + platform/cairo/pixman/src/icformat.c + platform/cairo/pixman/src/icimage.c + platform/cairo/pixman/src/icpixels.c + platform/cairo/pixman/src/icrect.c + platform/cairo/pixman/src/icstipple.c + platform/cairo/pixman/src/ictransform.c + platform/cairo/pixman/src/ictrap.c + platform/cairo/pixman/src/ictri.c + platform/cairo/pixman/src/icutil.c + platform/cairo/pixman/src/pixregion.c + platform/cairo/pixman/src/renderedge.c + + + + + platform/cairo/cairo/src/cairo-arc.c + platform/cairo/cairo/src/cairo-array.c + platform/cairo/cairo/src/cairo-cache.c + platform/cairo/cairo/src/cairo-clip.c + platform/cairo/cairo/src/cairo-color.c + platform/cairo/cairo/src/cairo-debug.c + platform/cairo/cairo/src/cairo-fixed.c + platform/cairo/cairo/src/cairo-font-options.c + platform/cairo/cairo/src/cairo-font.c + platform/cairo/cairo/src/cairo-gstate.c + platform/cairo/cairo/src/cairo-hash.c + platform/cairo/cairo/src/cairo-hull.c + platform/cairo/cairo/src/cairo-image-surface.c + platform/cairo/cairo/src/cairo-matrix.c + platform/cairo/cairo/src/cairo-meta-surface.c + platform/cairo/cairo/src/cairo-output-stream.c + platform/cairo/cairo/src/cairo-paginated-surface.c + platform/cairo/cairo/src/cairo-path-bounds.c + platform/cairo/cairo/src/cairo-path-data.c + platform/cairo/cairo/src/cairo-path-fill.c + platform/cairo/cairo/src/cairo-path-stroke.c + platform/cairo/cairo/src/cairo-path.c + platform/cairo/cairo/src/cairo-pattern.c + platform/cairo/cairo/src/cairo-pen.c + platform/cairo/cairo/src/cairo-polygon.c + platform/cairo/cairo/src/cairo-region.c + platform/cairo/cairo/src/cairo-scaled-font.c + platform/cairo/cairo/src/cairo-slope.c + platform/cairo/cairo/src/cairo-spline.c + platform/cairo/cairo/src/cairo-stroke-style.c + platform/cairo/cairo/src/cairo-surface-fallback.c + platform/cairo/cairo/src/cairo-surface.c + platform/cairo/cairo/src/cairo-traps.c + platform/cairo/cairo/src/cairo-unicode.c + platform/cairo/cairo/src/cairo-wideint.c + platform/cairo/cairo/src/cairo-win32-font.c + platform/cairo/cairo/src/cairo-win32-surface.c + platform/cairo/cairo/src/cairo.c + + + + + css/css_base.cpp + css/css_ruleimpl.cpp + css/css_stylesheetimpl.cpp + css/css_valueimpl.cpp + css/CSSComputedStyleDeclaration.cpp + css/csshelper.cpp + css/cssparser.cpp + css/cssstyleselector.cpp + + + + + rendering/bidi.cpp + rendering/break_lines.cpp + rendering/InlineTextBox.cpp + rendering/render_button.cpp + rendering/render_form.cpp + rendering/render_frames.cpp + rendering/render_line.cpp + rendering/render_list.cpp + rendering/render_replaced.cpp + rendering/render_style.cpp + rendering/RenderApplet.cpp + rendering/RenderArena.cpp + rendering/RenderBlock.cpp + rendering/RenderBox.cpp + rendering/RenderBR.cpp + rendering/RenderCanvas.cpp + rendering/RenderContainer.cpp + rendering/RenderEmptyApplet.cpp + rendering/RenderFlexibleBox.cpp + rendering/RenderFlow.cpp + rendering/RenderHTMLCanvas.cpp + rendering/RenderImage.cpp + rendering/RenderInline.cpp + rendering/RenderLayer.cpp + rendering/RenderObject.cpp + rendering/RenderTable.cpp + rendering/RenderTableCell.cpp + rendering/RenderTableCol.cpp + rendering/RenderTableRow.cpp + rendering/RenderTableSection.cpp + rendering/RenderText.cpp + rendering/RenderTextField.cpp + rendering/RenderTextFragment.cpp + rendering/RenderTheme.cpp + + rendering/RenderTreeAsText.cpp + rendering/table_layout.cpp + + + + + xpath/XPathEvaluator.cpp + xpath/XPathExpression.cpp + xpath/XPathNamespace.cpp + xpath/XPathNSResolver.cpp + xpath/XPathResult.cpp + + + + + xpath/impl/XPathExpressionNode.cpp + xpath/impl/XPathFunctions.cpp + xpath/impl/XPathParser.cpp + xpath/impl/XPathPath.cpp + xpath/impl/XPathPredicate.cpp + xpath/impl/XPathStep.cpp + xpath/impl/XPathUtil.cpp + xpath/impl/XPathValue.cpp + xpath/impl/XPathVariableReference.cpp + + + + + xml/xmlhttprequest.cpp + xml/XSLStyleSheet.cpp + xml/XSLTProcessor.cpp + + + + + dom/Attr.cpp + dom/Attribute.cpp + dom/BeforeTextInsertedEvent.cpp + dom/CDATASection.cpp + dom/CharacterData.cpp + dom/ChildNodeList.cpp + dom/Comment.cpp + dom/ContainerNode.cpp + dom/CSSMappedAttributeDeclaration.cpp + dom/Document.cpp + dom/DocumentFragment.cpp + dom/DocumentType.cpp + dom/dom2_eventsimpl.cpp + dom/dom2_traversalimpl.cpp + dom/dom_xmlimpl.cpp + dom/DOMImplementation.cpp + dom/EditingText.cpp + dom/Element.cpp + dom/EventNames.cpp + dom/EventTargetNode.cpp + dom/MappedAttribute.cpp + dom/NamedAttrMap.cpp + dom/NamedMappedAttrMap.cpp + dom/NameNodeList.cpp + dom/Node.cpp + dom/NodeList.cpp + dom/Position.cpp + dom/QualifiedName.cpp + dom/Range.cpp + dom/StyledElement.cpp + dom/Text.cpp + dom/xml_tokenizer.cpp + + + + + + + + + bridge/win/FrameWin.cpp + bridge/win/PageWin.cpp + + + + + editing/AppendNodeCommand.cpp + editing/ApplyStyleCommand.cpp + editing/BreakBlockquoteCommand.cpp + editing/CompositeEditCommand.cpp + editing/CreateLinkCommand.cpp + editing/DeleteFromTextNodeCommand.cpp + editing/DeleteSelectionCommand.cpp + editing/EditCommand.cpp + editing/htmlediting.cpp + editing/HTMLInterchange.cpp + editing/InsertIntoTextNodeCommand.cpp + editing/InsertLineBreakCommand.cpp + editing/InsertNodeBeforeCommand.cpp + editing/InsertParagraphSeparatorCommand.cpp + editing/InsertTextCommand.cpp + editing/JoinTextNodesCommand.cpp + editing/JSEditor.cpp + editing/markup.cpp + editing/MergeIdenticalElementsCommand.cpp + editing/ModifySelectionListLevelCommand.cpp + editing/MoveSelectionCommand.cpp + editing/RebalanceWhitespaceCommand.cpp + editing/RemoveCSSPropertyCommand.cpp + editing/RemoveNodeAttributeCommand.cpp + editing/RemoveNodeCommand.cpp + editing/RemoveNodePreservingChildrenCommand.cpp + editing/ReplaceSelectionCommand.cpp + editing/Selection.cpp + editing/SelectionController.cpp + editing/SetNodeAttributeCommand.cpp + editing/SplitElementCommand.cpp + editing/SplitTextNodeCommand.cpp + editing/SplitTextNodeContainingElementCommand.cpp + editing/TextIterator.cpp + editing/TypingCommand.cpp + editing/UnlinkCommand.cpp + editing/visible_units.cpp + editing/VisiblePosition.cpp + editing/VisibleRange.cpp + editing/WrapContentsInDummySpanCommand.cpp + + + + + html/CanvasGradient.cpp + html/CanvasPattern.cpp + html/CanvasRenderingContext2D.cpp + html/CanvasStyle.cpp + html/FormDataList.cpp + html/html_baseimpl.cpp + html/html_blockimpl.cpp + html/html_headimpl.cpp + html/html_imageimpl.cpp + html/html_inlineimpl.cpp + html/html_listimpl.cpp + html/html_objectimpl.cpp + html/html_tableimpl.cpp + html/HTMLBaseFontElement.cpp + html/HTMLButtonElement.cpp + html/HTMLCanvasElement.cpp + html/HTMLCollection.cpp + html/HTMLDocument.cpp + html/HTMLElement.cpp + html/HTMLElementFactory.cpp + html/HTMLFieldSetElement.cpp + html/HTMLFormCollection.cpp + html/HTMLFormElement.cpp + html/HTMLGenericFormElement.cpp + html/HTMLInputElement.cpp + html/HTMLIsIndexElement.cpp + html/HTMLKeygenElement.cpp + html/HTMLLabelElement.cpp + html/HTMLLegendElement.cpp + html/HTMLNameCollection.cpp + html/HTMLNames.cpp + html/HTMLOptGroupElement.cpp + html/HTMLOptionElement.cpp + html/HTMLOptionsCollection.cpp + html/HTMLParser.cpp + html/HTMLSelectElement.cpp + html/HTMLTextAreaElement.cpp + html/HTMLTextFieldInnerElement.cpp + html/HTMLTokenizer.cpp + + + + + + + + + bindings/js/JSCanvasRenderingContext2DBase.cpp + bindings/js/JSDOMParser.cpp + bindings/js/JSHTMLElementWrapperFactory.cpp + bindings/js/JSXMLHttpRequest.cpp + bindings/js/JSXMLSerializer.cpp + bindings/js/JSXSLTProcessor.cpp + bindings/js/kjs_binding.cpp + bindings/js/kjs_css.cpp + bindings/js/kjs_dom.cpp + bindings/js/kjs_events.cpp + bindings/js/kjs_html.cpp + bindings/js/kjs_navigator.cpp + bindings/js/kjs_proxy.cpp + bindings/js/kjs_traversal.cpp + bindings/js/kjs_window.cpp + + + diff --git a/WebCore/make-generated-sources.sh b/WebCore/make-generated-sources.sh new file mode 100644 index 00000000000..a48970deb45 --- /dev/null +++ b/WebCore/make-generated-sources.sh @@ -0,0 +1,17 @@ +#!/bin/sh +export SRCROOT=$PWD +export WebCore=$PWD +export CREATE_HASH_TABLE="$SRCROOT/../JavaScriptCore/kjs/create_hash_table" + +mkdir -p DerivedSources/WebCore +cd DerivedSources/WebCore + +make -f ../../DerivedSources.make ENCODINGS_FILE=$1 ENCODINGS_PREFIX="" +cd ../.. + + +Property changes on: make-generated-sources.sh +___________________________________________________________________ +Name: svn:executable + + * + diff --git a/WebCore/move-js-headers.sh b/WebCore/move-js-headers.sh new file mode 100644 index 00000000000..9eca7669731 --- /dev/null +++ b/WebCore/move-js-headers.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir -p include/JavaScriptCore +find ../JavaScriptCore/ -name \*.h -exec cp {} include/JavaScriptCore/. \; +rm include/JavaScriptCore/config.h +rm include/JavaScriptCore/JavaScriptCorePrefix.h + +Property changes on: move-js-headers.sh +___________________________________________________________________ +Name: svn:executable + + * + diff --git a/WebCore/platform/wx/wx-encodings.txt b/WebCore/platform/wx/wx-encodings.txt new file mode 100644 index 00000000000..41c1fde635c --- /dev/null +++ b/WebCore/platform/wx/wx-encodings.txt @@ -0,0 +1,12 @@ +# The items on the left are names of TextEncodingID values +# The items on the right are IANA character set names. Names listed in character-sets.txt are not +# repeated here; mentioning any one character set from a group in there pulls in all the aliases in +# that group. + +#WinLatin1Encoding: windows-1252, winlatin1, xansi +#Latin1Encoding: ISO-8859-1, 88591 +#ASCIIEncoding: US-ASCII, isoir6us +#UTF16Encoding: ISO-10646-UCS-2, ucs2, unicode, utf16 +#UTF16Encoding, BigEndian: UTF-16BE, unicodefffe +#UTF16Encoding, LittleEndian: UTF-16LE, unicodefeff +#UTF8Encoding: UTF-8, unicode11utf8, unicode20utf8, xunicode20utf8 diff --git a/WebCore/webcore-base.bkl b/WebCore/webcore-base.bkl new file mode 100644 index 00000000000..4d0a229e2a6 --- /dev/null +++ b/WebCore/webcore-base.bkl @@ -0,0 +1,142 @@ + + + + + + + + ../.. + + + + + + $(WEBCORE_SOURCES_KWQ) + $(WEBCORE_SOURCES_DERIVEDSOURCES) + $(WEBCORE_SOURCES_KHTML) + $(WEBCORE_SOURCES_MISC) + $(WEBCORE_SOURCES_PAGE) + $(WEBCORE_SOURCES_LOADER) + $(WEBCORE_SOURCES_PLATFORM) + $(WEBCORE_SOURCES_IMAGE-DECODERS) + $(WEBCORE_SOURCES_GIF) + $(WEBCORE_SOURCES_PNG) + $(WEBCORE_SOURCES_ZLIB) + $(WEBCORE_SOURCES_JPEG) + $(WEBCORE_SOURCES_CSS) + $(WEBCORE_SOURCES_RENDERING) + $(WEBCORE_SOURCES_XML) + $(WEBCORE_SOURCES_DOM) + $(WEBCORE_SOURCES_BRIDGE) + $(WEBCORE_SOURCES_EDITING) + $(WEBCORE_SOURCES_HTML) + $(WEBCORE_SOURCES_BINDINGS) + $(WEBCORE_SOURCES_JS) + + + obj-$(FORMAT) + + + + + + diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog index 51dcb3d0630..40e6e314076 100644 --- a/WebKitTools/ChangeLog +++ b/WebKitTools/ChangeLog @@ -1,3 +1,13 @@ +2006-05-13 Kevin M. Ollivier + + Reviewed by Darin, landed by ap. + + - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528 + Bakefiles (and generated Makefiles) for wx and gdk ports + + * Scripts/install-unix-extras: Added. + * Scripts/regenerate-makefiles: Added. + 2006-05-10 Steve Falkenburg Reviewed by Maciej. diff --git a/WebKitTools/Scripts/install-unix-extras b/WebKitTools/Scripts/install-unix-extras new file mode 100644 index 00000000000..6b441b2ed4e --- /dev/null +++ b/WebKitTools/Scripts/install-unix-extras @@ -0,0 +1,112 @@ +#!/bin/sh + +# Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of +# its contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# A script to download the extra libraries needed to build WebKit on UNIX-based OSes. +# libxml/libxslt need to be added, but so far I've had them on all the (UNIX) machines +# I've tested on, so I don't have a machine to test the code on. + +DL_CMD="curl -L" + +DL_DIR=/tmp/webkit-deps +# NOTE: If you change this, make sure the dir is on the path. +DEPS_PREFIX=/usr/local + +mkdir -p $DL_DIR +mkdir -p $DEPS_PREFIX + +ICU_VERSION="3.4.1" +ICU_TARBALL="icu-$ICU_VERSION.tgz" +ICU_URL="ftp://ftp.software.ibm.com/software/globalization/icu/$ICU_VERSION/$ICU_TARBALL" + +GPERF_VERSION="3.0.1" +GPERF_TARBALL="gperf-$GPERF_VERSION.tar.gz" +GPERF_URL="ftp://mirrors.kernel.org/gnu/gperf/$GPERF_TARBALL" + +PKG_CONFIG_VERSION="0.20" +PKG_CONFIG_TARBALL="pkg-config-$PKG_CONFIG_VERSION.tar.gz" +PKG_CONFIG_URL="http://pkgconfig.freedesktop.org/releases/$PKG_CONFIG_TARBALL" + +ICONV_VERSION="1.9.2" +ICONV_TARBALL="libiconv-$ICONV_VERSION.tar.gz" +ICONV_URL="http://ftp.gnu.org/pub/gnu/libiconv/$ICONV_TARBALL" + +cd $DL_DIR +# build ICU +if [ `which icu-config >/dev/null 2>&1` ]; then + $DL_CMD -o $DL_DIR/$ICU_TARBALL $ICU_URL + + tar xzvf $DL_DIR/$ICU_TARBALL + cd $DL_DIR/icu/source + + chmod +x configure install-sh + ./configure --prefix=$DEPS_PREFIX + + make + #make check + make install + + cd $DL_DIR + rm -rf icu +fi + +if [ `which gperf >/dev/null 2>&1` ]; then + $DL_CMD -o $DL_DIR/$GPERF_TARBALL $GPERF_URL + + tar xzvf $DL_DIR/$GPERF_TARBALL + cd $DL_DIR/gperf-$GPERF_VERSION + + ./configure --prefix=$DEPS_PREFIX + + make + make install + + cd $DL_DIR + rm -rf $DL_DIR/gperf-$GPERF_VERSION +fi + +# TODO: What would be a good way to test for this? +if [ ! -f $DEPS_PREFIX/lib/libiconv.dylib ]; then + $DL_CMD -o $DL_DIR/$ICONV_TARBALL $ICONV_URL + + tar xzvf $DL_DIR/$ICONV_TARBALL + cd $DL_DIR/libiconv-$ICONV_VERSION + + ./configure --prefix=$DEPS_PREFIX + + make + make install + + cd $DL_DIR + rm -rf $DL_DIR/libiconv-$ICONV_VERSION +fi + +Property changes on: install-unix-extras +___________________________________________________________________ +Name: svn:executable + + * + diff --git a/WebKitTools/Scripts/regenerate-makefiles b/WebKitTools/Scripts/regenerate-makefiles new file mode 100644 index 00000000000..2429f4c3db4 --- /dev/null +++ b/WebKitTools/Scripts/regenerate-makefiles @@ -0,0 +1,77 @@ +#!/bin/sh + +# Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of +# its contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# This software regenerates the makefiles that are maintained using +# Bakefile. + +DL_CMD="curl -L" + +THISDIR=$PWD +if [ ! -d $THISDIR/../../Bakefiles ]; then + echo "You must run this script from the WebKitTools/Scripts directory." + exit 1 +fi + +DL_DIR=/tmp/webkit-deps +# NOTE: If you change this, make sure the dir is on the path. +DEPS_PREFIX=/usr/local + +mkdir -p $DL_DIR +mkdir -p $DEPS_PREFIX + +BKL_VERSION="0.2.0" +BKL_TARBALL="bakefile-$BKL_VERSION-msvs2005.tar.gz" +BKL_URL="http://kevino.theolliviers.com/$BKL_TARBALL" +#BKL_URL="http://mesh.dl.sourceforge.net/sourceforge/bakefile/$BKL_TARBALL" + +BKFILE=`which bakefile` + +if [ ! -f "$BKFILE" ]; then + echo "Bakefile not installed. Installing now..." + cd $DL_DIR + $DL_CMD -o $DL_DIR/$BKL_TARBALL $BKL_URL + + tar xzvf $DL_DIR/$BKL_TARBALL + cd $DL_DIR/bakefile-$BKL_VERSION + + ./configure --prefix=$DEPS_PREFIX + make + make install + + cd $THISDIR + rm -rf $DL_DIR/bakefile-$BKL_VERSION +fi + +cd ../../Bakefiles +bakefile_gen + +Property changes on: regenerate-makefiles +___________________________________________________________________ +Name: svn:executable + + * + -- GitLab