2009-12-08 Steve Block <steveblock@google.com>
[WebKit-https.git] / WebCore / Android.derived.jscbindings.mk
1 ##
2 ## Copyright 2009, The Android Open Source Project
3 ##
4 ## Redistribution and use in source and binary forms, with or without
5 ## modification, are permitted provided that the following conditions
6 ## are met:
7 ##  * Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ##  * Redistributions in binary form must reproduce the above copyright
10 ##    notice, this list of conditions and the following disclaimer in the
11 ##    documentation and/or other materials provided with the distribution.
12 ##
13 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
14 ## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 ## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 ##
25
26 # lookup tables for old-style JavaScript bindings
27 create_hash_table := $(LOCAL_PATH)/../JavaScriptCore/create_hash_table
28
29 GEN := $(addprefix $(intermediates)/, \
30                         bindings/js/JSDOMWindowBase.lut.h \
31                 )
32 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
33 $(GEN): $(intermediates)/bindings/js/%.lut.h: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
34         $(transform-generated-source)
35 LOCAL_GENERATED_SOURCES += $(GEN)
36
37
38 GEN := $(intermediates)/bindings/js/JSHTMLInputElementBaseTable.cpp
39 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
40 $(GEN): $(intermediates)/bindings/js/%Table.cpp: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
41         $(transform-generated-source)
42 $(intermediates)/bindings/js/JSHTMLInputElementBase.o : $(GEN)
43
44 # lookup tables for old-style JavaScript bindings
45 js_binding_scripts := $(addprefix $(LOCAL_PATH)/,\
46                         bindings/scripts/CodeGenerator.pm \
47                         bindings/scripts/IDLParser.pm \
48                         bindings/scripts/IDLStructure.pm \
49                         bindings/scripts/generate-bindings.pl \
50                 )
51
52 FEATURE_DEFINES := ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1 ENABLE_GEOLOCATION=1 ENABLE_CHANNEL_MESSAGING=1
53
54 GEN := \
55     $(intermediates)/css/JSCSSCharsetRule.h \
56     $(intermediates)/css/JSCSSFontFaceRule.h \
57     $(intermediates)/css/JSCSSImportRule.h \
58     $(intermediates)/css/JSCSSMediaRule.h \
59     $(intermediates)/css/JSCSSPageRule.h \
60     $(intermediates)/css/JSCSSPrimitiveValue.h \
61     $(intermediates)/css/JSCSSRule.h \
62     $(intermediates)/css/JSCSSRuleList.h \
63     $(intermediates)/css/JSCSSStyleDeclaration.h \
64     $(intermediates)/css/JSCSSStyleRule.h \
65     $(intermediates)/css/JSCSSStyleSheet.h \
66     $(intermediates)/css/JSCSSUnknownRule.h \
67     $(intermediates)/css/JSCSSValue.h \
68     $(intermediates)/css/JSCSSValueList.h \
69     $(intermediates)/css/JSCSSVariablesDeclaration.h \
70     $(intermediates)/css/JSCSSVariablesRule.h \
71     $(intermediates)/css/JSCounter.h \
72     $(intermediates)/css/JSMedia.h \
73     $(intermediates)/css/JSMediaList.h \
74     $(intermediates)/css/JSRGBColor.h \
75     $(intermediates)/css/JSRect.h \
76     $(intermediates)/css/JSStyleSheet.h \
77     $(intermediates)/css/JSStyleSheetList.h \
78     $(intermediates)/css/JSWebKitCSSKeyframeRule.h \
79     $(intermediates)/css/JSWebKitCSSKeyframesRule.h \
80     $(intermediates)/css/JSWebKitCSSMatrix.h \
81     $(intermediates)/css/JSWebKitCSSTransformValue.h
82 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
83 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
84 $(GEN): $(intermediates)/css/JS%.h : $(LOCAL_PATH)/css/%.idl $(js_binding_scripts)
85         $(transform-generated-source)
86 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
87
88
89 # We also need the .cpp files, which are generated as side effects of the
90 # above rules.  Specifying this explicitly makes -j2 work.
91 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/css/%.cpp : $(intermediates)/css/%.h
92
93 # MANUAL MERGE : I took this out because compiling the result shows:
94 # out/.../JSEventTarget.cpp: In function 'JSC::JSValue* WebCore::jsEventTargetPrototypeFunctionAddEventListener(JSC::ExecState*, JSC::JSObject*, JSC::JSValue*, const JSC::ArgList&)':
95 # out/.../JSEventTarget.cpp:90: error: 'toEventListener' was not declared in this scope
96 # but I can't find toEventListener anywhere, nor can I figure out how toEventListener
97 # is generated
98 #    $(intermediates)/dom/JSEventTarget.h \
99
100 GEN := \
101     $(intermediates)/dom/JSAttr.h \
102     $(intermediates)/dom/JSBeforeLoadEvent.h \
103     $(intermediates)/dom/JSCDATASection.h \
104     $(intermediates)/dom/JSCharacterData.h \
105     $(intermediates)/dom/JSClientRect.h \
106     $(intermediates)/dom/JSClientRectList.h \
107     $(intermediates)/dom/JSClipboard.h \
108     $(intermediates)/dom/JSComment.h \
109     $(intermediates)/dom/JSDOMCoreException.h \
110     $(intermediates)/dom/JSDOMImplementation.h \
111     $(intermediates)/dom/JSDocument.h \
112     $(intermediates)/dom/JSDocumentFragment.h \
113     $(intermediates)/dom/JSDocumentType.h \
114     $(intermediates)/dom/JSElement.h \
115     $(intermediates)/dom/JSEntity.h \
116     $(intermediates)/dom/JSEntityReference.h \
117     $(intermediates)/dom/JSErrorEvent.h \
118     $(intermediates)/dom/JSEvent.h \
119     $(intermediates)/dom/JSEventException.h \
120     $(intermediates)/dom/JSKeyboardEvent.h \
121     $(intermediates)/dom/JSMessageChannel.h \
122     $(intermediates)/dom/JSMessageEvent.h \
123     $(intermediates)/dom/JSMessagePort.h \
124     $(intermediates)/dom/JSMouseEvent.h \
125     $(intermediates)/dom/JSMutationEvent.h \
126     $(intermediates)/dom/JSNamedNodeMap.h \
127     $(intermediates)/dom/JSNode.h \
128     $(intermediates)/dom/JSNodeFilter.h \
129     $(intermediates)/dom/JSNodeIterator.h \
130     $(intermediates)/dom/JSNodeList.h \
131     $(intermediates)/dom/JSNotation.h \
132     $(intermediates)/dom/JSOverflowEvent.h \
133     $(intermediates)/dom/JSPageTransitionEvent.h \
134     $(intermediates)/dom/JSProcessingInstruction.h \
135     $(intermediates)/dom/JSProgressEvent.h \
136     $(intermediates)/dom/JSRange.h \
137     $(intermediates)/dom/JSRangeException.h \
138     $(intermediates)/dom/JSText.h \
139     $(intermediates)/dom/JSTextEvent.h \
140     $(intermediates)/dom/JSTreeWalker.h \
141     $(intermediates)/dom/JSUIEvent.h \
142     $(intermediates)/dom/JSWebKitAnimationEvent.h \
143     $(intermediates)/dom/JSWebKitTransitionEvent.h \
144     $(intermediates)/dom/JSWheelEvent.h
145 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
146 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
147 $(GEN): $(intermediates)/dom/JS%.h : $(LOCAL_PATH)/dom/%.idl $(js_binding_scripts)
148         $(transform-generated-source)
149 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
150
151 # We also need the .cpp files, which are generated as side effects of the
152 # above rules.  Specifying this explicitly makes -j2 work.
153 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/dom/%.cpp : $(intermediates)/dom/%.h
154
155
156 GEN := \
157     $(intermediates)/html/JSDataGridColumn.h \
158     $(intermediates)/html/JSDataGridColumnList.h \
159     $(intermediates)/html/JSFile.h \
160     $(intermediates)/html/JSFileList.h \
161     $(intermediates)/html/JSHTMLAllCollection.h \
162     $(intermediates)/html/JSHTMLAnchorElement.h \
163     $(intermediates)/html/JSHTMLAppletElement.h \
164     $(intermediates)/html/JSHTMLAreaElement.h \
165     $(intermediates)/html/JSHTMLAudioElement.h \
166     $(intermediates)/html/JSHTMLBRElement.h \
167     $(intermediates)/html/JSHTMLBaseElement.h \
168     $(intermediates)/html/JSHTMLBaseFontElement.h \
169     $(intermediates)/html/JSHTMLBlockquoteElement.h \
170     $(intermediates)/html/JSHTMLBodyElement.h \
171     $(intermediates)/html/JSHTMLButtonElement.h \
172     $(intermediates)/html/JSHTMLCanvasElement.h \
173     $(intermediates)/html/JSHTMLCollection.h \
174     $(intermediates)/html/JSHTMLDataGridElement.h \
175     $(intermediates)/html/JSHTMLDataGridCellElement.h \
176     $(intermediates)/html/JSHTMLDataGridColElement.h \
177     $(intermediates)/html/JSHTMLDataGridRowElement.h \
178     $(intermediates)/html/JSHTMLDataListElement.h \
179     $(intermediates)/html/JSHTMLDListElement.h \
180     $(intermediates)/html/JSHTMLDirectoryElement.h \
181     $(intermediates)/html/JSHTMLDivElement.h \
182     $(intermediates)/html/JSHTMLDocument.h \
183     $(intermediates)/html/JSHTMLElement.h \
184     $(intermediates)/html/JSHTMLEmbedElement.h \
185     $(intermediates)/html/JSHTMLFieldSetElement.h \
186     $(intermediates)/html/JSHTMLFontElement.h \
187     $(intermediates)/html/JSHTMLFormElement.h \
188     $(intermediates)/html/JSHTMLFrameElement.h \
189     $(intermediates)/html/JSHTMLFrameSetElement.h \
190     $(intermediates)/html/JSHTMLHRElement.h \
191     $(intermediates)/html/JSHTMLHeadElement.h \
192     $(intermediates)/html/JSHTMLHeadingElement.h \
193     $(intermediates)/html/JSHTMLHtmlElement.h \
194     $(intermediates)/html/JSHTMLIFrameElement.h \
195     $(intermediates)/html/JSHTMLImageElement.h \
196     $(intermediates)/html/JSHTMLInputElement.h \
197     $(intermediates)/html/JSHTMLIsIndexElement.h \
198     $(intermediates)/html/JSHTMLLIElement.h \
199     $(intermediates)/html/JSHTMLLabelElement.h \
200     $(intermediates)/html/JSHTMLLegendElement.h \
201     $(intermediates)/html/JSHTMLLinkElement.h \
202     $(intermediates)/html/JSHTMLMapElement.h \
203     $(intermediates)/html/JSHTMLMarqueeElement.h \
204     $(intermediates)/html/JSHTMLMediaElement.h \
205     $(intermediates)/html/JSHTMLMenuElement.h \
206     $(intermediates)/html/JSHTMLMetaElement.h \
207     $(intermediates)/html/JSHTMLModElement.h \
208     $(intermediates)/html/JSHTMLOListElement.h \
209     $(intermediates)/html/JSHTMLObjectElement.h \
210     $(intermediates)/html/JSHTMLOptGroupElement.h \
211     $(intermediates)/html/JSHTMLOptionElement.h \
212     $(intermediates)/html/JSHTMLOptionsCollection.h \
213     $(intermediates)/html/JSHTMLParagraphElement.h \
214     $(intermediates)/html/JSHTMLParamElement.h \
215     $(intermediates)/html/JSHTMLPreElement.h \
216     $(intermediates)/html/JSHTMLQuoteElement.h \
217     $(intermediates)/html/JSHTMLScriptElement.h \
218     $(intermediates)/html/JSHTMLSelectElement.h \
219     $(intermediates)/html/JSHTMLSourceElement.h \
220     $(intermediates)/html/JSHTMLStyleElement.h \
221     $(intermediates)/html/JSHTMLTableCaptionElement.h \
222     $(intermediates)/html/JSHTMLTableCellElement.h \
223     $(intermediates)/html/JSHTMLTableColElement.h \
224     $(intermediates)/html/JSHTMLTableElement.h \
225     $(intermediates)/html/JSHTMLTableRowElement.h \
226     $(intermediates)/html/JSHTMLTableSectionElement.h \
227     $(intermediates)/html/JSHTMLTextAreaElement.h \
228     $(intermediates)/html/JSHTMLTitleElement.h \
229     $(intermediates)/html/JSHTMLUListElement.h \
230     $(intermediates)/html/JSHTMLVideoElement.h \
231     $(intermediates)/html/JSImageData.h \
232     $(intermediates)/html/JSMediaError.h \
233     $(intermediates)/html/JSTextMetrics.h \
234     $(intermediates)/html/JSTimeRanges.h \
235     $(intermediates)/html/JSValidityState.h \
236     $(intermediates)/html/JSVoidCallback.h
237
238 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
239 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
240 $(GEN): $(intermediates)/html/JS%.h : $(LOCAL_PATH)/html/%.idl $(js_binding_scripts)
241         $(transform-generated-source)
242 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
243
244 # We also need the .cpp files, which are generated as side effects of the
245 # above rules.  Specifying this explicitly makes -j2 work.
246 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h
247
248 GEN := \
249     $(intermediates)/html/canvas/JSCanvasGradient.h \
250     $(intermediates)/html/canvas/JSCanvasNumberArray.h \
251     $(intermediates)/html/canvas/JSCanvasPattern.h \
252     $(intermediates)/html/canvas/JSCanvasRenderingContext.h \
253     $(intermediates)/html/canvas/JSCanvasRenderingContext2D.h
254
255 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
256 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
257 $(GEN): $(intermediates)/html/canvas/JS%.h : $(LOCAL_PATH)/html/canvas/%.idl $(js_binding_scripts)
258         $(transform-generated-source)
259 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
260
261 # We also need the .cpp files, which are generated as side effects of the
262 # above rules.  Specifying this explicitly makes -j2 work.
263 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/canvas/%.cpp : $(intermediates)/html/canvas/%.h
264
265 GEN := \
266     $(intermediates)/loader/appcache/JSDOMApplicationCache.h
267
268 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
269 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
270 $(GEN): $(intermediates)/loader/appcache/JS%.h : $(LOCAL_PATH)/loader/appcache/%.idl $(js_binding_scripts)
271         $(transform-generated-source)
272 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
273
274 # We also need the .cpp files, which are generated as side effects of the
275 # above rules.  Specifying this explicitly makes -j2 work.
276 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/loader/appcache/%.cpp : $(intermediates)/loader/appcache/%.h
277
278 # MANUAL MERGE : I took this out because compiling the result shows:
279 # out/.../JSAbstractView.cpp:27:26: error: AbstractView.h: No such file or directory
280 # I can't find AbstractView.h anywhere
281 #    $(intermediates)/page/JSAbstractView.h \
282
283 GEN := \
284     $(intermediates)/page/JSBarInfo.h \
285     $(intermediates)/page/JSConsole.h \
286     $(intermediates)/page/JSCoordinates.h \
287     $(intermediates)/page/JSDOMSelection.h \
288     $(intermediates)/page/JSDOMWindow.h \
289     $(intermediates)/page/JSGeolocation.h \
290     $(intermediates)/page/JSGeoposition.h \
291     $(intermediates)/page/JSHistory.h \
292     $(intermediates)/page/JSLocation.h \
293     $(intermediates)/page/JSNavigator.h \
294     $(intermediates)/page/JSPositionError.h \
295     $(intermediates)/page/JSScreen.h \
296     $(intermediates)/page/JSWebKitPoint.h \
297     $(intermediates)/page/JSWorkerNavigator.h
298
299 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
300 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
301 $(GEN): $(intermediates)/page/JS%.h : $(LOCAL_PATH)/page/%.idl $(js_binding_scripts)
302         $(transform-generated-source)
303 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
304
305 # We also need the .cpp files, which are generated as side effects of the
306 # above rules.  Specifying this explicitly makes -j2 work.
307 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/page/%.cpp : $(intermediates)/page/%.h
308
309 GEN := \
310     $(intermediates)/plugins/JSMimeType.h \
311     $(intermediates)/plugins/JSMimeTypeArray.h \
312     $(intermediates)/plugins/JSPlugin.h \
313     $(intermediates)/plugins/JSPluginArray.h
314
315 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
316 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
317 $(GEN): $(intermediates)/plugins/JS%.h : $(LOCAL_PATH)/plugins/%.idl $(js_binding_scripts)
318         $(transform-generated-source)
319 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
320
321 # We also need the .cpp files, which are generated as side effects of the
322 # above rules.  Specifying this explicitly makes -j2 work.
323 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/plugins/%.cpp : $(intermediates)/plugins/%.h
324
325 # New section for Database storage API
326 GEN := \
327     $(intermediates)/storage/JSDatabase.h \
328     $(intermediates)/storage/JSSQLError.h \
329     $(intermediates)/storage/JSSQLResultSet.h \
330     $(intermediates)/storage/JSSQLResultSetRowList.h \
331     $(intermediates)/storage/JSSQLTransaction.h
332
333 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
334 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
335 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
336         $(transform-generated-source)
337 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
338
339 # We also need the .cpp files, which are generated as side effects of the
340 # above rules.  Specifying this explicitly makes -j2 work.
341 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
342
343 # new section for DOM Storage APIs
344 GEN := \
345     $(intermediates)/storage/JSStorage.h \
346     $(intermediates)/storage/JSStorageEvent.h
347
348 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
349 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
350 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
351         $(transform-generated-source)
352 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
353
354 # We also need the .cpp files, which are generated as side effects of the
355 # above rules.  Specifying this explicitly makes -j2 work.
356 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
357
358 #new section for svg
359 ifeq ($(ENABLE_SVG), true)
360 GEN := \
361     $(intermediates)/svg/JSSVGAElement.h \
362     $(intermediates)/svg/JSSVGAltGlyphElement.h \
363     $(intermediates)/svg/JSSVGAngle.h \
364     $(intermediates)/svg/JSSVGAnimateColorElement.h \
365     $(intermediates)/svg/JSSVGAnimateElement.h \
366     $(intermediates)/svg/JSSVGAnimateTransformElement.h \
367     $(intermediates)/svg/JSSVGAnimatedAngle.h \
368     $(intermediates)/svg/JSSVGAnimatedBoolean.h \
369     $(intermediates)/svg/JSSVGAnimatedEnumeration.h \
370     $(intermediates)/svg/JSSVGAnimatedInteger.h \
371     $(intermediates)/svg/JSSVGAnimatedLength.h \
372     $(intermediates)/svg/JSSVGAnimatedLengthList.h \
373     $(intermediates)/svg/JSSVGAnimatedNumber.h \
374     $(intermediates)/svg/JSSVGAnimatedNumberList.h \
375     $(intermediates)/svg/JSSVGAnimatedPreserveAspectRatio.h \
376     $(intermediates)/svg/JSSVGAnimatedRect.h \
377     $(intermediates)/svg/JSSVGAnimatedString.h \
378     $(intermediates)/svg/JSSVGAnimatedTransformList.h \
379     $(intermediates)/svg/JSSVGAnimationElement.h \
380     $(intermediates)/svg/JSSVGCircleElement.h \
381     $(intermediates)/svg/JSSVGClipPathElement.h \
382     $(intermediates)/svg/JSSVGColor.h \
383     $(intermediates)/svg/JSSVGComponentTransferFunctionElement.h \
384     $(intermediates)/svg/JSSVGCursorElement.h \
385     $(intermediates)/svg/JSSVGDefsElement.h \
386     $(intermediates)/svg/JSSVGDescElement.h \
387     $(intermediates)/svg/JSSVGDocument.h \
388     $(intermediates)/svg/JSSVGElement.h \
389     $(intermediates)/svg/JSSVGElementInstance.h \
390     $(intermediates)/svg/JSSVGElementInstanceList.h \
391     $(intermediates)/svg/JSSVGEllipseElement.h \
392     $(intermediates)/svg/JSSVGException.h \
393     $(intermediates)/svg/JSSVGFEBlendElement.h \
394     $(intermediates)/svg/JSSVGFEColorMatrixElement.h \
395     $(intermediates)/svg/JSSVGFEComponentTransferElement.h \
396     $(intermediates)/svg/JSSVGFECompositeElement.h \
397     $(intermediates)/svg/JSSVGFEDiffuseLightingElement.h \
398     $(intermediates)/svg/JSSVGFEDisplacementMapElement.h \
399     $(intermediates)/svg/JSSVGFEDistantLightElement.h \
400     $(intermediates)/svg/JSSVGFEFloodElement.h \
401     $(intermediates)/svg/JSSVGFEFuncAElement.h \
402     $(intermediates)/svg/JSSVGFEFuncBElement.h \
403     $(intermediates)/svg/JSSVGFEFuncGElement.h \
404     $(intermediates)/svg/JSSVGFEFuncRElement.h \
405     $(intermediates)/svg/JSSVGFEGaussianBlurElement.h \
406     $(intermediates)/svg/JSSVGFEImageElement.h \
407     $(intermediates)/svg/JSSVGFEMergeElement.h \
408     $(intermediates)/svg/JSSVGFEMergeNodeElement.h \
409     $(intermediates)/svg/JSSVGFEOffsetElement.h \
410     $(intermediates)/svg/JSSVGFEPointLightElement.h \
411     $(intermediates)/svg/JSSVGFESpecularLightingElement.h \
412     $(intermediates)/svg/JSSVGFESpotLightElement.h \
413     $(intermediates)/svg/JSSVGFETileElement.h \
414     $(intermediates)/svg/JSSVGFETurbulenceElement.h \
415     $(intermediates)/svg/JSSVGFilterElement.h \
416     $(intermediates)/svg/JSSVGFontElement.h \
417     $(intermediates)/svg/JSSVGFontFaceElement.h \
418     $(intermediates)/svg/JSSVGFontFaceFormatElement.h \
419     $(intermediates)/svg/JSSVGFontFaceNameElement.h \
420     $(intermediates)/svg/JSSVGFontFaceSrcElement.h \
421     $(intermediates)/svg/JSSVGFontFaceUriElement.h \
422     $(intermediates)/svg/JSSVGForeignObjectElement.h \
423     $(intermediates)/svg/JSSVGGElement.h \
424     $(intermediates)/svg/JSSVGGlyphElement.h \
425     $(intermediates)/svg/JSSVGGradientElement.h \
426     $(intermediates)/svg/JSSVGHKernElement.h \
427     $(intermediates)/svg/JSSVGImageElement.h \
428     $(intermediates)/svg/JSSVGLength.h \
429     $(intermediates)/svg/JSSVGLengthList.h \
430     $(intermediates)/svg/JSSVGLineElement.h \
431     $(intermediates)/svg/JSSVGLinearGradientElement.h \
432     $(intermediates)/svg/JSSVGMarkerElement.h \
433     $(intermediates)/svg/JSSVGMaskElement.h \
434     $(intermediates)/svg/JSSVGMatrix.h \
435     $(intermediates)/svg/JSSVGMetadataElement.h \
436     $(intermediates)/svg/JSSVGMissingGlyphElement.h \
437     $(intermediates)/svg/JSSVGNumber.h \
438     $(intermediates)/svg/JSSVGNumberList.h \
439     $(intermediates)/svg/JSSVGPaint.h \
440     $(intermediates)/svg/JSSVGPathElement.h \
441     $(intermediates)/svg/JSSVGPathSeg.h \
442     $(intermediates)/svg/JSSVGPathSegArcAbs.h \
443     $(intermediates)/svg/JSSVGPathSegArcRel.h \
444     $(intermediates)/svg/JSSVGPathSegClosePath.h \
445     $(intermediates)/svg/JSSVGPathSegCurvetoCubicAbs.h \
446     $(intermediates)/svg/JSSVGPathSegCurvetoCubicRel.h \
447     $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothAbs.h \
448     $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothRel.h \
449     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticAbs.h \
450     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticRel.h \
451     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothAbs.h \
452     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothRel.h \
453     $(intermediates)/svg/JSSVGPathSegLinetoAbs.h \
454     $(intermediates)/svg/JSSVGPathSegLinetoHorizontalAbs.h \
455     $(intermediates)/svg/JSSVGPathSegLinetoHorizontalRel.h \
456     $(intermediates)/svg/JSSVGPathSegLinetoRel.h \
457     $(intermediates)/svg/JSSVGPathSegLinetoVerticalAbs.h \
458     $(intermediates)/svg/JSSVGPathSegLinetoVerticalRel.h \
459     $(intermediates)/svg/JSSVGPathSegList.h \
460     $(intermediates)/svg/JSSVGPathSegMovetoAbs.h \
461     $(intermediates)/svg/JSSVGPathSegMovetoRel.h \
462     $(intermediates)/svg/JSSVGPatternElement.h \
463     $(intermediates)/svg/JSSVGPoint.h \
464     $(intermediates)/svg/JSSVGPointList.h \
465     $(intermediates)/svg/JSSVGPolygonElement.h \
466     $(intermediates)/svg/JSSVGPolylineElement.h \
467     $(intermediates)/svg/JSSVGPreserveAspectRatio.h \
468     $(intermediates)/svg/JSSVGRadialGradientElement.h \
469     $(intermediates)/svg/JSSVGRect.h \
470     $(intermediates)/svg/JSSVGRectElement.h \
471     $(intermediates)/svg/JSSVGRenderingIntent.h \
472     $(intermediates)/svg/JSSVGSVGElement.h \
473     $(intermediates)/svg/JSSVGScriptElement.h \
474     $(intermediates)/svg/JSSVGSetElement.h \
475     $(intermediates)/svg/JSSVGStopElement.h \
476     $(intermediates)/svg/JSSVGStringList.h \
477     $(intermediates)/svg/JSSVGStyleElement.h \
478     $(intermediates)/svg/JSSVGSwitchElement.h \
479     $(intermediates)/svg/JSSVGSymbolElement.h \
480     $(intermediates)/svg/JSSVGTRefElement.h \
481     $(intermediates)/svg/JSSVGTSpanElement.h \
482     $(intermediates)/svg/JSSVGTextContentElement.h \
483     $(intermediates)/svg/JSSVGTextElement.h \
484     $(intermediates)/svg/JSSVGTextPathElement.h \
485     $(intermediates)/svg/JSSVGTextPositioningElement.h \
486     $(intermediates)/svg/JSSVGTitleElement.h \
487     $(intermediates)/svg/JSSVGTransform.h \
488     $(intermediates)/svg/JSSVGTransformList.h \
489     $(intermediates)/svg/JSSVGUnitTypes.h \
490     $(intermediates)/svg/JSSVGUseElement.h \
491     $(intermediates)/svg/JSSVGViewElement.h \
492     $(intermediates)/svg/JSSVGZoomEvent.h
493 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
494 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include external/webkit/WebCore/dom --include external/webkit/WebCore/html --include external/webkit/WebCore/svg --outputdir $(dir $@) $<
495 $(GEN): $(intermediates)/svg/JS%.h : $(LOCAL_PATH)/svg/%.idl $(js_binding_scripts)
496         $(transform-generated-source)
497 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
498
499 # We also need the .cpp files, which are generated as side effects of the
500 # above rules.  Specifying this explicitly makes -j2 work.
501 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/svg/%.cpp : $(intermediates)/svg/%.h
502 endif
503
504 # new section for Workers
505 GEN := \
506     $(intermediates)/workers/JSAbstractWorker.h \
507     $(intermediates)/workers/JSDedicatedWorkerContext.h \
508     $(intermediates)/workers/JSSharedWorker.h \
509     $(intermediates)/workers/JSSharedWorkerContext.h \
510     $(intermediates)/workers/JSWorker.h \
511     $(intermediates)/workers/JSWorkerContext.h \
512     $(intermediates)/workers/JSWorkerLocation.h
513
514 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
515 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
516 $(GEN): $(intermediates)/workers/JS%.h : $(LOCAL_PATH)/workers/%.idl $(js_binding_scripts)
517         $(transform-generated-source)
518 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
519
520 # We also need the .cpp files, which are generated as side effects of the
521 # above rules.  Specifying this explicitly makes -j2 work.
522 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/workers/%.cpp : $(intermediates)/workers/%.h
523
524 #new section for xml/DOMParser.idl
525 GEN := \
526     $(intermediates)/xml/JSDOMParser.h \
527     $(intermediates)/xml/JSXMLHttpRequest.h \
528     $(intermediates)/xml/JSXMLHttpRequestException.h \
529     $(intermediates)/xml/JSXMLHttpRequestProgressEvent.h \
530     $(intermediates)/xml/JSXMLHttpRequestUpload.h \
531     $(intermediates)/xml/JSXMLSerializer.h \
532     $(intermediates)/xml/JSXSLTProcessor.h
533 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
534 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $<
535 $(GEN): $(intermediates)/xml/JS%.h : $(LOCAL_PATH)/xml/%.idl $(js_binding_scripts)
536         $(transform-generated-source)
537 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
538
539 # We also need the .cpp files, which are generated as side effects of the
540 # above rules.  Specifying this explicitly makes -j2 work.
541 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/xml/%.cpp : $(intermediates)/xml/%.h
542 #end
543
544 # HTML tag and attribute names
545
546 GEN:= $(intermediates)/HTMLNames.cpp $(intermediates)/HTMLElementFactory.cpp  $(intermediates)/JSHTMLElementWrapperFactory.cpp
547 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
548 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(html_tags) --attrs $(html_attrs)  --extraDefines "$(FEATURE_DEFINES)" --factory --wrapperFactory --output $(dir $@)
549 $(GEN): html_tags := $(LOCAL_PATH)/html/HTMLTagNames.in
550 $(GEN): html_attrs := $(LOCAL_PATH)/html/HTMLAttributeNames.in
551 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(html_tags) $(html_attrs)
552         $(transform-generated-source)
553 LOCAL_GENERATED_SOURCES += $(GEN)
554
555 # SVG tag and attribute names
556
557 ifeq ($(ENABLE_SVG), true)
558 GEN:= $(intermediates)/SVGNames.cpp  $(intermediates)/SVGElementFactory.cpp $(intermediates)/JSSVGElementWrapperFactory.cpp
559 SVG_FLAGS:=ENABLE_SVG_AS_IMAGE=1 ENABLE_SVG_FILTERS=1 ENABLE_SVG_FONTS=1 ENABLE_SVG_FOREIGN_OBJECT=1 ENABLE_SVG_USE=1
560 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
561 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(svg_tags) --attrs $(svg_attrs) --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory --output $(dir $@)
562 $(GEN): svg_tags := $(LOCAL_PATH)/svg/svgtags.in
563 $(GEN): svg_attrs := $(LOCAL_PATH)/svg/svgattrs.in
564 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(svg_tags) $(svg_attrs)
565         $(transform-generated-source)
566 LOCAL_GENERATED_SOURCES += $(GEN)
567 endif