2010-07-26 Martin Robinson <mrobinson@igalia.com>
[WebKit-https.git] / WebCore / GNUmakefile.am
index 5b1950f5b582a2fc0716c572c5f93710cf04df59..8339ffbc915213af2ff4f7ae519fb2a15c04c87a 100644 (file)
@@ -1,6 +1,3 @@
-
-WebCore := $(srcdir)/WebCore
-
 FEATURE_DEFINES :=
 SVG_FEATURES :=
 HTML_FEATURES :=
@@ -86,8 +83,7 @@ webcoregtk_cppflags += \
 webcore_built_nosources += \
        DerivedSources/WebCore/DocTypeStrings.cpp \
        DerivedSources/WebCore/tokenizer.cpp \
-       DerivedSources/WebCore/ColorData.cpp \
-       DerivedSources/webkit/webkitdomdummy.c
+       DerivedSources/WebCore/ColorData.cpp
 
 webcore_built_sources += \
        DerivedSources/WebCore/CSSGrammar.cpp \
@@ -4428,197 +4424,6 @@ DerivedSources/WebCore/JS%.h: DerivedSources/WebCore/JS%.cpp;
 DerivedSources/WebCore/JS%.cpp: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorJS.pm
        $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl $(IDL_PATH:%=--include "%") --outputDir "$(GENSOURCES_WEBCORE)" --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)" --generator JS $<
 
