blob: ce3283956de28a6c7ad00f602d1adf7065ebd592 [file] [log] [blame]
##
##
## Copyright 2007, The Android Open Source Project
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
LOCAL_CFLAGS += -DWTF_USE_V8=1
v8binding_dir := $(LOCAL_PATH)
BINDING_C_INCLUDES := \
$(BASE_PATH)/v8/include \
$(WEBCORE_PATH)/bindings/v8 \
$(WEBCORE_PATH)/bindings/v8/custom \
$(LOCAL_PATH)/v8 \
$(LOCAL_PATH)/npapi \
$(LOCAL_PATH)/jni \
$(JAVASCRIPTCORE_PATH)/wtf \
$(JAVASCRIPTCORE_PATH)
WEBCORE_SRC_FILES := \
bindings/v8/ScheduledAction.cpp \
bindings/v8/ScriptCallFrame.cpp \
bindings/v8/ScriptCallStack.cpp \
bindings/v8/ScriptInstance.cpp \
bindings/v8/ScriptValue.cpp \
bindings/v8/V8AbstractEventListener.cpp \
bindings/v8/V8DOMMap.cpp \
bindings/v8/V8LazyEventListener.cpp \
bindings/v8/V8NodeFilterCondition.cpp \
bindings/v8/V8ObjectEventListener.cpp \
bindings/v8/V8WorkerContextEventListener.cpp \
bindings/v8/V8XMLHttpRequestUtilities.cpp \
bindings/v8/WorkerContextExecutionProxy.cpp \
bindings/v8/WorkerScriptController.cpp \
\
bindings/v8/custom/V8AttrCustom.cpp \
bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp \
bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp \
bindings/v8/custom/V8ClipboardCustom.cpp \
bindings/v8/custom/V8CustomBinding.cpp \
bindings/v8/custom/V8CustomEventListener.cpp \
bindings/v8/custom/V8CustomVoidCallback.cpp \
bindings/v8/custom/V8DOMParserConstructor.cpp \
bindings/v8/custom/V8DOMStringListCustom.cpp \
bindings/v8/custom/V8DOMWindowCustom.cpp \
bindings/v8/custom/V8DocumentCustom.cpp \
bindings/v8/custom/V8ElementCustom.cpp \
bindings/v8/custom/V8EventCustom.cpp \
bindings/v8/custom/V8HTMLCanvasElementCustom.cpp \
bindings/v8/custom/V8HTMLCollectionCustom.cpp \
bindings/v8/custom/V8HTMLDocumentCustom.cpp \
bindings/v8/custom/V8HTMLFormElementCustom.cpp \
bindings/v8/custom/V8HTMLFrameElementCustom.cpp \
bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp \
bindings/v8/custom/V8HTMLIFrameElementCustom.cpp \
bindings/v8/custom/V8HTMLInputElementCustom.cpp \
bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp \
bindings/v8/custom/V8HTMLPlugInElementCustom.cpp \
bindings/v8/custom/V8HTMLSelectElementCustom.cpp \
bindings/v8/custom/V8LocationCustom.cpp \
bindings/v8/custom/V8MessageChannelConstructor.cpp \
bindings/v8/custom/V8NamedNodeMapCustom.cpp \
bindings/v8/custom/V8NamedNodesCollection.cpp \
bindings/v8/custom/V8NavigatorCustom.cpp \
bindings/v8/custom/V8NodeCustom.cpp \
bindings/v8/custom/V8NodeFilterCustom.cpp \
bindings/v8/custom/V8NodeIteratorCustom.cpp \
bindings/v8/custom/V8NodeListCustom.cpp \
bindings/v8/custom/V8DatabaseCustom.cpp \
bindings/v8/custom/V8SQLTransactionCustom.cpp \
bindings/v8/custom/V8CustomSQLStatementCallback.cpp \
bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp \
bindings/v8/custom/V8CustomSQLTransactionCallback.cpp \
bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp \
bindings/v8/custom/V8SQLResultSetRowListCustom.cpp
ifeq ($(ENABLE_SVG), true)
WEBCORE_SRC_FILES := $(WEBCORE_SRC_FILES) \
bindings/v8/custom/V8SVGElementInstanceCustom.cpp \
bindings/v8/custom/V8SVGLengthCustom.cpp \
bindings/v8/custom/V8SVGMatrixCustom.cpp
endif
WEBCORE_SRC_FILES := $(WEBCORE_SRC_FILES) \
bindings/v8/custom/V8StyleSheetListCustom.cpp \
bindings/v8/custom/V8TreeWalkerCustom.cpp \
bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp \
bindings/v8/custom/V8XMLHttpRequestConstructor.cpp \
bindings/v8/custom/V8XMLHttpRequestCustom.cpp \
bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp \
bindings/v8/custom/V8XMLSerializerConstructor.cpp
LOCAL_SRC_FILES := \
v8/V8InitializeThreading.cpp \
v8/JSDOMBinding.cpp \
v8/JSXPathNSResolver.cpp \
v8/NPV8Object.cpp \
v8/RGBColor.cpp \
v8/ScriptController.cpp \
v8/V8CanvasPixelArrayCustom.cpp \
v8/V8MessagePortCustom.cpp \
v8/V8NPObject.cpp \
v8/V8NPUtils.cpp \
v8/V8WorkerContextCustom.cpp \
v8/V8WorkerCustom.cpp \
v8/npruntime.cpp \
v8/v8_binding.cpp \
v8/v8_custom.cpp \
v8/v8_helpers.cpp \
v8/v8_index.cpp \
v8/v8_proxy.cpp \
\
jni/jni_class.cpp \
jni/jni_instance.cpp \
jni/jni_npobject.cpp \
jni/jni_runtime.cpp \
jni/jni_utility.cpp
LOCAL_SHARED_LIBRARIES += libv8
js_binding_scripts := \
$(LOCAL_PATH)/scripts/CodeGenerator.pm \
$(LOCAL_PATH)/scripts/CodeGeneratorV8.pm \
$(LOCAL_PATH)/scripts/IDLParser.pm \
$(WEBCORE_PATH)/bindings/scripts/IDLStructure.pm \
$(LOCAL_PATH)/scripts/generate-bindings.pl
FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 V8_BINDING ENABLE_DATABASE=1
GEN := \
$(intermediates)/css/V8CSSCharsetRule.h \
$(intermediates)/css/V8CSSFontFaceRule.h \
$(intermediates)/css/V8CSSImportRule.h \
$(intermediates)/css/V8CSSMediaRule.h \
$(intermediates)/css/V8CSSPageRule.h \
$(intermediates)/css/V8CSSPrimitiveValue.h \
$(intermediates)/css/V8CSSRule.h \
$(intermediates)/css/V8CSSRuleList.h \
$(intermediates)/css/V8CSSStyleDeclaration.h \
$(intermediates)/css/V8CSSStyleRule.h \
$(intermediates)/css/V8CSSStyleSheet.h \
$(intermediates)/css/V8CSSUnknownRule.h \
$(intermediates)/css/V8CSSValue.h \
$(intermediates)/css/V8CSSValueList.h \
$(intermediates)/css/V8CSSVariablesDeclaration.h \
$(intermediates)/css/V8CSSVariablesRule.h \
$(intermediates)/css/V8Counter.h \
$(intermediates)/css/V8MediaList.h \
$(intermediates)/css/V8Rect.h \
$(intermediates)/css/V8RGBColor.h \
$(intermediates)/css/V8StyleSheet.h \
$(intermediates)/css/V8StyleSheetList.h \
$(intermediates)/css/V8WebKitCSSKeyframeRule.h \
$(intermediates)/css/V8WebKitCSSKeyframesRule.h \
$(intermediates)/css/V8WebKitCSSMatrix.h \
$(intermediates)/css/V8WebKitCSSTransformValue.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include css --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/css/V8%.h : $(WEBCORE_PATH)/css/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/css/%.cpp : $(intermediates)/css/%.h
GEN := \
$(intermediates)/dom/V8Attr.h \
$(intermediates)/dom/V8CDATASection.h \
$(intermediates)/dom/V8CharacterData.h \
$(intermediates)/dom/V8ClientRect.h \
$(intermediates)/dom/V8ClientRectList.h \
$(intermediates)/dom/V8Clipboard.h \
$(intermediates)/dom/V8Comment.h \
$(intermediates)/dom/V8DOMCoreException.h \
$(intermediates)/dom/V8DOMImplementation.h \
$(intermediates)/dom/V8DOMStringList.h \
$(intermediates)/dom/V8Document.h \
$(intermediates)/dom/V8DocumentFragment.h \
$(intermediates)/dom/V8DocumentType.h \
$(intermediates)/dom/V8Element.h \
$(intermediates)/dom/V8Entity.h \
$(intermediates)/dom/V8EntityReference.h \
$(intermediates)/dom/V8Event.h \
$(intermediates)/dom/V8EventException.h \
$(intermediates)/dom/V8KeyboardEvent.h \
$(intermediates)/dom/V8MessageChannel.h \
$(intermediates)/dom/V8MessageEvent.h \
$(intermediates)/dom/V8MessagePort.h \
$(intermediates)/dom/V8MouseEvent.h \
$(intermediates)/dom/V8MutationEvent.h \
$(intermediates)/dom/V8NamedNodeMap.h \
$(intermediates)/dom/V8Node.h \
$(intermediates)/dom/V8NodeFilter.h \
$(intermediates)/dom/V8NodeIterator.h \
$(intermediates)/dom/V8NodeList.h \
$(intermediates)/dom/V8Notation.h \
$(intermediates)/dom/V8OverflowEvent.h \
$(intermediates)/dom/V8ProcessingInstruction.h \
$(intermediates)/dom/V8ProgressEvent.h \
$(intermediates)/dom/V8Range.h \
$(intermediates)/dom/V8RangeException.h \
$(intermediates)/dom/V8Text.h \
$(intermediates)/dom/V8TextEvent.h \
$(intermediates)/dom/V8Touch.h \
$(intermediates)/dom/V8TouchEvent.h \
$(intermediates)/dom/V8TouchList.h \
$(intermediates)/dom/V8TreeWalker.h \
$(intermediates)/dom/V8UIEvent.h \
$(intermediates)/dom/V8WebKitAnimationEvent.h \
$(intermediates)/dom/V8WebKitTransitionEvent.h \
$(intermediates)/dom/V8WheelEvent.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/dom/V8%.h : $(WEBCORE_PATH)/dom/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/dom/%.cpp : $(intermediates)/dom/%.h
GEN := \
$(intermediates)/html/V8CanvasGradient.h \
$(intermediates)/html/V8CanvasPattern.h \
$(intermediates)/html/V8CanvasPixelArray.h \
$(intermediates)/html/V8CanvasRenderingContext2D.h \
$(intermediates)/html/V8File.h \
$(intermediates)/html/V8FileList.h \
$(intermediates)/html/V8HTMLAnchorElement.h \
$(intermediates)/html/V8HTMLAppletElement.h \
$(intermediates)/html/V8HTMLAreaElement.h \
$(intermediates)/html/V8HTMLBRElement.h \
$(intermediates)/html/V8HTMLBaseElement.h \
$(intermediates)/html/V8HTMLBaseFontElement.h \
$(intermediates)/html/V8HTMLBlockquoteElement.h \
$(intermediates)/html/V8HTMLBodyElement.h \
$(intermediates)/html/V8HTMLButtonElement.h \
$(intermediates)/html/V8HTMLCanvasElement.h \
$(intermediates)/html/V8HTMLCollection.h \
$(intermediates)/html/V8HTMLDListElement.h \
$(intermediates)/html/V8HTMLDirectoryElement.h \
$(intermediates)/html/V8HTMLDivElement.h \
$(intermediates)/html/V8HTMLDocument.h \
$(intermediates)/html/V8HTMLElement.h \
$(intermediates)/html/V8HTMLEmbedElement.h \
$(intermediates)/html/V8HTMLFieldSetElement.h \
$(intermediates)/html/V8HTMLFontElement.h \
$(intermediates)/html/V8HTMLFormElement.h \
$(intermediates)/html/V8HTMLFrameElement.h \
$(intermediates)/html/V8HTMLFrameSetElement.h \
$(intermediates)/html/V8HTMLHRElement.h \
$(intermediates)/html/V8HTMLHeadElement.h \
$(intermediates)/html/V8HTMLHeadingElement.h \
$(intermediates)/html/V8HTMLHtmlElement.h \
$(intermediates)/html/V8HTMLIFrameElement.h \
$(intermediates)/html/V8HTMLImageElement.h \
$(intermediates)/html/V8HTMLInputElement.h \
$(intermediates)/html/V8HTMLIsIndexElement.h \
$(intermediates)/html/V8HTMLLIElement.h \
$(intermediates)/html/V8HTMLLabelElement.h \
$(intermediates)/html/V8HTMLLegendElement.h \
$(intermediates)/html/V8HTMLLinkElement.h \
$(intermediates)/html/V8HTMLMapElement.h \
$(intermediates)/html/V8HTMLMarqueeElement.h \
$(intermediates)/html/V8HTMLMenuElement.h \
$(intermediates)/html/V8HTMLMetaElement.h \
$(intermediates)/html/V8HTMLModElement.h \
$(intermediates)/html/V8HTMLOListElement.h \
$(intermediates)/html/V8HTMLObjectElement.h \
$(intermediates)/html/V8HTMLOptGroupElement.h \
$(intermediates)/html/V8HTMLOptionElement.h \
$(intermediates)/html/V8HTMLOptionsCollection.h \
$(intermediates)/html/V8HTMLParagraphElement.h \
$(intermediates)/html/V8HTMLParamElement.h \
$(intermediates)/html/V8HTMLPreElement.h \
$(intermediates)/html/V8HTMLQuoteElement.h \
$(intermediates)/html/V8HTMLScriptElement.h \
$(intermediates)/html/V8HTMLSelectElement.h \
$(intermediates)/html/V8HTMLSourceElement.h \
$(intermediates)/html/V8HTMLStyleElement.h \
$(intermediates)/html/V8HTMLTableCaptionElement.h \
$(intermediates)/html/V8HTMLTableCellElement.h \
$(intermediates)/html/V8HTMLTableColElement.h \
$(intermediates)/html/V8HTMLTableElement.h \
$(intermediates)/html/V8HTMLTableRowElement.h \
$(intermediates)/html/V8HTMLTableSectionElement.h \
$(intermediates)/html/V8HTMLTextAreaElement.h \
$(intermediates)/html/V8HTMLTitleElement.h \
$(intermediates)/html/V8HTMLUListElement.h \
$(intermediates)/html/V8HTMLVideoElement.h \
$(intermediates)/html/V8ImageData.h \
$(intermediates)/html/V8MediaError.h \
$(intermediates)/html/V8TextMetrics.h \
$(intermediates)/html/V8TimeRanges.h \
$(intermediates)/html/V8VoidCallback.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/html/V8%.h : $(WEBCORE_PATH)/html/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h
GEN := \
$(intermediates)/page/V8BarInfo.h \
$(intermediates)/page/V8Console.h \
$(intermediates)/page/V8Coordinates.h \
$(intermediates)/page/V8DOMSelection.h \
$(intermediates)/page/V8DOMWindow.h \
$(intermediates)/page/V8Geolocation.h \
$(intermediates)/page/V8Geoposition.h \
$(intermediates)/page/V8History.h \
$(intermediates)/page/V8Location.h \
$(intermediates)/page/V8Navigator.h \
$(intermediates)/page/V8PositionError.h \
$(intermediates)/page/V8PositionErrorCallback.h \
$(intermediates)/page/V8Screen.h \
$(intermediates)/page/V8WebKitPoint.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/page/V8%.h : $(WEBCORE_PATH)/page/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/page/%.cpp : $(intermediates)/page/%.h
GEN := \
$(intermediates)/plugins/V8MimeType.h \
$(intermediates)/plugins/V8MimeTypeArray.h \
$(intermediates)/plugins/V8Plugin.h \
$(intermediates)/plugins/V8PluginArray.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/plugins/V8%.h : $(WEBCORE_PATH)/plugins/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/plugins/%.cpp : $(intermediates)/plugins/%.h
# Database support
GEN := \
$(intermediates)/storage/V8Database.h \
$(intermediates)/storage/V8SQLError.h \
$(intermediates)/storage/V8SQLResultSet.h \
$(intermediates)/storage/V8SQLResultSetRowList.h \
$(intermediates)/storage/V8SQLTransaction.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/storage/V8%.h : $(WEBCORE_PATH)/storage/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
#new section for svg
ifeq ($(ENABLE_SVG), true)
GEN := \
$(intermediates)/svg/V8SVGAElement.h \
$(intermediates)/svg/V8SVGAltGlyphElement.h \
$(intermediates)/svg/V8SVGAngle.h \
$(intermediates)/svg/V8SVGCircleElement.h \
$(intermediates)/svg/V8SVGClipPathElement.h \
$(intermediates)/svg/V8SVGColor.h \
$(intermediates)/svg/V8SVGComponentTransferFunctionElement.h \
$(intermediates)/svg/V8SVGCursorElement.h \
$(intermediates)/svg/V8SVGDefinitionSrcElement.h \
$(intermediates)/svg/V8SVGDefsElement.h \
$(intermediates)/svg/V8SVGDescElement.h \
$(intermediates)/svg/V8SVGDocument.h \
$(intermediates)/svg/V8SVGElement.h \
$(intermediates)/svg/V8SVGElementInstance.h \
$(intermediates)/svg/V8SVGElementInstanceList.h \
$(intermediates)/svg/V8SVGEllipseElement.h \
$(intermediates)/svg/V8SVGException.h \
$(intermediates)/svg/V8SVGFEBlendElement.h \
$(intermediates)/svg/V8SVGFEColorMatrixElement.h \
$(intermediates)/svg/V8SVGFEComponentTransferElement.h \
$(intermediates)/svg/V8SVGFECompositeElement.h \
$(intermediates)/svg/V8SVGFEDiffuseLightingElement.h \
$(intermediates)/svg/V8SVGFEDisplacementMapElement.h \
$(intermediates)/svg/V8SVGFEDistantLightElement.h \
$(intermediates)/svg/V8SVGFEFloodElement.h \
$(intermediates)/svg/V8SVGFEFuncAElement.h \
$(intermediates)/svg/V8SVGFEFuncBElement.h \
$(intermediates)/svg/V8SVGFEFuncGElement.h \
$(intermediates)/svg/V8SVGFEFuncRElement.h \
$(intermediates)/svg/V8SVGFEGaussianBlurElement.h \
$(intermediates)/svg/V8SVGFEImageElement.h \
$(intermediates)/svg/V8SVGFEMergeElement.h \
$(intermediates)/svg/V8SVGFEMergeNodeElement.h \
$(intermediates)/svg/V8SVGFEOffsetElement.h \
$(intermediates)/svg/V8SVGFEPointLightElement.h \
$(intermediates)/svg/V8SVGFESpecularLightingElement.h \
$(intermediates)/svg/V8SVGFESpotLightElement.h \
$(intermediates)/svg/V8SVGFETileElement.h \
$(intermediates)/svg/V8SVGFETurbulenceElement.h \
$(intermediates)/svg/V8SVGFilterElement.h \
$(intermediates)/svg/V8SVGFontElement.h \
$(intermediates)/svg/V8SVGFontFaceElement.h \
$(intermediates)/svg/V8SVGFontFaceFormatElement.h \
$(intermediates)/svg/V8SVGFontFaceNameElement.h \
$(intermediates)/svg/V8SVGFontFaceSrcElement.h \
$(intermediates)/svg/V8SVGFontFaceUriElement.h \
$(intermediates)/svg/V8SVGForeignObjectElement.h \
$(intermediates)/svg/V8SVGGElement.h \
$(intermediates)/svg/V8SVGGlyphElement.h \
$(intermediates)/svg/V8SVGGradientElement.h \
$(intermediates)/svg/V8SVGHKernElement.h \
$(intermediates)/svg/V8SVGImageElement.h \
$(intermediates)/svg/V8SVGLength.h \
$(intermediates)/svg/V8SVGLengthList.h \
$(intermediates)/svg/V8SVGLineElement.h \
$(intermediates)/svg/V8SVGLinearGradientElement.h \
$(intermediates)/svg/V8SVGMarkerElement.h \
$(intermediates)/svg/V8SVGMaskElement.h \
$(intermediates)/svg/V8SVGMatrix.h \
$(intermediates)/svg/V8SVGMetadataElement.h \
$(intermediates)/svg/V8SVGMissingGlyphElement.h \
$(intermediates)/svg/V8SVGNumber.h \
$(intermediates)/svg/V8SVGNumberList.h \
$(intermediates)/svg/V8SVGPaint.h \
$(intermediates)/svg/V8SVGPathElement.h \
$(intermediates)/svg/V8SVGPathSeg.h \
$(intermediates)/svg/V8SVGPathSegArcAbs.h \
$(intermediates)/svg/V8SVGPathSegArcRel.h \
$(intermediates)/svg/V8SVGPathSegClosePath.h \
$(intermediates)/svg/V8SVGPathSegCurvetoCubicAbs.h \
$(intermediates)/svg/V8SVGPathSegCurvetoCubicRel.h \
$(intermediates)/svg/V8SVGPathSegCurvetoCubicSmoothAbs.h \
$(intermediates)/svg/V8SVGPathSegCurvetoCubicSmoothRel.h \
$(intermediates)/svg/V8SVGPathSegCurvetoQuadraticAbs.h \
$(intermediates)/svg/V8SVGPathSegCurvetoQuadraticRel.h \
$(intermediates)/svg/V8SVGPathSegCurvetoQuadraticSmoothAbs.h \
$(intermediates)/svg/V8SVGPathSegCurvetoQuadraticSmoothRel.h \
$(intermediates)/svg/V8SVGPathSegLinetoAbs.h \
$(intermediates)/svg/V8SVGPathSegLinetoHorizontalAbs.h \
$(intermediates)/svg/V8SVGPathSegLinetoHorizontalRel.h \
$(intermediates)/svg/V8SVGPathSegLinetoRel.h \
$(intermediates)/svg/V8SVGPathSegLinetoVerticalAbs.h \
$(intermediates)/svg/V8SVGPathSegLinetoVerticalRel.h \
$(intermediates)/svg/V8SVGPathSegList.h \
$(intermediates)/svg/V8SVGPathSegMovetoAbs.h \
$(intermediates)/svg/V8SVGPathSegMovetoRel.h \
$(intermediates)/svg/V8SVGPatternElement.h \
$(intermediates)/svg/V8SVGPoint.h \
$(intermediates)/svg/V8SVGPointList.h \
$(intermediates)/svg/V8SVGPolygonElement.h \
$(intermediates)/svg/V8SVGPolylineElement.h \
$(intermediates)/svg/V8SVGPreserveAspectRatio.h \
$(intermediates)/svg/V8SVGRadialGradientElement.h \
$(intermediates)/svg/V8SVGRect.h \
$(intermediates)/svg/V8SVGRectElement.h \
$(intermediates)/svg/V8SVGRenderingIntent.h \
$(intermediates)/svg/V8SVGSVGElement.h \
$(intermediates)/svg/V8SVGScriptElement.h \
$(intermediates)/svg/V8SVGStopElement.h \
$(intermediates)/svg/V8SVGStringList.h \
$(intermediates)/svg/V8SVGStyleElement.h \
$(intermediates)/svg/V8SVGSwitchElement.h \
$(intermediates)/svg/V8SVGSymbolElement.h \
$(intermediates)/svg/V8SVGTRefElement.h \
$(intermediates)/svg/V8SVGTSpanElement.h \
$(intermediates)/svg/V8SVGTextContentElement.h \
$(intermediates)/svg/V8SVGTextElement.h \
$(intermediates)/svg/V8SVGTextPathElement.h \
$(intermediates)/svg/V8SVGTextPositioningElement.h \
$(intermediates)/svg/V8SVGTitleElement.h \
$(intermediates)/svg/V8SVGTransform.h \
$(intermediates)/svg/V8SVGTransformList.h \
$(intermediates)/svg/V8SVGURIReference.h \
$(intermediates)/svg/V8SVGUnitTypes.h \
$(intermediates)/svg/V8SVGUseElement.h \
$(intermediates)/svg/V8SVGViewElement.h \
$(intermediates)/svg/V8SVGZoomEvent.h \
\
$(intermediates)/svg/V8SVGAnimatedAngle.h \
$(intermediates)/svg/V8SVGAnimatedEnumeration.h \
$(intermediates)/svg/V8SVGAnimatedBoolean.h \
$(intermediates)/svg/V8SVGAnimatedInteger.h \
$(intermediates)/svg/V8SVGAnimatedLength.h \
$(intermediates)/svg/V8SVGAnimatedLengthList.h \
$(intermediates)/svg/V8SVGAnimatedNumber.h \
$(intermediates)/svg/V8SVGAnimatedNumberList.h \
$(intermediates)/svg/V8SVGAnimatedPoints.h \
$(intermediates)/svg/V8SVGAnimatedPreserveAspectRatio.h \
$(intermediates)/svg/V8SVGAnimatedRect.h \
$(intermediates)/svg/V8SVGAnimatedString.h \
$(intermediates)/svg/V8SVGAnimatedTransformList.h
ifeq ($(ENABLE_SVG_ANIMATION), true)
GEN += \
$(intermediates)/svg/V8SVGAnimateColorElement.h \
$(intermediates)/svg/V8SVGAnimateElement.h \
$(intermediates)/svg/V8SVGAnimateTransformElement.h \
$(intermediates)/svg/V8SVGAnimationElement.h \
$(intermediates)/svg/V8SVGSetElement.h
endif
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include css --include dom --include html --include svg --outputdir $(dir $@) $<
$(GEN): $(intermediates)/svg/V8%.h : $(WEBCORE_PATH)/svg/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/svg/%.cpp : $(intermediates)/svg/%.h
endif
#new section for xml/DOMParser.idl
GEN := \
$(intermediates)/xml/V8DOMParser.h \
$(intermediates)/xml/V8XMLHttpRequest.h \
$(intermediates)/xml/V8XMLHttpRequestException.h \
$(intermediates)/xml/V8XMLHttpRequestProgressEvent.h \
$(intermediates)/xml/V8XMLHttpRequestUpload.h \
$(intermediates)/xml/V8XMLSerializer.h
# $(intermediates)/xml/V8XPathEvaluator.h \
$(intermediates)/xml/V8XPathException.h \
$(intermediates)/xml/V8XPathExpression.h \
$(intermediates)/xml/V8XPathNSResolver.h \
$(intermediates)/xml/V8XPathResult.h \
$(intermediates)/xml/V8XSLTProcessor.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/xml/V8%.h : $(WEBCORE_PATH)/xml/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/xml/%.cpp : $(intermediates)/xml/%.h
#end
#new section for UndetectableHTMLCollection
GEN := \
$(intermediates)/html/V8UndetectableHTMLCollection.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/html/V8%.h : $(v8binding_dir)/v8/%.idl $(js_binding_scripts)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# We also need the .cpp files, which are generated as side effects of the
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h
#end
# HTML tag and attribute names
GEN:= $(intermediates)/HTMLNames.cpp $(intermediates)/HTMLElementFactory.cpp
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
$(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(WEBCORE_PATH)/bindings/scripts $< --tags $(html_tags) --attrs $(html_attrs) --factory --wrapperFactory --output $(dir $@)
$(GEN): html_tags := $(WEBCORE_PATH)/html/HTMLTagNames.in
$(GEN): html_attrs := $(WEBCORE_PATH)/html/HTMLAttributeNames.in
$(GEN): $(WEBCORE_PATH)/dom/make_names.pl $(html_tags) $(html_attrs)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)
# SVG tag and attribute names
ifeq ($(ENABLE_SVG), true)
GEN:= $(intermediates)/SVGNames.cpp $(intermediates)/SVGElementFactory.cpp
SVG_FLAGS:=ENABLE_SVG_AS_IMAGE=1 ENABLE_SVG_FILTERS=1 ENABLE_SVG_FONTS=1 ENABLE_SVG_FOREIGN_OBJECT=1 ENABLE_SVG_USE=1
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
$(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(WEBCORE_PATH)/bindings/scripts $< --tags $(svg_tags) --attrs $(svg_attrs) --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory --output $(dir $@)
$(GEN): svg_tags := $(WEBCORE_PATH)/svg/svgtags.in
$(GEN): svg_attrs := $(WEBCORE_PATH)/svg/svgattrs.in
$(GEN): $(WEBCORE_PATH)/dom/make_names.pl $(svg_tags) $(svg_attrs)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)
endif
# XLink attribute names
ifeq ($(ENABLE_SVG), true)
GEN:= $(intermediates)/XLinkNames.cpp
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
$(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(WEBCORE_PATH)/bindings/scripts $< --attrs $(xlink_attrs) --output $(dir $@)
$(GEN): xlink_attrs := $(WEBCORE_PATH)/svg/xlinkattrs.in
$(GEN): $(WEBCORE_PATH)/dom/make_names.pl $(xlink_attrs)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)
endif