+2007-12-29 Jan Michael Alonzo <jmalonzo@unpluggable.com>
+
+ Reviewed by Alp Toker.
+
+ http://bugs.webkit.org/show_bug.cgi?id=16669
+ autotools update and fixes
+
+ Various fixes to the autotools build
+
+ * GNUmakefile.am:
+ - Remove ICU_FLAGS because it adds -g in the CFLAGS/CXXFLAGS
+ - Fix clean rules (Rodney Dawes)
+ - Added webcore specific variables, remove STDINT_H and
+ PTHREAD_NP_H checks (already included in config.h)
+ * autogen.sh:
+ - Loosen automake and aclocal requirement
+ * configure.ac:
+ - Workaround AC_PROG_CXX putting -g in CXXFLAGS. Only use -g
+ when doing a debug build (Rodney Dawes)
+ - Fix webkit target and remove traces of XBL
+
2007-12-27 Jan Michael Alonzo <jmalonzo@unpluggable.com>
Reviewed by Alp Toker.
-AUTOMAKE_OPTIONS = subdir-objects
+# Top-level Makefile rule for automake
+#
+# Variable conventions:
+#
+# _h_api = API headers that will be installed and included in the distribution
+# _cppflags = flags that will be passed to the C/CXX Preprocessor
+# _sources = sources that will be compiled and included in the distribution
+# _headers = header files that will be part of the distribution
+# _built_sources = files that will be autogenerated by the build system and
+# will be part of the _SOURCES primary
+# _built_nosources = files that are autogenerated but are not part of the
+# _SOURCES primary
+# _cleanfiles = files that will be removed by the clean target
+#
+# Sources, headers, flags, etc... should be added to the respective variables
+# with the above suffix, e.g, webcore-specific sources should go to
+# webcore_sources, gtk port-specific flags should go to webkitgtk_cppflags,
+# etc... The only exceptions are the global variables. See Global Variables below.
+#
+# Global Variables
+#
+# global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any
+# specific port
+# global_cflags = CFLAGS and CXXFLAGS that apply to JSC, WebCore, and to
+# any specific port
srcdir = @srcdir@
VPATH = @srcdir@
# Libraries
lib_LTLIBRARIES = libJavaScriptCore.la libWebKitGtk.la
-# JavaScriptCore
-
-# Following are the variables we use in JavaScripCore/GNUmakefile.am
-#
-# javascriptcore_h_api - api headers to be included in the JSC library
-# javascriptcore_cppflags - CPP flags for JSC
-# javascriptcore_sources - source files to be included
-# javascriptcore_built_sources - autogenerated sources and/or header files that are part of _SOURCES
-# javascriptcore_built_nosources - same as above but not part of _SOURCES
#
-# If you add or remove sources or header files, make sure you update the
-# following variables in JavaScriptCore/GNUmakefile.am
-
+# JavaScriptCore
javascriptcore_h_api :=
javascriptcore_cppflags:=
javascriptcore_sources :=
javascriptcore_built_sources :=
javascriptcore_built_nosources :=
-# The variables above are already included below so we don't need to touch
-# these variables too often
+# The variables above are already included below so no need to touch
+# these variables unless you really have to
libJavaScriptCore_ladir = $(prefix)/include/WebKit/JavaScriptCore
libJavaScriptCore_la_HEADERS := $(javascriptcore_h_api)
libJavaScriptCore_la_CPPFLAGS := $(global_cppflags) $(javascriptcore_cppflags)
-# WebKitGtk
-
-# The Following variables have the same meaning as JSC, with addition of:
#
-# webcore_sources - These are port-independent sources and header files
-# webkitgtk_headers - header files that will be included in _SOURCES
-
+# WebCore
+webcore_cppflags :=
webcore_sources :=
+webcore_headers :=
+webcore_built_sources :=
+webcore_built_nosources :=
+
+# WebKitGtk
webkitgtk_h_api :=
webkitgtk_headers :=
webkitgtk_sources :=
webkitgtk_cppflags :=
+webkitgtk_ldflags :=
webkitgtk_built_sources :=
webkitgtk_built_nosources :=
+webkitgtk_cleanfiles :=
# No need to touch the following variables unless you have to. If you need to change the values
# for the following variables, use the "webkitgtk_" variables above
libWebKitGtk_la_HEADERS := $(webkitgtk_h_api)
libWebKitGtk_la_SOURCES := \
+ $(webcore_built_sources) \
+ $(webcore_headers) \
$(webcore_sources) \
$(webkitgtk_built_sources) \
$(webkitgtk_headers) \
-fno-rtti \
$(global_cflags) \
$(DEPENDENCIES_CFLAGS) \
- $(ICU_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \
libWebKitGtk_la_CFLAGS := \
$(global_cflags) \
$(DEPENDENCIES_CFLAGS) \
- $(ICU_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \
libWebKitGtk_la_CPPFLAGS := \
$(global_cppflags) \
+ $(webcore_cppflags) \
$(webkitgtk_cppflags)
-libWebKitGtk_la_LIBADD := @LTLIBOBJS@ libJavaScriptCore.la
+libWebKitGtk_la_LIBADD := @LTLIBOBJS@ libJavaScriptCore.la
libWebKitGtk_la_LDFLAGS := \
+ $(webkitgtk_ldflags) \
$(DEPENDENCIES_LIBS) \
$(ICU_LIBS) \
$(SQLITE3_LIBS) \
$(GSTREAMER_LIBS) \
$(LIBXSLT_LIBS) \
- $(COVERAGE_LDFLAGS)
-
-libWebKitGtk_la_LDFLAGS += \
+ $(COVERAGE_LDFLAGS) \
-lpthread \
-ljpeg \
-version-info @LIBWEBKITGTK_VERSION@
+#
# Extra checks and flags
-
global_cppflags += \
-DBUILDING_GTK__=1 \
-DUSE_SYSTEM_MALLOC \
-DWTF_CHANGES
+if TARGET_X11
+global_cppflags += -DXP_UNIX
+endif
+
if !ENABLE_DEBUG
global_cppflags += -DNDEBUG
else
-DGTK_MULTIHEAD_SAFE
endif
-if TARGET_X11
-global_cppflags += -DXP_UNIX
-endif
-
-if OS_LINUX
-global_cppflags += -DHAVE_STDINT_H
+if !ENABLE_DATABASE
+global_cppflags += -DENABLE_DATABASE=0
endif
-if OS_FREEBSD
-global_cppflags += -DHAVE_PTHREAD_NP_H
+if !ENABLE_ICONDATABASE
+global_cppflags += -DENABLE_ICONDATABASE=0
endif
if ENABLE_COVERAGE
endif
if ENABLE_VIDEO
-libWebKitGtk_la_LDFLAGS += -lgstinterfaces-0.10 -lgstvideo-0.10
+webkitgtk_ldflags += -lgstinterfaces-0.10 -lgstvideo-0.10
endif
-# WebKit/GTK+ sources
-
+#
+# WEBKIT GTK+
webkitgtk_cppflags += \
-I $(top_builddir)/WebKit/gtk/WebView \
-DBUILDING_CAIRO__=1 \
WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
- WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h
+ WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h
webkitgtk_sources += \
WebKit/gtk/WebView/webkitnetworkrequest.cpp \
WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp
+webkitgtk_cleanfiles += \
+ $(top_builddir)/Programs/GtkLauncher \
+ $(top_builddir)/WebKit/gtk/WebKitGtk.pc
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = WebKit/gtk/WebKitGtk.pc
stamp-webkit-marshal.cpp: $(WEBKIT_MARSHAL_LIST)
echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
- $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) \
- --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
+ $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
echo timestamp > $(@F)
stamp-webkit-marshal.h: $(WEBKIT_MARSHAL_LIST)
- $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) \
- --header > $(WEBKIT_MARSHAL).h && \
+ $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
echo timestamp > $(@F)
-# Autogenerated sources
-BUILT_SOURCES := \
- $(javascriptcore_built_sources) \
- $(javascriptcore_built_nosources) \
- $(webkitgtk_built_sources) \
- $(webkitgtk_built_nosources)
+# END WEBKIT GTK+
# Files that will be cleaned
MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES)
include WebCore/GNUmakefile.am
include WebKitTools/GNUmakefile.am
-# Project-wide clean rules
-clean-local:
- -rm -rf $(GENSOURCES)
- -rm -f $(top_builddir)/Programs/GtkLauncher $(top_builddir)/Programs/DumpRenderTree
- -rm -f $(top_builddir)/Programs/testkjs $(top_builddir)/Programs/dftables
- -rm -f $(top_builddir/WebKit/gtk/WebKitGtk-1.0.pc
-distclean-local:
- -rm -f $(srcdir)/aconfig.h.in configure config.* GNUmakefile.in \
- INSTALL README
+# Autogenerated sources
+BUILT_SOURCES := \
+ $(javascriptcore_built_sources) \
+ $(javascriptcore_built_nosources) \
+ $(webcore_built_sources) \
+ $(webcore_built_nosources) \
+ $(webkitgtk_built_sources) \
+ $(webkitgtk_built_nosources)
+# Project-wide clean rules
+CLEANFILES += \
+ $(webkitgtk_cleanfiles) \
+ $(top_builddir)/Programs/DumpRenderTree \
+ $(top_builddir)/Programs/testkjs \
+ $(top_builddir)/Programs/dftables \
+ $(GENSOURCES)
+
+MAINTAINERCLEANFILES += \
+ $(srcdir)/aconfig.h.in \
+ configure \
+ config.* \
+ GNUmakefile.in \
+ INSTALL \
+ README
+2007-12-29 Jan Michael Alonzo <jmalonzo@unpluggable.com>
+
+ Reviewed by Alp Toker.
+
+ http://bugs.webkit.org/show_bug.cgi?id=16669
+ autotools update and fixes
+
+ Autotools update and database/icon database inclusion guard fixes
+
+ * GNUmakefile.am:
+ - Update autotools config as per -r29012 changes
+ - Fix CSSGrammar.h/cpp generation (Seo Sanghyeon, sanxiyn)
+ * dom/Document.cpp:
+ * loader/icon/IconDatabase.h:
+ * page/DOMWindow.cpp:
+ * page/InspectorController.cpp:
+ * page/Settings.cpp:
+ * storage/Database.h:
+ - Remove ENABLE(DATABASE) inclusion guard. Let the includer add the guard instead.
+
2007-12-29 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by Alexey.
FEATURE_DEFINES_JAVASCRIPT := LANGUAGE_JAVASCRIPT=1
SVG_FEATURES :=
-webkitgtk_cppflags += \
+webcore_cppflags += \
-I $(srcdir)/WebCore \
-I $(srcdir)/WebCore/ForwardingHeaders \
-I $(srcdir)/WebCore/platform \
-I $(srcdir)/WebCore/platform/graphics \
-I $(srcdir)/WebCore/platform/text \
-I $(srcdir)/WebCore/loader \
+ -I $(srcdir)/WebCore/loader/icon \
-I $(srcdir)/WebCore/css \
-I $(srcdir)/WebCore/dom \
-I $(srcdir)/WebCore/page \
-I $(srcdir)/WebCore/html \
-I $(srcdir)/WebCore/bindings/js \
-I $(srcdir)/WebCore/platform/image-decoders \
- -I $(srcdir)/WebCore/platform/gtk \
- -I $(srcdir)/WebCore/platform/graphics/gtk \
- -I $(srcdir)/WebCore/platform/graphics/cairo \
- -I $(srcdir)/WebCore/svg/graphics/cairo \
- -I $(srcdir)/WebCore/platform/network/curl \
- -I $(srcdir)/WebCore/platform/image-decoders \
-I $(srcdir)/WebCore/platform/image-decoders/bmp \
-I $(srcdir)/WebCore/platform/image-decoders/gif \
-I $(srcdir)/WebCore/platform/image-decoders/ico \
-I $(srcdir)/WebCore/platform/image-decoders/png \
-I $(srcdir)/WebCore/platform/image-decoders/xbm \
-I $(srcdir)/WebCore/rendering \
+ -I $(top_builddir)/WebCore/bindings/js
+
+webkitgtk_cppflags += \
+ -I $(srcdir)/WebCore/platform/gtk \
+ -I $(srcdir)/WebCore/platform/graphics/gtk \
+ -I $(srcdir)/WebCore/platform/graphics/cairo \
+ -I $(srcdir)/WebCore/svg/graphics/cairo \
+ -I $(srcdir)/WebCore/platform/network/curl \
-I $(srcdir)/WebCore/loader/gtk \
-I $(srcdir)/WebCore/page/gtk \
-I $(srcdir)/WebKit/gtk/WebCoreSupport \
- -I $(srcdir)/WebKit/gtk/WebView \
- -I $(top_builddir)/WebCore/bindings/js
+ -I $(srcdir)/WebKit/gtk/WebView
-webkitgtk_built_nosources += \
+webcore_built_nosources += \
DerivedSources/DocTypeStrings.cpp \
DerivedSources/tokenizer.cpp \
DerivedSources/ColorData.c \
WebCore/bindings/js/kjs_window.lut.h \
WebCore/bindings/js/JSHTMLInputElementBaseTable.cpp
-webkitgtk_built_sources += \
+webcore_built_sources += \
+ DerivedSources/CSSPropertyNames.h \
+ DerivedSources/CSSValueKeywords.h \
+ DerivedSources/XLinkNames.cpp \
+ DerivedSources/SVGElementFactory.cpp \
+ DerivedSources/SVGNames.cpp \
DerivedSources/HTMLNames.h \
DerivedSources/HTMLNames.cpp \
DerivedSources/XMLNames.h \
DerivedSources/HTMLEntityNames.c \
DerivedSources/CSSGrammar.h \
DerivedSources/CSSGrammar.cpp \
- DerivedSources/CSSPropertyNames.h \
- DerivedSources/CSSValueKeywords.h \
DerivedSources/UserAgentStyleSheets.h \
DerivedSources/UserAgentStyleSheetsData.cpp \
DerivedSources/JSAttr.h \
WebCore/xml/DOMParser.idl \
WebCore/xml/XMLSerializer.idl
+webcore_headers += \
+ WebCore/loader/icon/IconDatabase.h
+
webcore_sources += \
WebCore/bindings/js/GCController.cpp \
WebCore/bindings/js/JSAttrCustom.cpp \
if ENABLE_DATABASE
FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATABASE=1
-webkitgtk_built_sources += \
+webcore_built_sources += \
DerivedSources/JSDatabase.h \
DerivedSources/JSSQLError.h \
DerivedSources/JSSQLResultSet.h \
WebCore/storage/SQLResultSetRowList.idl \
WebCore/storage/SQLTransaction.idl
-webkitgtk_cppflags += \
+webcore_cppflags += \
-DENABLE_DATABASE=1 \
-I $(top_srcdir)/WebCore/platform/sql \
- -I $(top_srcdir)/WebCore/storage
+ -I $(top_srcdir)/WebCore/storage
-webkitgtk_sources += \
+webcore_sources += \
WebCore/platform/sql/SQLiteAuthorizer.cpp \
WebCore/platform/sql/SQLiteDatabase.cpp \
WebCore/platform/sql/SQLiteStatement.cpp \
# Icon Database Support
# ----
if ENABLE_ICONDATABASE
-webkitgtk_cppflags += \
- -DENABLE_ICONDATABASE=1 \
- -I $(top_srcdir)/WebCore/loader/icon
+webcore_cppflags += -DENABLE_ICONDATABASE=1
-webkitgtk_sources += \
+webcore_sources += \
WebCore/loader/icon/IconDatabase.cpp \
WebCore/loader/icon/IconRecord.cpp \
WebCore/loader/icon/PageURLRecord.cpp
else
-webkitgtk_sources += \
+webcore_sources += \
WebCore/loader/icon/IconDatabaseNone.cpp
endif # END ENABLE_ICONDATABASE
if ENABLE_VIDEO
FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
-webkitgtk_cppflags += -DENABLE_VIDEO=1
+webcore_cppflags += -DENABLE_VIDEO=1
if ENABLE_DEBUG
-webkitgtk_cppflags += -DGST_DISABLE_DEPRECATED
+webcore_cppflags += -DGST_DISABLE_DEPRECATED
endif # END ENABLE_DEBUG
-webkitgtk_built_sources += \
+webcore_built_sources += \
DerivedSources/JSHTMLSourceElement.h \
DerivedSources/JSHTMLAudioElement.h \
DerivedSources/JSHTMLMediaElement.h \
WebCore/html/TimeRanges.idl \
WebCore/html/VoidCallback.idl
-webkitgtk_sources += \
+webcore_sources += \
WebCore/html/HTMLAudioElement.cpp \
WebCore/html/HTMLMediaElement.cpp \
WebCore/html/HTMLSourceElement.cpp \
WebCore/html/HTMLVideoElement.cpp \
WebCore/html/TimeRanges.cpp \
WebCore/platform/graphics/MediaPlayer.cpp \
- WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp \
- WebCore/platform/graphics/gtk/VideoSinkGStreamer.cpp \
WebCore/rendering/RenderVideo.cpp \
WebCore/rendering/RenderMedia.cpp \
- WebCore/bindings/js/JSHTMLAudioElementConstructor.cpp
+ WebCore/bindings/js/JSHTMLAudioElementConstructor.cpp
+
+webkitgtk_sources += \
+ WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp \
+ WebCore/platform/graphics/gtk/VideoSinkGStreamer.cpp
endif # END ENABLE_VIDEO
if ENABLE_XPATH
FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
-webkitgtk_cppflags += -DENABLE_XPATH=1
+webcore_cppflags += -DENABLE_XPATH=1
-webkitgtk_built_sources += \
+webcore_built_sources += \
DerivedSources/XPathGrammar.h \
DerivedSources/XPathGrammar.cpp \
DerivedSources/JSXPathEvaluator.h \
WebCore/xml/XPathResult.idl \
WebCore/xml/XPathEvaluator.idl
-webkitgtk_sources += \
+webcore_sources += \
WebCore/xml/NativeXPathNSResolver.cpp \
WebCore/xml/XPathEvaluator.cpp \
WebCore/xml/XPathExpression.cpp \
if ENABLE_XSLT
FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
-webkitgtk_cppflags += -DENABLE_XSLT=1
+webcore_cppflags += -DENABLE_XSLT=1
-webkitgtk_sources += \
+webcore_sources += \
WebCore/xml/XSLImportRule.cpp \
WebCore/xml/XSLStyleSheet.cpp \
WebCore/xml/XSLTExtensions.cpp \
WebCore/xml/XSLTProcessor.cpp
endif # END ENABLE_XSLT
-# ----
-# XBL Support
-# ----
-if ENABLE_XBL
-FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
-
-webkitgtk_cppflags += -DENABLE_XBL=1
-
-endif # END ENABLE_XBL
-
# ----
# SVG Support
+#
+# FIXME: allow a more fine-grained inclusion/generation of sources per SVG feature
# ----
if ENABLE_SVG
FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
-webkitgtk_built_sources += \
- DerivedSources/XLinkNames.cpp \
- DerivedSources/SVGElementFactory.cpp \
- DerivedSources/SVGNames.cpp \
+webcore_built_sources += \
DerivedSources/JSSVGAElement.h \
DerivedSources/JSSVGAngle.h \
DerivedSources/JSSVGAnimatedAngle.h \
DerivedSources/JSSVGFETileElement.h \
DerivedSources/JSSVGFETurbulenceElement.h \
DerivedSources/JSSVGFilterElement.h \
+ DerivedSources/JSSVGFontElement.h \
DerivedSources/JSSVGFontFaceElement.h \
DerivedSources/JSSVGFontFaceFormatElement.h \
DerivedSources/JSSVGFontFaceNameElement.h \
DerivedSources/JSSVGFontFaceUriElement.h \
DerivedSources/JSSVGForeignObjectElement.h \
DerivedSources/JSSVGGElement.h \
+ DerivedSources/JSSVGGlyphElement.h \
DerivedSources/JSSVGGradientElement.h \
DerivedSources/JSSVGImageElement.h \
DerivedSources/JSSVGLengthList.h \
DerivedSources/JSSVGLinearGradientElement.h \
DerivedSources/JSSVGMaskElement.h \
DerivedSources/JSSVGMarkerElement.h \
+ DerivedSources/JSSVGMissingGlyphElement.h \
DerivedSources/JSSVGZoomEvent.h \
DerivedSources/JSSVGAElement.cpp \
DerivedSources/JSSVGAngle.cpp \
WebCore/svg/SVGFETileElement.idl \
WebCore/svg/SVGFETurbulenceElement.idl \
WebCore/svg/SVGFilterElement.idl \
+ WebCore/svg/SVGFontElement.idl \
WebCore/svg/SVGFontFaceElement.idl \
WebCore/svg/SVGFontFaceFormatElement.idl \
WebCore/svg/SVGFontFaceNameElement.idl \
WebCore/svg/SVGFontFaceUriElement.idl \
WebCore/svg/SVGForeignObjectElement.idl \
WebCore/svg/SVGGElement.idl \
+ WebCore/svg/SVGGlyphElement.idl \
+ WebCore/svg/SVGGElement.idl \
WebCore/svg/SVGGradientElement.idl \
WebCore/svg/SVGImageElement.idl \
WebCore/svg/SVGLength.idl \
WebCore/svg/SVGMaskElement.idl \
WebCore/svg/SVGMatrix.idl \
WebCore/svg/SVGMetadataElement.idl \
+ WebCore/svg/SVGMissingGlyphElement.idl \
WebCore/svg/SVGNumber.idl \
WebCore/svg/SVGNumberList.idl \
WebCore/svg/SVGPaint.idl \
WebCore/svg/SVGUseElement.idl \
WebCore/svg/SVGViewElement.idl
-webkitgtk_cppflags += \
+webcore_cppflags += \
-DENABLE_SVG=1 \
-I \$(top_srcdir)/WebCore/svg \
-I \$(top_srcdir)/WebCore/svg/graphics \
-I \$(top_srcdir)/WebCore/svg/graphics/filters
-webkitgtk_sources += \
+webcore_sources += \
WebCore/bindings/js/JSSVGElementWrapperFactory.cpp \
WebCore/bindings/js/JSSVGMatrixCustom.cpp \
WebCore/bindings/js/JSSVGPathSegCustom.cpp \
WebCore/css/SVGCSSComputedStyleDeclaration.cpp \
WebCore/css/SVGCSSParser.cpp \
WebCore/css/SVGCSSStyleSelector.cpp \
+ WebCore/css/SVGCSSFontFace.cpp \
WebCore/rendering/SVGRenderStyle.cpp \
WebCore/rendering/SVGRenderStyleDefs.cpp \
WebCore/rendering/PointerEventsHitRules.cpp \
WebCore/svg/SVGFilterElement.cpp \
WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp \
WebCore/svg/SVGFitToViewBox.cpp \
+ WebCore/svg/SVGFont.cpp \
+ WebCore/svg/SVGFontElement.cpp \
WebCore/svg/SVGFontFaceElement.cpp \
WebCore/svg/SVGFontFaceFormatElement.cpp \
WebCore/svg/SVGFontFaceNameElement.cpp \
WebCore/svg/SVGFontFaceUriElement.cpp \
WebCore/svg/SVGForeignObjectElement.cpp \
WebCore/svg/SVGGElement.cpp \
+ WebCore/svg/SVGGlyphElement.cpp \
WebCore/svg/SVGGradientElement.cpp \
WebCore/svg/SVGImageElement.cpp \
WebCore/svg/SVGLangSpace.cpp \
WebCore/svg/SVGMarkerElement.cpp \
WebCore/svg/SVGMaskElement.cpp \
WebCore/svg/SVGMetadataElement.cpp \
+ WebCore/svg/SVGMissingGlyphElement.cpp \
WebCore/svg/SVGMPathElement.cpp \
WebCore/svg/SVGNumberList.cpp \
WebCore/svg/SVGPaint.cpp \
WebCore/rendering/SVGInlineFlowBox.cpp \
WebCore/rendering/SVGInlineTextBox.cpp \
WebCore/rendering/SVGRenderSupport.cpp \
- WebCore/rendering/SVGRootInlineBox.cpp \
+ WebCore/rendering/SVGRootInlineBox.cpp
+
+webkitgtk_sources += \
WebCore/svg/graphics/cairo/RenderPathCairo.cpp \
WebCore/svg/graphics/cairo/SVGPaintServerCairo.cpp \
WebCore/svg/graphics/cairo/SVGPaintServerGradientCairo.cpp \
# CSS grammar
# NOTE: older versions of bison do not inject an inclusion guard, so we do it
DerivedSources/CSSGrammar.h DerivedSources/CSSGrammar.cpp : $(WebCore)/css/CSSGrammar.y
- $(BISON) -d -p cssyy $< -o $@
+ $(BISON) -d -p cssyy $< -o $(GENSOURCES)/CSSGrammar.cpp
touch $(GENSOURCES)/CSSGrammar.cpp.h $(GENSOURCES)/CSSGrammar.hpp
echo '#ifndef CSSGrammar_h' > $(GENSOURCES)/CSSGrammar.h
echo '#define CSSGrammar_h' >> $(GENSOURCES)/CSSGrammar.h
cat $(GENSOURCES)/CSSGrammar.cpp.h $(GENSOURCES)/CSSGrammar.hpp >> $(GENSOURCES)/CSSGrammar.h
echo '#endif' >> $(GENSOURCES)/CSSGrammar.h
- rm -f $(GENSOURCES)/CSSGrammar.cpp.h $(GENSOURCES)/CSSGrammar.hpp
# user agent style sheets
USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html4.css $(WebCore)/css/quirks.css $(WebCore)/css/view-source.css $(WebCore)/css/svg.css
+
+DerivedSources/UserAgentStyleSheetsData.cpp : DerivedSources/UserAgentStyleSheets.h
+
DerivedSources/UserAgentStyleSheets.h : $(WebCore)/css/make-css-file-arrays.pl $(USER_AGENT_STYLE_SHEETS)
$(PERL) $< $@ UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
mv UserAgentStyleSheetsData.cpp $(GENSOURCES)
#include "Comment.h"
#include "CookieJar.h"
#include "DOMImplementation.h"
-#include "DatabaseThread.h"
#include "DocLoader.h"
#include "DocumentFragment.h"
#include "DocumentLoader.h"
#include "kjs_binding.h"
#include "kjs_proxy.h"
+#if ENABLE(DATABASE)
+#include "DatabaseThread.h"
+#endif
+
#if ENABLE(XPATH)
#include "XPathEvaluator.h"
#include "XPathExpression.h"
String databasePath() const;
static String defaultDatabaseFilename();
-private:
#if ENABLE(ICONDATABASE)
+private:
IconRecord* getOrCreateIconRecord(const String& iconURL);
PageURLRecord* getOrCreatePageURLRecord(const String& pageURL);
#include "Chrome.h"
#include "Console.h"
#include "DOMSelection.h"
-#include "Database.h"
#include "Document.h"
#include "Element.h"
#include "FloatRect.h"
#include <algorithm>
#include <wtf/MathExtras.h>
+#if ENABLE(DATABASE)
+#include "Database.h"
+#endif
+
using std::min;
using std::max;
#include "CString.h"
#include "CachedResource.h"
-#include "Database.h"
#include "DocLoader.h"
#include "Document.h"
#include "DocumentLoader.h"
#include <wtf/RefCounted.h>
#if ENABLE(DATABASE)
+#include "Database.h"
#include "JSDatabase.h"
#endif
#include "config.h"
#include "Settings.h"
-#include "DatabaseTracker.h"
#include "Frame.h"
#include "FrameTree.h"
#include "Page.h"
#include "PageCache.h"
#include "HistoryItem.h"
+#if ENABLE(DATABASE)
+#include "DatabaseTracker.h"
+#endif
+
namespace WebCore {
static void setNeedsReapplyStylesInAllFrames(Page* page)
#ifndef Database_h
#define Database_h
-#if ENABLE(DATABASE)
-
#include "PlatformString.h"
#include "SecurityOrigin.h"
#include "SQLiteDatabase.h"
} // namespace WebCore
-#endif
-
#endif // Database_h
+2007-12-29 Jan Michael Alonzo <jmalonzo@unpluggable.com>
+
+ Reviewed by Alp Toker.
+
+ http://bugs.webkit.org/show_bug.cgi?id=16669
+ autotools update and fixes
+
+ pkgconfig file and icon database inclusion fix
+
+ * WebKitGtk.pc.in: Remove ICU_FLAGS from Cflags
+ * WebView/webkitprivate.cpp: Guard ICONDATABASE inclusions
+
2007-12-28 Christian Dywan <christian@twotoasts.de>
Reviewed by Alp Toker.
Version: @LIBWEBKITGTK_VERSION@
Requires:glib-2.0, gobject-2.0, gthread-2.0, gdk-2.0, gtk+-2.0, pango, libcurl, cairo, fontconfig, freetype2, libxml-2.0
Libs: -L${libdir} -lWebKitGtk @DEPENDENCIES_LIBS@ @ICU_LIBS@ @SQLITE3_LIBS@ @GSTREAMER_LIBS@ @LIBXSLT_LIBS@
-Cflags: -I${includedir}/WebKit @DEPENDENCIES_CFLAGS@ @ICU_CFLAGS@ @SQLITE3_CFLAGS@ @GSTREAMER_CFLAGS@ @LIBXSLT_CFLAGS@
+Cflags: -I${includedir}/WebKit @DEPENDENCIES_CFLAGS@ @SQLITE3_CFLAGS@ @GSTREAMER_CFLAGS@ @LIBXSLT_CFLAGS@
#include "webkitprivate.h"
#include "ChromeClientGtk.h"
-#include "DatabaseTracker.h"
#include "FrameLoader.h"
#include "FrameLoaderClientGtk.h"
#include "Logging.h"
#include "NotImplemented.h"
#include "Pasteboard.h"
#include "PasteboardHelperGtk.h"
+#include "Threading.h"
+
+#if ENABLE(DATABASE)
+#include "DatabaseTracker.h"
+#endif
using namespace WebCore;
DIE=1
}
-if automake-1.9 --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-1.9
- ACLOCAL=aclocal-1.9
-else
+(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
- echo "You must have automake 1.9.x installed to compile $PROJECT."
+ echo "You must have automake installed to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
DIE=1
-fi
+}
if test "$DIE" -eq 1; then
exit 1
touch README INSTALL
-$ACLOCAL || exit $?
+aclocal || exit $?
libtoolize --force || exit $?
autoheader || exit $?
-$AUTOMAKE --foreign --add-missing || exit $?
+automake --foreign --add-missing || exit $?
autoconf || exit $?
-./configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
+./configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
;;
esac
+# If CXXFLAGS and CFLAGS are unset, default to -O2
+# This is to tell automake not to include '-g' if CXXFLAGS is not set
+# For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
+if test -z "$CXXFLAGS"; then
+ CXXFLAGS="-O2"
+fi
+if test -z "$CFLAGS"; then
+ CFLAGS="-O2"
+fi
+
# programs
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AM_PROG_CC_STDC
AC_PROG_CXX
+AC_PROG_CXX_C_O
AM_PROG_CC_C_O
AC_PATH_PROG(PERL, perl)
# determine the GDK/GTK+ target
AC_MSG_CHECKING([the target for WebKit GTK+])
-AC_ARG_WITH(webkittarget,
+AC_ARG_WITH(webkit_target,
AC_HELP_STRING([--with-webkit-target=@<:@x11/win32/quartz/directfb@:>@],
[Select webkit target [default=x11]]),
- [],[with_webkittarget="x11"])
+ [],[with_webkit_target="x11"])
-case "$with_webkittarget" in
+case "$with_webkit_target" in
x11|win32|quartz|directfb) ;;
*) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
esac
-AC_MSG_RESULT([$with_webkittarget])
+AC_MSG_RESULT([$with_webkit_target])
# minimum base dependencies
GLIB_REQUIRED_VERSION=2.0
AC_ARG_ENABLE(database,
AC_HELP_STRING([--enable-database],
[enable HTML5 client-side storage support [default=no]]),
- [],[enable_database="yes"])
+ [],[enable_database="no"])
AC_MSG_RESULT([$enable_database])
# check whether to build with icon database support
AC_MSG_CHECKING([whether to enable icon database support])
-AC_ARG_ENABLE(icondatabase,
+AC_ARG_ENABLE(icon_database,
AC_HELP_STRING([--enable-icon-database],
[enable icon database [default=no]]),
- [],[enable_icon_database="yes"])
+ [],[enable_icon_database="no"])
AC_MSG_RESULT([$enable_icon_database])
# check whether to enable HTML5 audio/video support
[],[enable_xpath="no"])
AC_MSG_RESULT([$enable_xpath])
-# check whether to enable XBL support
-AC_MSG_CHECKING([whether to enable XBL support])
-AC_ARG_ENABLE(xbl,
- AC_HELP_STRING([--enable-xbl],
- [enable support for XBL [default=no]]),
- [],[enable_xbl="no"])
-AC_MSG_RESULT([$enable_xbl])
-
# check whether to enable XSLT support
AC_MSG_CHECKING([whether to enable XSLT support])
AC_ARG_ENABLE(xslt,
[],[enable_coverage="no"])
AC_MSG_RESULT([$enable_coverage])
+# Add '-g' flag to gcc if it's debug build
+if test "$enable_debug" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -g"
+ CFLAGS="$CFLAGS -g"
+fi
+
# check if sqlite 3 is available
if test "$enable_icon_database" = "yes" || test "$enable_database" = "yes"; then
PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION])
AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
# target conditionals
-AM_CONDITIONAL([TARGET_X11], [test "$with_webkittarget" = "x11"])
-AM_CONDITIONAL([TARGET_WIN32], [test "$with_webkittarget" = "win32"])
-AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_webkittarget" = "quartz"])
-AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_webkittarget" = "directfb"])
+AM_CONDITIONAL([TARGET_X11], [test "$with_webkit_target" = "x11"])
+AM_CONDITIONAL([TARGET_WIN32], [test "$with_webkit_target" = "win32"])
+AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_webkit_target" = "quartz"])
+AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_webkit_target" = "directfb"])
# WebKit feature conditionals
AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
-AM_CONDITIONAL([ENABLE_XBL],[test "$enable_xbl" = "yes"])
AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
-
AC_CONFIG_FILES([
GNUmakefile
WebKit/gtk/WebKitGtk.pc:WebKit/gtk/WebKitGtk.pc.in
echo "
WebKit was configured with the following options:
- Target : $with_webkittarget
+ Target : $with_webkit_target
Enable debug : $enable_debug
Icon database support : $enable_icon_database
HTML5 client-side storage support : $enable_database
SVG use element support : $enable_svg_use_element
XPATH support : $enable_xpath
XSLT support : $enable_xslt
- XBL support : $enable_xbl
Code coverage support : $enable_coverage
"