-DerivedSources/webkit/webkitdomdummy.c:
-       $(AM_V_GEN)mkdir -p DerivedSources/webkit || echo > $@
-
-# Because WebCore/bindings/gobject/WebKitDOMObject.h is static source but is also a distributed header
-# required by other distributed headers (both static and auto-generated), need to move this to the
-# DerivedSources/webkit directory.  The reason is that we want all header files distributed in the
-# include/webkit-x.y/webkit directory, but do not want to name the WebCore/bindings/gobject directory 
-# "webkit", as that's a bit presumptuous for a GTK binding.
-$(top_builddir)/DerivedSources/webkit/WebKitDOMObject.h: $(WebCore)/bindings/gobject/WebKitDOMObject.h
-       $(AM_V_GEN)cp -f $< $@
-
-$(top_builddir)/DerivedSources/webkit/WebKitDOMEventTarget.h: $(WebCore)/bindings/gobject/WebKitDOMEventTarget.h
-       $(AM_V_GEN)cp -f $< $@
-
-# Start with a subset of all the DOM bindings
-IDL_BINDINGS_GDOM += \
-       WebCore/css/CSSRule.idl \
-       WebCore/css/CSSRuleList.idl \
-       WebCore/css/CSSStyleDeclaration.idl \
-       WebCore/css/CSSStyleSheet.idl \
-       WebCore/css/CSSValue.idl \
-       WebCore/css/MediaList.idl \
-       WebCore/css/StyleMedia.idl \
-       WebCore/css/StyleSheet.idl \
-       WebCore/css/StyleSheetList.idl \
-       WebCore/dom/Attr.idl \
-       WebCore/dom/CDATASection.idl \
-       WebCore/dom/CharacterData.idl \
-       WebCore/dom/Comment.idl \
-       WebCore/dom/Document.idl \
-       WebCore/dom/DocumentFragment.idl \
-       WebCore/dom/DocumentType.idl \
-       WebCore/dom/DOMImplementation.idl \
-       WebCore/dom/DOMStringList.idl \
-       WebCore/dom/DOMStringMap.idl \
-       WebCore/dom/Element.idl \
-       WebCore/dom/EntityReference.idl \
-       WebCore/dom/Event.idl \
-       WebCore/dom/MessagePort.idl \
-       WebCore/dom/NamedNodeMap.idl \
-       WebCore/dom/Node.idl \
-       WebCore/dom/NodeFilter.idl \
-       WebCore/dom/NodeIterator.idl \
-       WebCore/dom/NodeList.idl \
-       WebCore/dom/ProcessingInstruction.idl \
-       WebCore/dom/Range.idl \
-       WebCore/dom/Text.idl \
-       WebCore/dom/TreeWalker.idl \
-       WebCore/html/Blob.idl \
-       WebCore/html/File.idl \
-       WebCore/html/FileList.idl \
-       WebCore/html/HTMLAnchorElement.idl \
-       WebCore/html/HTMLAppletElement.idl \
-       WebCore/html/HTMLAreaElement.idl \
-       WebCore/html/HTMLBaseElement.idl \
-       WebCore/html/HTMLBaseFontElement.idl \
-       WebCore/html/HTMLBlockquoteElement.idl \
-       WebCore/html/HTMLBodyElement.idl \
-       WebCore/html/HTMLBRElement.idl \
-       WebCore/html/HTMLButtonElement.idl \
-       WebCore/html/HTMLCanvasElement.idl \
-       WebCore/html/HTMLCollection.idl \
-       WebCore/html/HTMLDirectoryElement.idl \
-       WebCore/html/HTMLDivElement.idl \
-       WebCore/html/HTMLDListElement.idl \
-       WebCore/html/HTMLDocument.idl \
-       WebCore/html/HTMLElement.idl \
-       WebCore/html/HTMLEmbedElement.idl \
-       WebCore/html/HTMLFieldSetElement.idl \
-       WebCore/html/HTMLFontElement.idl \
-       WebCore/html/HTMLFormElement.idl \
-       WebCore/html/HTMLFrameElement.idl \
-       WebCore/html/HTMLFrameSetElement.idl \
-       WebCore/html/HTMLHeadElement.idl \
-       WebCore/html/HTMLHeadingElement.idl \
-       WebCore/html/HTMLHRElement.idl \
-       WebCore/html/HTMLHtmlElement.idl \
-       WebCore/html/HTMLIFrameElement.idl \
-       WebCore/html/HTMLImageElement.idl \
-       WebCore/html/HTMLInputElement.idl \
-       WebCore/html/HTMLIsIndexElement.idl \
-       WebCore/html/HTMLLabelElement.idl \
-       WebCore/html/HTMLLegendElement.idl \
-       WebCore/html/HTMLLIElement.idl \
-       WebCore/html/HTMLLinkElement.idl \
-       WebCore/html/HTMLMapElement.idl \
-       WebCore/html/HTMLMarqueeElement.idl \
-       WebCore/html/HTMLMenuElement.idl \
-       WebCore/html/HTMLMetaElement.idl \
-       WebCore/html/HTMLModElement.idl \
-       WebCore/html/HTMLObjectElement.idl \
-       WebCore/html/HTMLOListElement.idl \
-       WebCore/html/HTMLOptGroupElement.idl \
-       WebCore/html/HTMLOptionElement.idl \
-       WebCore/html/HTMLOptionsCollection.idl \
-       WebCore/html/HTMLParagraphElement.idl \
-       WebCore/html/HTMLParamElement.idl \
-       WebCore/html/HTMLPreElement.idl \
-       WebCore/html/HTMLQuoteElement.idl \
-       WebCore/html/HTMLScriptElement.idl \
-       WebCore/html/HTMLSelectElement.idl \
-       WebCore/html/HTMLStyleElement.idl \
-       WebCore/html/HTMLTableElement.idl \
-       WebCore/html/HTMLTableCaptionElement.idl \
-       WebCore/html/HTMLTableColElement.idl \
-       WebCore/html/HTMLTableSectionElement.idl \
-       WebCore/html/HTMLTableCellElement.idl \
-       WebCore/html/HTMLTextAreaElement.idl \
-       WebCore/html/HTMLTitleElement.idl \
-       WebCore/html/HTMLTableRowElement.idl \
-       WebCore/html/HTMLUListElement.idl \
-       WebCore/html/ValidityState.idl \
-       WebCore/loader/appcache/DOMApplicationCache.idl \
-       WebCore/page/BarInfo.idl \
-       WebCore/page/Console.idl \
-       WebCore/page/DOMWindow.idl \
-       WebCore/page/DOMSelection.idl \
-       WebCore/page/History.idl \
-       WebCore/page/Location.idl \
-       WebCore/page/MemoryInfo.idl \
-       WebCore/page/Navigator.idl \
-       WebCore/page/Screen.idl \
-       WebCore/page/WebKitPoint.idl \
-       WebCore/plugins/DOMMimeType.idl \
-       WebCore/plugins/DOMMimeTypeArray.idl \
-       WebCore/plugins/DOMPlugin.idl \
-       WebCore/plugins/DOMPluginArray.idl \
-       WebCore/storage/Database.idl \
-       WebCore/storage/Storage.idl \
-       WebCore/xml/XPathExpression.idl \
-       WebCore/xml/XPathNSResolver.idl \
-       WebCore/xml/XPathResult.idl
-
-if ENABLE_GEOLOCATION
-IDL_BINDINGS_GDOM += \
-       WebCore/page/Geolocation.idl
-endif # END ENABLE_GEOLOCATION
-
-
-# All classes autogenerated in the GObject DOM bindings
-GDOM_AUTO_CLASSES += $(basename $(notdir $(IDL_BINDINGS_GDOM)))
-
-# The classes implemented manually
-GDOM_FIXED_CLASSES += Object EventTarget
-
-GDOM_CLASSES += $(GDOM_AUTO_CLASSES) $(GDOM_FIXED_CLASSES)
-
-# Filter out SVG for now
-FEATURE_DEFINES_GDOM := $(filter-out ENABLE-SVG%, $(FEATURE_DEFINES))
-
-# Autogenerated header files
-GDOM_HEADERS_BUILT += $(patsubst %,$(top_builddir)/DerivedSources/webkit/WebKitDOM%.h,$(GDOM_AUTO_CLASSES)) \
-       $(top_builddir)/DerivedSources/webkit/webkitdom.h \
-       $(top_builddir)/DerivedSources/webkit/webkitdomdefines.h \
-       $(top_builddir)/DerivedSources/webkit/WebKitDOMEventTarget.h \
-       $(top_builddir)/DerivedSources/webkit/WebKitDOMObject.h
-
-# Autogenerated source files
-GDOM_SOURCES_BUILT := $(patsubst %,DerivedSources/webkit/WebKitDOM%.cpp,$(GDOM_AUTO_CLASSES))
-
-# Hand-coded header files
-GDOM_HEADERS_FIXED += $(patsubst %,$(srcdir)/WebCore/bindings/gobject/WebKitDOM%.h,$(GDOM_FIXED_CLASSES))
-
-# All header files that get installed
-libgdom_h_api += $(GDOM_HEADERS_FIXED) $(GDOM_HEADERS_BUILT)
-
-DerivedSources/webkit/webkitdom.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl $(WebCore)/GNUmakefile.am
-       $(AM_V_GEN)echo $(GDOM_CLASSES) | $(PERL) $< gdom > $@
-
-DerivedSources/webkit/webkitdomdefines.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl $(IDL_BINDINGS_GDOM) $(WebCore)/GNUmakefile.am
-       $(AM_V_GEN)echo $(GDOM_CLASSES) | $(PERL) $< defines > $@
-
-DerivedSources/webkit/WebKitDOM%.h: DerivedSources/webkit/WebKitDOM%.cpp;
-
-DerivedSources/webkit/WebKitDOM%.cpp: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorGObject.pm $(webcoregtk_dom_sources)
-       $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --include $(WebCore)/dom --include $(WebCore)/html --include $(WebCore)/css --include $(WebCore)/page --include $(WebCore)/xml --include $(WebCore)/svg --outputDir "$(GENSOURCES_WEBKIT)" --defines "LANGUAGE_GOBJECT=1 $(FEATURE_DEFINES_GDOM)" --generator GObject $<
-
-gdom_built_nosources := $(GDOM_HEADERS_BUILT) $(GDOM_SOURCES_BUILT)
-
-libgdom_objects := $(subst .cpp,.lo,$(GDOM_SOURCES_BUILT))
-libgdom_depfiles := $(patsubst %.lo,$(top_builddir)/DerivedSources/webkit/$(DEPDIR)/%.Plo,$(notdir $(libgdom_objects)))
-libgdom_depfiles += $(patsubst %.h,$(WebCore)/bindings/gobject/$(DEPDIR)/%.Plo,$(notdir $(GDOM_HEADERS_FIXED)))
-
--include $(libgdom_depfiles)
-
-$(libgdom_objects): AM_CPPFLAGS+=$(libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS)
-$(libgdom_objects): AM_CXXFLAGS+=$(libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS)
-
-libgdom.la: $(libgdom_objects)
-       $(CXXLINK) $(libgdom_objects) $(LIBS)
-
 EXTRA_DIST += \
        $(shell ls $(srcdir)/WebCore/css/*.idl) \
        $(shell ls $(srcdir)/WebCore/dom/*.idl) \