# Copyright (C) 2006, 2007, 2008, 2012 Apple Inc. All rights reserved.
-# Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
+# Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
# Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
#
# Redistribution and use in source and binary forms, with or without
# are met:
#
# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
+# 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.
+# 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.
+# 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
$(WebCore)/Modules/filesystem \
$(WebCore)/Modules/geolocation \
$(WebCore)/Modules/indexeddb \
+ $(WebCore)/Modules/mediasource \
+ $(WebCore)/Modules/notifications \
+ $(WebCore)/Modules/quota \
$(WebCore)/Modules/webaudio \
$(WebCore)/Modules/webdatabase \
$(WebCore)/Modules/websockets \
- $(WebCore)/Resources \
$(WebCore)/bindings/generic \
$(WebCore)/bindings/js \
$(WebCore)/bindings/objc \
$(WebCore)/css \
$(WebCore)/dom \
+ $(WebCore)/editing \
$(WebCore)/fileapi \
$(WebCore)/html \
$(WebCore)/html/canvas \
$(WebCore)/html/track \
$(WebCore)/inspector \
$(WebCore)/loader/appcache \
- $(WebCore)/notifications \
$(WebCore)/page \
$(WebCore)/plugins \
$(WebCore)/storage \
$(WebCore)/Modules/indexeddb/IDBAny.idl \
$(WebCore)/Modules/indexeddb/IDBCursor.idl \
$(WebCore)/Modules/indexeddb/IDBDatabase.idl \
- $(WebCore)/Modules/indexeddb/IDBDatabaseException.idl \
$(WebCore)/Modules/indexeddb/IDBFactory.idl \
$(WebCore)/Modules/indexeddb/IDBIndex.idl \
$(WebCore)/Modules/indexeddb/IDBKey.idl \
$(WebCore)/Modules/indexeddb/IDBVersionChangeEvent.idl \
$(WebCore)/Modules/indexeddb/IDBVersionChangeRequest.idl \
$(WebCore)/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
+ $(WebCore)/Modules/mediasource/MediaSource.idl \
+ $(WebCore)/Modules/mediasource/SourceBuffer.idl \
+ $(WebCore)/Modules/mediasource/SourceBufferList.idl \
+ $(WebCore)/Modules/notifications/DOMWindowNotifications.idl \
+ $(WebCore)/Modules/notifications/Notification.idl \
+ $(WebCore)/Modules/notifications/NotificationCenter.idl \
+ $(WebCore)/Modules/notifications/NotificationPermissionCallback.idl \
+ $(WebCore)/Modules/notifications/WorkerContextNotifications.idl \
+ $(WebCore)/Modules/quota/DOMWindowQuota.idl \
+ $(WebCore)/Modules/quota/StorageInfo.idl \
+ $(WebCore)/Modules/quota/StorageInfoErrorCallback.idl \
+ $(WebCore)/Modules/quota/StorageInfoQuotaCallback.idl \
+ $(WebCore)/Modules/quota/StorageInfoUsageCallback.idl \
$(WebCore)/Modules/webaudio/AudioBuffer.idl \
$(WebCore)/Modules/webaudio/AudioBufferCallback.idl \
$(WebCore)/Modules/webaudio/AudioBufferSourceNode.idl \
- $(WebCore)/Modules/webaudio/AudioChannelMerger.idl \
- $(WebCore)/Modules/webaudio/AudioChannelSplitter.idl \
+ $(WebCore)/Modules/webaudio/ChannelMergerNode.idl \
+ $(WebCore)/Modules/webaudio/ChannelSplitterNode.idl \
$(WebCore)/Modules/webaudio/AudioContext.idl \
$(WebCore)/Modules/webaudio/AudioDestinationNode.idl \
$(WebCore)/Modules/webaudio/AudioGain.idl \
- $(WebCore)/Modules/webaudio/AudioGainNode.idl \
+ $(WebCore)/Modules/webaudio/GainNode.idl \
$(WebCore)/Modules/webaudio/AudioListener.idl \
$(WebCore)/Modules/webaudio/AudioNode.idl \
- $(WebCore)/Modules/webaudio/AudioPannerNode.idl \
+ $(WebCore)/Modules/webaudio/PannerNode.idl \
$(WebCore)/Modules/webaudio/AudioParam.idl \
$(WebCore)/Modules/webaudio/AudioProcessingEvent.idl \
$(WebCore)/Modules/webaudio/AudioSourceNode.idl \
$(WebCore)/Modules/webaudio/DOMWindowWebAudio.idl \
$(WebCore)/Modules/webaudio/DelayNode.idl \
$(WebCore)/Modules/webaudio/DynamicsCompressorNode.idl \
- $(WebCore)/Modules/webaudio/JavaScriptAudioNode.idl \
+ $(WebCore)/Modules/webaudio/ScriptProcessorNode.idl \
$(WebCore)/Modules/webaudio/MediaElementAudioSourceNode.idl \
- $(WebCore)/Modules/webaudio/Oscillator.idl \
+ $(WebCore)/Modules/webaudio/MediaStreamAudioSourceNode.idl \
+ $(WebCore)/Modules/webaudio/OscillatorNode.idl \
$(WebCore)/Modules/webaudio/OfflineAudioCompletionEvent.idl \
- $(WebCore)/Modules/webaudio/RealtimeAnalyserNode.idl \
+ $(WebCore)/Modules/webaudio/AnalyserNode.idl \
$(WebCore)/Modules/webaudio/WaveShaperNode.idl \
$(WebCore)/Modules/webaudio/WaveTable.idl \
$(WebCore)/Modules/webdatabase/DOMWindowWebDatabase.idl \
$(WebCore)/css/WebKitCSSKeyframeRule.idl \
$(WebCore)/css/WebKitCSSKeyframesRule.idl \
$(WebCore)/css/WebKitCSSMatrix.idl \
+ $(WebCore)/css/WebKitCSSMixFunctionValue.idl \
$(WebCore)/css/WebKitCSSRegionRule.idl \
$(WebCore)/css/WebKitCSSTransformValue.idl \
+ $(WebCore)/css/WebKitCSSViewportRule.idl \
$(WebCore)/dom/Attr.idl \
$(WebCore)/dom/BeforeLoadEvent.idl \
$(WebCore)/dom/CDATASection.idl \
$(WebCore)/dom/MouseEvent.idl \
$(WebCore)/dom/MutationCallback.idl \
$(WebCore)/dom/MutationEvent.idl \
+ $(WebCore)/dom/MutationObserver.idl \
$(WebCore)/dom/MutationRecord.idl \
+ $(WebCore)/dom/DOMNamedFlowCollection.idl \
$(WebCore)/dom/NamedNodeMap.idl \
$(WebCore)/dom/Node.idl \
$(WebCore)/dom/NodeFilter.idl \
$(WebCore)/dom/PopStateEvent.idl \
$(WebCore)/dom/ProcessingInstruction.idl \
$(WebCore)/dom/ProgressEvent.idl \
+ $(WebCore)/dom/ProgressEvent.idl \
+ $(WebCore)/dom/PropertyNodeList.idl \
$(WebCore)/dom/Range.idl \
$(WebCore)/dom/RangeException.idl \
$(WebCore)/dom/RequestAnimationFrameCallback.idl \
$(WebCore)/dom/TreeWalker.idl \
$(WebCore)/dom/UIEvent.idl \
$(WebCore)/dom/WebKitAnimationEvent.idl \
- $(WebCore)/dom/WebKitMutationObserver.idl \
$(WebCore)/dom/WebKitNamedFlow.idl \
$(WebCore)/dom/WebKitTransitionEvent.idl \
$(WebCore)/dom/WheelEvent.idl \
$(WebCore)/fileapi/FileList.idl \
$(WebCore)/fileapi/FileReader.idl \
$(WebCore)/fileapi/FileReaderSync.idl \
- $(WebCore)/fileapi/OperationNotAllowedException.idl \
- $(WebCore)/fileapi/WebKitBlobBuilder.idl \
$(WebCore)/html/DOMFormData.idl \
$(WebCore)/html/DOMSettableTokenList.idl \
$(WebCore)/html/DOMTokenList.idl \
$(WebCore)/html/HTMLDListElement.idl \
$(WebCore)/html/HTMLDataListElement.idl \
$(WebCore)/html/HTMLDetailsElement.idl \
+ $(WebCore)/html/HTMLDialogElement.idl \
$(WebCore)/html/HTMLDirectoryElement.idl \
$(WebCore)/html/HTMLDivElement.idl \
$(WebCore)/html/HTMLDocument.idl \
$(WebCore)/html/HTMLEmbedElement.idl \
$(WebCore)/html/HTMLFieldSetElement.idl \
$(WebCore)/html/HTMLFontElement.idl \
+ $(WebCore)/html/HTMLFormControlsCollection.idl \
$(WebCore)/html/HTMLFormElement.idl \
$(WebCore)/html/HTMLFrameElement.idl \
$(WebCore)/html/HTMLFrameSetElement.idl \
$(WebCore)/html/HTMLTableElement.idl \
$(WebCore)/html/HTMLTableRowElement.idl \
$(WebCore)/html/HTMLTableSectionElement.idl \
+ $(WebCore)/html/HTMLTemplateElement.idl \
$(WebCore)/html/HTMLTextAreaElement.idl \
$(WebCore)/html/HTMLTitleElement.idl \
$(WebCore)/html/HTMLTrackElement.idl \
$(WebCore)/html/ImageData.idl \
$(WebCore)/html/MediaController.idl \
$(WebCore)/html/MediaError.idl \
+ $(WebCore)/html/MediaKeyError.idl \
+ $(WebCore)/html/MediaKeyEvent.idl \
+ $(WebCore)/html/MicroDataItemValue.idl \
$(WebCore)/html/RadioNodeList.idl \
$(WebCore)/html/TextMetrics.idl \
$(WebCore)/html/TimeRanges.idl \
$(WebCore)/html/ValidityState.idl \
+ $(WebCore)/html/VoidCallback.idl \
$(WebCore)/html/canvas/ArrayBuffer.idl \
$(WebCore)/html/canvas/ArrayBufferView.idl \
$(WebCore)/html/canvas/CanvasGradient.idl \
$(WebCore)/html/canvas/Int16Array.idl \
$(WebCore)/html/canvas/Int32Array.idl \
$(WebCore)/html/canvas/Int8Array.idl \
+ $(WebCore)/html/canvas/OESElementIndexUint.idl \
$(WebCore)/html/canvas/OESStandardDerivatives.idl \
$(WebCore)/html/canvas/OESTextureFloat.idl \
$(WebCore)/html/canvas/OESVertexArrayObject.idl \
$(WebCore)/html/canvas/WebGLCompressedTextureS3TC.idl \
$(WebCore)/html/canvas/WebGLContextAttributes.idl \
$(WebCore)/html/canvas/WebGLContextEvent.idl \
+ $(WebCore)/html/canvas/WebGLDepthTexture.idl \
$(WebCore)/html/canvas/WebGLFramebuffer.idl \
$(WebCore)/html/canvas/WebGLLoseContext.idl \
$(WebCore)/html/canvas/WebGLProgram.idl \
$(WebCore)/inspector/ScriptProfile.idl \
$(WebCore)/inspector/ScriptProfileNode.idl \
$(WebCore)/loader/appcache/DOMApplicationCache.idl \
- $(WebCore)/notifications/DOMWindowNotifications.idl \
- $(WebCore)/notifications/Notification.idl \
- $(WebCore)/notifications/NotificationCenter.idl \
- $(WebCore)/notifications/NotificationPermissionCallback.idl \
- $(WebCore)/notifications/WorkerContextNotifications.idl \
$(WebCore)/page/AbstractView.idl \
$(WebCore)/page/BarInfo.idl \
$(WebCore)/page/Console.idl \
$(WebCore)/page/Coordinates.idl \
$(WebCore)/page/Crypto.idl \
+ $(WebCore)/page/DOMSecurityPolicy.idl \
$(WebCore)/page/DOMSelection.idl \
$(WebCore)/page/DOMWindow.idl \
$(WebCore)/page/EventSource.idl \
$(WebCore)/plugins/DOMPluginArray.idl \
$(WebCore)/storage/Storage.idl \
$(WebCore)/storage/StorageEvent.idl \
- $(WebCore)/storage/StorageInfo.idl \
- $(WebCore)/storage/StorageInfoErrorCallback.idl \
- $(WebCore)/storage/StorageInfoQuotaCallback.idl \
- $(WebCore)/storage/StorageInfoUsageCallback.idl \
$(WebCore)/svg/ElementTimeControl.idl \
$(WebCore)/svg/SVGAElement.idl \
$(WebCore)/svg/SVGAltGlyphDefElement.idl \
$(WebCore)/svg/SVGZoomEvent.idl \
$(WebCore)/testing/Internals.idl \
$(WebCore)/testing/InternalSettings.idl \
+ $(WebCore)/testing/MallocStatistics.idl \
$(WebCore)/workers/AbstractWorker.idl \
$(WebCore)/workers/DedicatedWorkerContext.idl \
$(WebCore)/workers/SharedWorker.idl \
DOM_CLASSES=$(basename $(notdir $(BINDING_IDLS)))
-JS_DOM_HEADERS=$(filter-out JSMediaQueryListListener.h JSEventListener.h JSEventTarget.h, $(DOM_CLASSES:%=JS%.h))
+JS_DOM_HEADERS=$(filter-out JSMediaQueryListListener.h JSEventListener.h, $(DOM_CLASSES:%=JS%.h))
WEB_DOM_HEADERS :=
ifeq ($(findstring BUILDING_WX,$(FEATURE_DEFINES)), BUILDING_WX)
endif # BUILDING_WX
all : \
+ $(SUPPLEMENTAL_DEPENDENCY_FILE) \
$(JS_DOM_HEADERS) \
$(WEB_DOM_HEADERS) \
\
FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
+TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional
-ifeq ($(TARGET_GCC_VERSION),LLVM_COMPILER)
- TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional
-else
- TEXT_PREPROCESSOR_FLAGS=-E -P -x c -std=c89
+ifneq ($(SDKROOT),)
+ SDK_FLAGS=-isysroot $(SDKROOT)
endif
-ifeq ($(shell $(CC) -x c++ -E -P -dM $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_DASHBOARD_SUPPORT | cut -d' ' -f3), 1)
+ifeq ($(shell $(CC) -x c++ -E -P -dM $(SDK_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_DASHBOARD_SUPPORT | cut -d' ' -f3), 1)
ENABLE_DASHBOARD_SUPPORT = 1
else
ENABLE_DASHBOARD_SUPPORT = 0
endif
-ifeq ($(shell $(CC) -x c++ -E -P -dM $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
+ifeq ($(shell $(CC) -x c++ -E -P -dM $(SDK_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
ENABLE_ORIENTATION_EVENTS = 1
else
ENABLE_ORIENTATION_EVENTS = 0
endif
-all: DefaultFonts.plist
-
-DefaultFonts.plist : DefaultFonts.plist.in
- @echo Pre-processing DefaultFonts.plist...
- $(CC) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@
-
else
ifndef ENABLE_DASHBOARD_SUPPORT
endif # MACOS
+ifndef ENABLE_DRAGGABLE_REGION
+ ENABLE_DRAGGABLE_REGION = 0
+endif
+
ifeq ($(ENABLE_ORIENTATION_EVENTS), 1)
ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_ORIENTATION_EVENTS
endif
+ifeq ($(ENABLE_DRAGGABLE_REGION), 1)
+ ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_DRAGGABLE_REGION
+endif
+
# --------
# CSS property names and value keywords
# --------
# CSS grammar
-# NOTE: Older versions of bison do not inject an inclusion guard, so we add one.
-
-CSSGrammar.cpp : css/CSSGrammar.y
- $(BISON) -d -p cssyy $< -o $@
- touch CSSGrammar.cpp.h
- touch CSSGrammar.hpp
- echo '#ifndef CSSGrammar_h' > CSSGrammar.h
- echo '#define CSSGrammar_h' >> CSSGrammar.h
- cat CSSGrammar.cpp.h CSSGrammar.hpp >> CSSGrammar.h
- echo '#endif' >> CSSGrammar.h
- rm -f CSSGrammar.cpp.h CSSGrammar.hpp
+CSSGrammar.cpp : css/CSSGrammar.y.in
+ perl -I $(WebCore)/bindings/scripts $(WebCore)/css/makegrammar.pl --extraDefines "$(FEATURE_DEFINES)" --outputDir . --bison "$(BISON)" --symbolsPrefix cssyy $<
# --------
# XPath grammar
-# NOTE: Older versions of bison do not inject an inclusion guard, so we add one.
-
XPathGrammar.cpp : xml/XPathGrammar.y $(PROJECT_FILE)
- $(BISON) -d -p xpathyy $< -o $@
- touch XPathGrammar.cpp.h
- touch XPathGrammar.hpp
- echo '#ifndef XPathGrammar_h' > XPathGrammar.h
- echo '#define XPathGrammar_h' >> XPathGrammar.h
- cat XPathGrammar.cpp.h XPathGrammar.hpp >> XPathGrammar.h
- echo '#endif' >> XPathGrammar.h
- rm -f XPathGrammar.cpp.h XPathGrammar.hpp
+ perl $(WebCore)/css/makegrammar.pl --outputDir . --bison "$(BISON)" --symbolsPrefix xpathyy $<
# --------
# user agent style sheets
-USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/view-source.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css
+USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/view-source.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css
ifeq ($(findstring ENABLE_SVG,$(FEATURE_DEFINES)), ENABLE_SVG)
- USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
+ USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
endif
ifeq ($(findstring ENABLE_MATHML,$(FEATURE_DEFINES)), ENABLE_MATHML)
# HTML tag and attribute names
-ifeq ($(findstring ENABLE_DATALIST,$(FEATURE_DEFINES)), ENABLE_DATALIST)
- HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATALIST=1
+ifeq ($(findstring ENABLE_DATALIST_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DATALIST_ELEMENT)
+ HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATALIST_ELEMENT=1
endif
-ifeq ($(findstring ENABLE_DETAILS,$(FEATURE_DEFINES)), ENABLE_DETAILS)
- HTML_FLAGS := $(HTML_FLAGS) ENABLE_DETAILS=1
+ifeq ($(findstring ENABLE_DETAILS_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DETAILS_ELEMENT)
+ HTML_FLAGS := $(HTML_FLAGS) ENABLE_DETAILS_ELEMENT=1
endif
-ifeq ($(findstring ENABLE_METER_TAG,$(FEATURE_DEFINES)), ENABLE_METER_TAG)
- HTML_FLAGS := $(HTML_FLAGS) ENABLE_METER_TAG=1
+ifeq ($(findstring ENABLE_METER_ELEMENT,$(FEATURE_DEFINES)), ENABLE_METER_ELEMENT)
+ HTML_FLAGS := $(HTML_FLAGS) ENABLE_METER_ELEMENT=1
endif
ifeq ($(findstring ENABLE_MICRODATA,$(FEATURE_DEFINES)), ENABLE_MICRODATA)
HTML_FLAGS := $(HTML_FLAGS) ENABLE_MICRODATA=1
endif
-ifeq ($(findstring ENABLE_PROGRESS_TAG,$(FEATURE_DEFINES)), ENABLE_PROGRESS_TAG)
- HTML_FLAGS := $(HTML_FLAGS) ENABLE_PROGRESS_TAG=1
+ifeq ($(findstring ENABLE_PROGRESS_ELEMENT,$(FEATURE_DEFINES)), ENABLE_PROGRESS_ELEMENT)
+ HTML_FLAGS := $(HTML_FLAGS) ENABLE_PROGRESS_ELEMENT=1
endif
ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
HTML_FLAGS := $(HTML_FLAGS) ENABLE_SHADOW_DOM=1
endif
+ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA)
+ HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA=1
+endif
+
ifdef HTML_FLAGS
HTMLElementFactory.cpp HTMLNames.cpp : dom/make_names.pl html/HTMLTagNames.in html/HTMLAttributeNames.in
perl -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in
# --------
-
+
# Register event constructors and targets
EventFactory.cpp EventHeaders.h EventInterfaces.h : dom/make_event_factory.pl dom/EventNames.in
perl -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in
# --------
-
+
# MathML tag and attribute names, and element factory
MathMLElementFactory.cpp MathMLNames.cpp : dom/make_names.pl mathml/mathtags.in mathml/mathattrs.in
# --------
+all : SettingsMacros.h
+
+SettingsMacros.h : page/make_settings.pl page/Settings.in
+ perl -I $(WebCore)/bindings/scripts $< --input $(WebCore)/page/Settings.in
+
+# --------
+
# Common generator things
GENERATE_SCRIPTS = \
bindings/scripts/CodeGenerator.pm \
bindings/scripts/IDLParser.pm \
- bindings/scripts/IDLStructure.pm \
bindings/scripts/generate-bindings.pl \
bindings/scripts/preprocessor.pm
# JS bindings generator
IDL_INCLUDES = \
+ $(WebCore)/Modules/battery \
+ $(WebCore)/Modules/filesystem \
+ $(WebCore)/Modules/gamepad \
+ $(WebCore)/Modules/geolocation \
+ $(WebCore)/Modules/indexeddb \
+ $(WebCore)/Modules/intents \
+ $(WebCore)/Modules/mediasource \
+ $(WebCore)/Modules/mediastream \
+ $(WebCore)/Modules/networkinfo \
+ $(WebCore)/Modules/notifications \
+ $(WebCore)/Modules/speech \
+ $(WebCore)/Modules/vibration \
+ $(WebCore)/Modules/webaudio \
+ $(WebCore)/Modules/webdatabase \
+ $(WebCore)/Modules/websockets \
+ $(WebCore)/css \
$(WebCore)/dom \
$(WebCore)/fileapi \
$(WebCore)/html \
- $(WebCore)/css \
+ $(WebCore)/html/canvas \
+ $(WebCore)/html/shadow \
+ $(WebCore)/html/track \
+ $(WebCore)/inspector \
+ $(WebCore)/loader/appcache \
$(WebCore)/page \
- $(WebCore)/notifications \
- $(WebCore)/xml \
- $(WebCore)/svg
+ $(WebCore)/plugins \
+ $(WebCore)/storage \
+ $(WebCore)/svg \
+ $(WebCore)/workers \
+ $(WebCore)/xml
IDL_COMMON_ARGS = $(IDL_INCLUDES:%=--include %) --write-dependencies --outputDir .
JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm
-SUPPLEMENTAL_DEPENDENCY_FILE = ./supplemental_dependency.tmp
+SUPPLEMENTAL_DEPENDENCY_FILE = ./SupplementalDependencies.txt
+SUPPLEMENTAL_MAKEFILE_DEPS = ./SupplementalDependencies.dep
IDL_FILES_TMP = ./idl_files.tmp
ADDITIONAL_IDLS = $(WebCore)/inspector/JavaScriptCallFrame.idl
IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
space :=
space +=
-$(SUPPLEMENTAL_DEPENDENCY_FILE) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(ADDITIONAL_IDLS) $(IDL_ATTRIBUTES_FILE)
+$(SUPPLEMENTAL_MAKEFILE_DEPS) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(ADDITIONAL_IDLS) $(IDL_ATTRIBUTES_FILE)
printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS) $(ADDITIONAL_IDLS)))" > $(IDL_FILES_TMP)
- $(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $@ --idlAttributesFile $(IDL_ATTRIBUTES_FILE)
+ $(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) --supplementalMakefileDeps $@ --idlAttributesFile $(IDL_ATTRIBUTES_FILE)
rm -f $(IDL_FILES_TMP)
-JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE)
+JS%.h : %.idl $(JS_BINDINGS_SCRIPTS)
$(call generator_script, $(JS_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
+include $(SUPPLEMENTAL_MAKEFILE_DEPS)
# Inspector interfaces generator
InspectorFrontend.h : Inspector.json $(INSPECTOR_GENERATOR_SCRIPTS)
python $(WebCore)/inspector/CodeGeneratorInspector.py $(WebCore)/inspector/Inspector.json --output_h_dir . --output_cpp_dir .
+all : InspectorOverlayPage.h
+
+InspectorOverlayPage.h : InspectorOverlayPage.html
+ perl $(WebCore)/inspector/xxd.pl InspectorOverlayPage_html $(WebCore)/inspector/InspectorOverlayPage.html InspectorOverlayPage.h
+
all : InjectedScriptSource.h
InjectedScriptSource.h : InjectedScriptSource.js
perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js InjectedScriptSource.h
+all : InjectedScriptCanvasModuleSource.h
+
+InjectedScriptCanvasModuleSource.h : InjectedScriptCanvasModuleSource.js
+ perl $(WebCore)/inspector/xxd.pl InjectedScriptCanvasModuleSource_js $(WebCore)/inspector/InjectedScriptCanvasModuleSource.js InjectedScriptCanvasModuleSource.h
+
-include $(JS_DOM_HEADERS:.h=.dep)
ifeq ($(findstring BUILDING_WX,$(FEATURE_DEFINES)), BUILDING_WX)
CPP_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorCPP.pm
-WebDOM%.h : %.idl $(CPP_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE)
+WebDOM%.h : %.idl $(CPP_BINDINGS_SCRIPTS)
$(call generator_script, $(CPP_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_CPP" --generator CPP --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
endif # BUILDING_WX
# Objective-C bindings
DOM_BINDINGS_SCRIPTS = $(GENERATE_BINDING_SCRIPTS) bindings/scripts/CodeGeneratorObjC.pm
-DOM%.h : %.idl $(DOM_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE) bindings/objc/PublicDOMInterfaces.h
+DOM%.h : %.idl $(DOM_BINDINGS_SCRIPTS) bindings/objc/PublicDOMInterfaces.h
$(call generator_script, $(DOM_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
-include $(OBJC_DOM_HEADERS:.h=.dep)