OSDN Git Service

Merge change 6222
[android-x86/external-webkit.git] / WebCore / Android.derived.mk
1 ##
2 ##
3 ## Copyright 2007, The Android Open Source Project
4 ##
5 ## Licensed under the Apache License, Version 2.0 (the "License");
6 ## you may not use this file except in compliance with the License.
7 ## You may obtain a copy of the License at
8 ##
9 ##     http://www.apache.org/licenses/LICENSE-2.0
10 ##
11 ## Unless required by applicable law or agreed to in writing, software
12 ## distributed under the License is distributed on an "AS IS" BASIS,
13 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ## See the License for the specific language governing permissions and
15 ## limitations under the License.
16 ##
17
18 # This comment block is read by tools/webkitsync/diff.cpp
19 # Don't remove it or move it. 
20 #
21 # The following files are intentionally not included
22 # LOCAL_SRC_FILES_EXCLUDED := \
23 #       css/RGBColor.idl \
24 #       dom/EventListener.idl \
25 #       dom/EventTarget.idl \
26 #       html/CanvasPixelArray.idl \
27 #       page/AbstractView.idl \
28 #       page/PositionCallback.idl \
29 #       svg/ElementTimeControl.idl \
30 #       svg/SVGAnimatedPathData.idl \
31 #       svg/SVGAnimatedPoints.idl \
32 #       svg/SVGExternalResourcesRequired.idl \
33 #       svg/SVGFilterPrimitiveStandardAttributes.idl \
34 #       svg/SVGFitToViewBox.idl \
35 #       svg/SVGLangSpace.idl \
36 #       svg/SVGLocatable.idl \
37 #       svg/SVGStylable.idl \
38 #       svg/SVGTests.idl \
39 #       svg/SVGTransformable.idl \
40 #       svg/SVGURIReference.idl \
41 #       svg/SVGViewSpec.idl \
42 #       svg/SVGZoomAndPan.idl \
43
44 # This comment block is read by tools/webkitsync/diff.cpp
45 # Don't remove it or move it. 
46 #
47 # The following files are intentionally not generated
48 # LOCAL_GENERATED_FILES_EXCLUDED := \
49 #       WMLElementFactory.cpp \
50 #       WMLNames.cpp \
51 #       XLinkNames.cpp \
52
53 # This comment block is read by tools/webkitsync/diff.cpp
54 # Don't remove it or move it. 
55 #
56 # The following directory wildcard matches are intentionally not included
57 # If an entry starts with '/', any subdirectory may match
58 # If an entry starts with '^', the first directory must match
59 # LOCAL_DIR_WILDCARD_EXCLUDED :=
60 #
61
62 # This comment block is read by tools/webkitsync/diff.cpp
63 # Don't remove it or move it. 
64 # If you edit it, keep it in alphabetical order
65 #
66 # These files are Android extensions
67 # LOCAL_ANDROID_SRC_FILES_INCLUDED := \
68 #       dom/Touch*.idl \
69
70 LOCAL_SRC_FILES :=
71 # CSS property names and value keywords
72
73 GEN := $(intermediates)/css/CSSPropertyNames.h
74 $(GEN): SCRIPT := $(LOCAL_PATH)/css/makeprop.pl
75 $(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.in $(LOCAL_PATH)/css/SVGCSSPropertyNames.in
76         @echo "Generating CSSPropertyNames.h <= CSSPropertyNames.in"
77         @mkdir -p $(dir $@)
78         @cat $< > $(dir $@)/$(notdir $<)
79 ifeq ($(ENABLE_SVG),true)
80         @cat $^ > $(@:%.h=%.in)
81 endif
82         @cp -f $(SCRIPT) $(dir $@)
83         @cd $(dir $@) ; perl ./$(notdir $(SCRIPT))
84 LOCAL_GENERATED_SOURCES += $(GEN)
85
86 GEN := $(intermediates)/css/CSSValueKeywords.h
87 $(GEN): SCRIPT := $(LOCAL_PATH)/css/makevalues.pl
88 $(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.in $(LOCAL_PATH)/css/SVGCSSValueKeywords.in
89         @echo "Generating CSSValueKeywords.h <= CSSValueKeywords.in"
90         @mkdir -p $(dir $@)
91         @cp -f $(SCRIPT) $(dir $@)
92 ifeq ($(ENABLE_SVG),true)    
93         @perl -ne 'print lc' $^ > $(@:%.h=%.in)
94 else
95         @perl -ne 'print lc' $< > $(@:%.h=%.in)
96 endif
97         @cd $(dir $@); perl makevalues.pl
98 LOCAL_GENERATED_SOURCES += $(GEN)
99
100
101 # DOCTYPE strings
102
103 GEN := $(intermediates)/html/DocTypeStrings.cpp
104 $(GEN): PRIVATE_CUSTOM_TOOL = gperf -CEot -L ANSI-C -k "*" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards $< > $@
105 $(GEN): $(LOCAL_PATH)/html/DocTypeStrings.gperf
106         $(transform-generated-source)
107 # we have to do this dep by hand:
108 $(intermediates)/html/HTMLDocument.o : $(GEN)
109
110
111 # HTML entity names
112
113 GEN := $(intermediates)/html/HTMLEntityNames.c
114 $(GEN): PRIVATE_CUSTOM_TOOL = gperf -a -L ANSI-C -C -G -c -o -t -k '*' -N findEntity -D -s 2 $< > $@
115 $(GEN): $(LOCAL_PATH)/html/HTMLEntityNames.gperf
116         $(transform-generated-source)
117 LOCAL_GENERATED_SOURCES += $(GEN)
118
119
120 # color names
121
122 GEN := $(intermediates)/platform/ColorData.c
123 $(GEN): PRIVATE_CUSTOM_TOOL = gperf -CDEot -L ANSI-C -k '*' -N findColor -D -s 2 $< > $@
124 $(GEN): $(LOCAL_PATH)/platform/ColorData.gperf
125         $(transform-generated-source)
126 LOCAL_GENERATED_SOURCES += $(GEN)
127
128
129 # CSS tokenizer
130
131 GEN := $(intermediates)/css/tokenizer.cpp
132 $(GEN): PRIVATE_CUSTOM_TOOL = $(OLD_FLEX) -t $< | perl $(dir $<)/maketokenizer > $@
133 $(GEN): $(LOCAL_PATH)/css/tokenizer.flex $(LOCAL_PATH)/css/maketokenizer
134         $(transform-generated-source)
135 # we have to do this dep by hand:
136 $(intermediates)/css/CSSParser.o : $(GEN)
137
138 # CSS grammar
139
140 GEN := $(intermediates)/CSSGrammar.cpp
141 $(GEN) : PRIVATE_YACCFLAGS := -p cssyy
142 $(GEN): $(LOCAL_PATH)/css/CSSGrammar.y
143         $(call local-transform-y-to-cpp,.cpp)
144 $(GEN): $(LOCAL_BISON)
145
146 LOCAL_GENERATED_SOURCES += $(GEN)
147
148 # XPath grammar
149
150 GEN := $(intermediates)/XPathGrammar.cpp
151 $(GEN) : PRIVATE_YACCFLAGS := -p xpathyy
152 $(GEN): $(LOCAL_PATH)/xml/XPathGrammar.y
153         $(call local-transform-y-to-cpp,.cpp)
154 $(GEN): $(LOCAL_BISON)
155
156 LOCAL_GENERATED_SOURCES += $(GEN)
157                                  
158 # user agent style sheets
159
160 style_sheets := $(LOCAL_PATH)/css/html4.css $(LOCAL_PATH)/css/quirks.css $(LOCAL_PATH)/css/view-source.css $(LOCAL_PATH)/css/mediaControls.css
161 ifeq ($(ENABLE_SVG), true)
162 style_sheets := $(style_sheets) $(LOCAL_PATH)/css/svg.css
163 endif
164 GEN := $(intermediates)/css/UserAgentStyleSheets.h
165 make_css_file_arrays := $(LOCAL_PATH)/css/make-css-file-arrays.pl
166 $(GEN): PRIVATE_CUSTOM_TOOL = $< $@ $(basename $@).cpp $(filter %.css,$^)
167 $(GEN): $(make_css_file_arrays) $(style_sheets)
168         $(transform-generated-source)
169 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
170
171 # character set name table
172
173 #gen_inputs := \
174                 $(LOCAL_PATH)/platform/make-charset-table.pl \
175                 $(LOCAL_PATH)/platform/character-sets.txt \
176                 $(LOCAL_PATH)/platform/android/android-encodings.txt
177 #GEN := $(intermediates)/platform/CharsetData.cpp
178 #$(GEN): PRIVATE_CUSTOM_TOOL = $^ "android::Encoding::ENCODING_" > $@
179 #$(GEN): $(gen_inputs)
180 #       $(transform-generated-source)
181 #LOCAL_GENERATED_SOURCES += $(GEN)
182
183 # the above rule will make this build too
184 $(intermediates)/css/UserAgentStyleSheets.cpp : $(GEN)
185
186
187 # lookup tables for old-style JavaScript bindings
188 create_hash_table := $(LOCAL_PATH)/../JavaScriptCore/create_hash_table
189
190 GEN := $(addprefix $(intermediates)/, \
191                         bindings/js/JSDOMWindowBase.lut.h \
192                 bindings/js/JSRGBColor.lut.h \
193                 )
194 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
195 $(GEN): $(intermediates)/bindings/js/%.lut.h: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
196         $(transform-generated-source)
197 LOCAL_GENERATED_SOURCES += $(GEN)
198
199
200 GEN := $(intermediates)/bindings/js/JSHTMLInputElementBaseTable.cpp
201 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
202 $(GEN): $(intermediates)/bindings/js/%Table.cpp: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
203         $(transform-generated-source)
204 $(intermediates)/bindings/js/JSHTMLInputElementBase.o : $(GEN)
205
206 # lookup tables for old-style JavaScript bindings
207 js_binding_scripts := $(addprefix $(LOCAL_PATH)/,\
208                         bindings/scripts/CodeGenerator.pm \
209                         bindings/scripts/IDLParser.pm \
210                         bindings/scripts/IDLStructure.pm \
211                         bindings/scripts/generate-bindings.pl \
212                 )
213
214 FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1
215
216 GEN := \
217     $(intermediates)/css/JSCSSCharsetRule.h \
218     $(intermediates)/css/JSCSSFontFaceRule.h \
219     $(intermediates)/css/JSCSSImportRule.h \
220     $(intermediates)/css/JSCSSMediaRule.h \
221     $(intermediates)/css/JSCSSPageRule.h \
222     $(intermediates)/css/JSCSSPrimitiveValue.h \
223     $(intermediates)/css/JSCSSRule.h \
224     $(intermediates)/css/JSCSSRuleList.h \
225     $(intermediates)/css/JSCSSStyleDeclaration.h \
226     $(intermediates)/css/JSCSSStyleRule.h \
227     $(intermediates)/css/JSCSSStyleSheet.h \
228     $(intermediates)/css/JSCSSUnknownRule.h \
229     $(intermediates)/css/JSCSSValue.h \
230     $(intermediates)/css/JSCSSValueList.h \
231     $(intermediates)/css/JSCSSVariablesDeclaration.h \
232     $(intermediates)/css/JSCSSVariablesRule.h \
233     $(intermediates)/css/JSCounter.h \
234     $(intermediates)/css/JSMediaList.h \
235     $(intermediates)/css/JSRect.h \
236     $(intermediates)/css/JSStyleSheet.h \
237     $(intermediates)/css/JSStyleSheetList.h \
238     $(intermediates)/css/JSWebKitCSSKeyframeRule.h \
239     $(intermediates)/css/JSWebKitCSSKeyframesRule.h \
240     $(intermediates)/css/JSWebKitCSSMatrix.h \
241     $(intermediates)/css/JSWebKitCSSTransformValue.h 
242 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
243 $(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 $@) $<
244 $(GEN): $(intermediates)/css/JS%.h : $(LOCAL_PATH)/css/%.idl $(js_binding_scripts)
245         $(transform-generated-source)
246 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
247
248
249 # We also need the .cpp files, which are generated as side effects of the
250 # above rules.  Specifying this explicitly makes -j2 work.
251 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/css/%.cpp : $(intermediates)/css/%.h
252
253 # MANUAL MERGE : I took this out because compiling the result shows:
254 # out/.../JSEventTarget.cpp: In function 'JSC::JSValue* WebCore::jsEventTargetPrototypeFunctionAddEventListener(JSC::ExecState*, JSC::JSObject*, JSC::JSValue*, const JSC::ArgList&)':
255 # out/.../JSEventTarget.cpp:90: error: 'toEventListener' was not declared in this scope
256 # but I can't find toEventListener anywhere, nor can I figure out how toEventListener
257 # is generated
258 #    $(intermediates)/dom/JSEventTarget.h \
259
260 GEN := \
261     $(intermediates)/dom/JSAttr.h \
262     $(intermediates)/dom/JSCDATASection.h \
263     $(intermediates)/dom/JSCharacterData.h \
264         $(intermediates)/dom/JSClientRect.h \
265         $(intermediates)/dom/JSClientRectList.h \
266     $(intermediates)/dom/JSClipboard.h \
267     $(intermediates)/dom/JSComment.h \
268     $(intermediates)/dom/JSDOMCoreException.h \
269     $(intermediates)/dom/JSDOMImplementation.h \
270     $(intermediates)/dom/JSDOMStringList.h \
271     $(intermediates)/dom/JSDocument.h \
272     $(intermediates)/dom/JSDocumentFragment.h \
273     $(intermediates)/dom/JSDocumentType.h \
274     $(intermediates)/dom/JSElement.h \
275     $(intermediates)/dom/JSEntity.h \
276     $(intermediates)/dom/JSEntityReference.h \
277     $(intermediates)/dom/JSEvent.h \
278     $(intermediates)/dom/JSEventException.h \
279     $(intermediates)/dom/JSKeyboardEvent.h \
280     $(intermediates)/dom/JSMessageChannel.h \
281     $(intermediates)/dom/JSMessageEvent.h \
282     $(intermediates)/dom/JSMessagePort.h \
283     $(intermediates)/dom/JSMouseEvent.h \
284     $(intermediates)/dom/JSMutationEvent.h \
285     $(intermediates)/dom/JSNamedNodeMap.h \
286     $(intermediates)/dom/JSNode.h \
287     $(intermediates)/dom/JSNodeFilter.h \
288     $(intermediates)/dom/JSNodeIterator.h \
289     $(intermediates)/dom/JSNodeList.h \
290     $(intermediates)/dom/JSNotation.h \
291         $(intermediates)/dom/JSOverflowEvent.h \
292     $(intermediates)/dom/JSProcessingInstruction.h \
293     $(intermediates)/dom/JSProgressEvent.h \
294     $(intermediates)/dom/JSRange.h \
295     $(intermediates)/dom/JSRangeException.h \
296     $(intermediates)/dom/JSText.h \
297     $(intermediates)/dom/JSTextEvent.h \
298     $(intermediates)/dom/JSTouch.h \
299     $(intermediates)/dom/JSTouchEvent.h \
300     $(intermediates)/dom/JSTouchList.h \
301     $(intermediates)/dom/JSTreeWalker.h \
302     $(intermediates)/dom/JSUIEvent.h \
303     $(intermediates)/dom/JSWebKitAnimationEvent.h \
304     $(intermediates)/dom/JSWebKitTransitionEvent.h \
305     $(intermediates)/dom/JSWheelEvent.h
306 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
307 $(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 $@) $<
308 $(GEN): $(intermediates)/dom/JS%.h : $(LOCAL_PATH)/dom/%.idl $(js_binding_scripts)
309         $(transform-generated-source)
310 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
311
312 # We also need the .cpp files, which are generated as side effects of the
313 # above rules.  Specifying this explicitly makes -j2 work.
314 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/dom/%.cpp : $(intermediates)/dom/%.h
315
316
317 GEN := \
318     $(intermediates)/html/JSCanvasGradient.h \
319     $(intermediates)/html/JSCanvasPattern.h \
320     $(intermediates)/html/JSCanvasRenderingContext2D.h \
321     $(intermediates)/html/JSFile.h \
322     $(intermediates)/html/JSFileList.h \
323     $(intermediates)/html/JSHTMLAnchorElement.h \
324     $(intermediates)/html/JSHTMLAppletElement.h \
325     $(intermediates)/html/JSHTMLAreaElement.h \
326     $(intermediates)/html/JSHTMLAudioElement.h \
327     $(intermediates)/html/JSHTMLBRElement.h \
328     $(intermediates)/html/JSHTMLBaseElement.h \
329     $(intermediates)/html/JSHTMLBaseFontElement.h \
330     $(intermediates)/html/JSHTMLBlockquoteElement.h \
331     $(intermediates)/html/JSHTMLBodyElement.h \
332     $(intermediates)/html/JSHTMLButtonElement.h \
333     $(intermediates)/html/JSHTMLCanvasElement.h \
334         $(intermediates)/html/JSHTMLCollection.h \
335     $(intermediates)/html/JSHTMLDListElement.h \
336     $(intermediates)/html/JSHTMLDirectoryElement.h \
337     $(intermediates)/html/JSHTMLDivElement.h \
338     $(intermediates)/html/JSHTMLDocument.h \
339     $(intermediates)/html/JSHTMLElement.h \
340     $(intermediates)/html/JSHTMLEmbedElement.h \
341     $(intermediates)/html/JSHTMLFieldSetElement.h \
342     $(intermediates)/html/JSHTMLFontElement.h \
343     $(intermediates)/html/JSHTMLFormElement.h \
344     $(intermediates)/html/JSHTMLFrameElement.h \
345     $(intermediates)/html/JSHTMLFrameSetElement.h \
346     $(intermediates)/html/JSHTMLHRElement.h \
347     $(intermediates)/html/JSHTMLHeadElement.h \
348     $(intermediates)/html/JSHTMLHeadingElement.h \
349     $(intermediates)/html/JSHTMLHtmlElement.h \
350     $(intermediates)/html/JSHTMLIFrameElement.h \
351     $(intermediates)/html/JSHTMLImageElement.h \
352     $(intermediates)/html/JSHTMLInputElement.h \
353     $(intermediates)/html/JSHTMLIsIndexElement.h \
354     $(intermediates)/html/JSHTMLLIElement.h \
355     $(intermediates)/html/JSHTMLLabelElement.h \
356     $(intermediates)/html/JSHTMLLegendElement.h \
357     $(intermediates)/html/JSHTMLLinkElement.h \
358     $(intermediates)/html/JSHTMLMapElement.h \
359     $(intermediates)/html/JSHTMLMarqueeElement.h \
360     $(intermediates)/html/JSHTMLMediaElement.h \
361     $(intermediates)/html/JSHTMLMenuElement.h \
362     $(intermediates)/html/JSHTMLMetaElement.h \
363     $(intermediates)/html/JSHTMLModElement.h \
364     $(intermediates)/html/JSHTMLOListElement.h \
365     $(intermediates)/html/JSHTMLObjectElement.h \
366     $(intermediates)/html/JSHTMLOptGroupElement.h \
367     $(intermediates)/html/JSHTMLOptionElement.h \
368     $(intermediates)/html/JSHTMLOptionsCollection.h \
369     $(intermediates)/html/JSHTMLParagraphElement.h \
370     $(intermediates)/html/JSHTMLParamElement.h \
371     $(intermediates)/html/JSHTMLPreElement.h \
372     $(intermediates)/html/JSHTMLQuoteElement.h \
373     $(intermediates)/html/JSHTMLScriptElement.h \
374     $(intermediates)/html/JSHTMLSelectElement.h \
375     $(intermediates)/html/JSHTMLSourceElement.h \
376     $(intermediates)/html/JSHTMLStyleElement.h \
377     $(intermediates)/html/JSHTMLTableCaptionElement.h \
378     $(intermediates)/html/JSHTMLTableCellElement.h \
379     $(intermediates)/html/JSHTMLTableColElement.h \
380     $(intermediates)/html/JSHTMLTableElement.h \
381     $(intermediates)/html/JSHTMLTableRowElement.h \
382     $(intermediates)/html/JSHTMLTableSectionElement.h \
383     $(intermediates)/html/JSHTMLTextAreaElement.h \
384     $(intermediates)/html/JSHTMLTitleElement.h \
385     $(intermediates)/html/JSHTMLUListElement.h \
386     $(intermediates)/html/JSHTMLVideoElement.h \
387     $(intermediates)/html/JSImageData.h \
388     $(intermediates)/html/JSMediaError.h \
389     $(intermediates)/html/JSTextMetrics.h \
390     $(intermediates)/html/JSTimeRanges.h \
391     $(intermediates)/html/JSVoidCallback.h 
392
393 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
394 $(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 $@) $<
395 $(GEN): $(intermediates)/html/JS%.h : $(LOCAL_PATH)/html/%.idl $(js_binding_scripts)
396         $(transform-generated-source)
397 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
398
399 # We also need the .cpp files, which are generated as side effects of the
400 # above rules.  Specifying this explicitly makes -j2 work.
401 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h
402
403 GEN := \
404     $(intermediates)/inspector/JSJavaScriptCallFrame.h 
405     
406 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
407 $(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 $@) $<
408 $(GEN): $(intermediates)/inspector/JS%.h : $(LOCAL_PATH)/inspector/%.idl $(js_binding_scripts)
409         $(transform-generated-source)
410 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
411
412 # We also need the .cpp files, which are generated as side effects of the
413 # above rules.  Specifying this explicitly makes -j2 work.
414 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/inspector/%.cpp : $(intermediates)/inspector/%.h
415
416 GEN := \
417     $(intermediates)/loader/appcache/JSDOMApplicationCache.h 
418     
419 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
420 $(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 $@) $<
421 $(GEN): $(intermediates)/loader/appcache/JS%.h : $(LOCAL_PATH)/loader/appcache/%.idl $(js_binding_scripts)
422         $(transform-generated-source)
423 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
424
425 # We also need the .cpp files, which are generated as side effects of the
426 # above rules.  Specifying this explicitly makes -j2 work.
427 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/loader/appcache/%.cpp : $(intermediates)/loader/appcache/%.h
428
429 # MANUAL MERGE : I took this out because compiling the result shows:
430 # out/.../JSAbstractView.cpp:27:26: error: AbstractView.h: No such file or directory
431 # I can't find AbstractView.h anywhere
432 #    $(intermediates)/page/JSAbstractView.h \
433 #
434 # also:
435 #
436 # out/.../JSPositionCallback.cpp:145: error: no matching function for call to 'WebCore::PositionCallback::handleEvent(WebCore::Geoposition*&)'
437 #  note: candidates are: virtual void WebCore::PositionCallback::handleEvent(WebCore::Geoposition*, bool&)
438 #    $(intermediates)/page/JSPositionCallback.h \
439
440 GEN := \
441     $(intermediates)/page/JSBarInfo.h \
442     $(intermediates)/page/JSConsole.h \
443         $(intermediates)/page/JSCoordinates.h \
444     $(intermediates)/page/JSDOMSelection.h \
445     $(intermediates)/page/JSDOMWindow.h \
446     $(intermediates)/page/JSGeolocation.h \
447     $(intermediates)/page/JSGeoposition.h \
448     $(intermediates)/page/JSHistory.h \
449     $(intermediates)/page/JSLocation.h \
450     $(intermediates)/page/JSNavigator.h \
451     $(intermediates)/page/JSPositionError.h \
452     $(intermediates)/page/JSPositionErrorCallback.h \
453     $(intermediates)/page/JSScreen.h \
454     $(intermediates)/page/JSWebKitPoint.h \
455     $(intermediates)/page/JSWorkerNavigator.h
456
457 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
458 $(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 $@) $<
459 $(GEN): $(intermediates)/page/JS%.h : $(LOCAL_PATH)/page/%.idl $(js_binding_scripts)
460         $(transform-generated-source)
461 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
462
463 # We also need the .cpp files, which are generated as side effects of the
464 # above rules.  Specifying this explicitly makes -j2 work.
465 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/page/%.cpp : $(intermediates)/page/%.h
466
467 GEN := \
468     $(intermediates)/plugins/JSMimeType.h \
469     $(intermediates)/plugins/JSMimeTypeArray.h \
470     $(intermediates)/plugins/JSPlugin.h \
471     $(intermediates)/plugins/JSPluginArray.h 
472     
473 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
474 $(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 $@) $<
475 $(GEN): $(intermediates)/plugins/JS%.h : $(LOCAL_PATH)/plugins/%.idl $(js_binding_scripts)
476         $(transform-generated-source)
477 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
478
479 # We also need the .cpp files, which are generated as side effects of the
480 # above rules.  Specifying this explicitly makes -j2 work.
481 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/plugins/%.cpp : $(intermediates)/plugins/%.h
482
483 # New section for Database storage API
484 GEN := \
485     $(intermediates)/storage/JSDatabase.h \
486     $(intermediates)/storage/JSSQLError.h \
487     $(intermediates)/storage/JSSQLResultSet.h \
488     $(intermediates)/storage/JSSQLResultSetRowList.h \
489     $(intermediates)/storage/JSSQLTransaction.h
490
491 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
492 $(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 $@) $<
493 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
494         $(transform-generated-source)
495 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
496
497 # We also need the .cpp files, which are generated as side effects of the
498 # above rules.  Specifying this explicitly makes -j2 work.
499 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
500
501 # new section for DOM Storage APIs
502 GEN := \
503     $(intermediates)/storage/JSStorage.h \
504     $(intermediates)/storage/JSStorageEvent.h
505
506 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
507 $(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 $@) $<
508 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
509         $(transform-generated-source)
510 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
511
512 # We also need the .cpp files, which are generated as side effects of the
513 # above rules.  Specifying this explicitly makes -j2 work.
514 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
515
516 #new section for svg
517 ifeq ($(ENABLE_SVG), true)
518 GEN := \
519     $(intermediates)/svg/JSSVGAElement.h \
520     $(intermediates)/svg/JSSVGAltGlyphElement.h \
521     $(intermediates)/svg/JSSVGAngle.h \
522     $(intermediates)/svg/JSSVGAnimateColorElement.h \
523     $(intermediates)/svg/JSSVGAnimateElement.h \
524     $(intermediates)/svg/JSSVGAnimateTransformElement.h \
525     $(intermediates)/svg/JSSVGAnimatedAngle.h \
526     $(intermediates)/svg/JSSVGAnimatedBoolean.h \
527     $(intermediates)/svg/JSSVGAnimatedEnumeration.h \
528     $(intermediates)/svg/JSSVGAnimatedInteger.h \
529     $(intermediates)/svg/JSSVGAnimatedLength.h \
530     $(intermediates)/svg/JSSVGAnimatedLengthList.h \
531     $(intermediates)/svg/JSSVGAnimatedNumber.h \
532     $(intermediates)/svg/JSSVGAnimatedNumberList.h \
533     $(intermediates)/svg/JSSVGAnimatedPreserveAspectRatio.h \
534     $(intermediates)/svg/JSSVGAnimatedRect.h \
535     $(intermediates)/svg/JSSVGAnimatedString.h \
536     $(intermediates)/svg/JSSVGAnimatedTransformList.h \
537     $(intermediates)/svg/JSSVGAnimationElement.h \
538     $(intermediates)/svg/JSSVGCircleElement.h \
539     $(intermediates)/svg/JSSVGClipPathElement.h \
540     $(intermediates)/svg/JSSVGColor.h \
541     $(intermediates)/svg/JSSVGComponentTransferFunctionElement.h \
542     $(intermediates)/svg/JSSVGCursorElement.h \
543     $(intermediates)/svg/JSSVGDefinitionSrcElement.h \
544     $(intermediates)/svg/JSSVGDefsElement.h \
545     $(intermediates)/svg/JSSVGDescElement.h \
546     $(intermediates)/svg/JSSVGDocument.h \
547     $(intermediates)/svg/JSSVGElement.h \
548     $(intermediates)/svg/JSSVGElementInstance.h \
549     $(intermediates)/svg/JSSVGElementInstanceList.h \
550     $(intermediates)/svg/JSSVGEllipseElement.h \
551     $(intermediates)/svg/JSSVGException.h \
552     $(intermediates)/svg/JSSVGFEBlendElement.h \
553     $(intermediates)/svg/JSSVGFEColorMatrixElement.h \
554     $(intermediates)/svg/JSSVGFEComponentTransferElement.h \
555     $(intermediates)/svg/JSSVGFECompositeElement.h \
556     $(intermediates)/svg/JSSVGFEDiffuseLightingElement.h \
557     $(intermediates)/svg/JSSVGFEDisplacementMapElement.h \
558     $(intermediates)/svg/JSSVGFEDistantLightElement.h \
559     $(intermediates)/svg/JSSVGFEFloodElement.h \
560     $(intermediates)/svg/JSSVGFEFuncAElement.h \
561     $(intermediates)/svg/JSSVGFEFuncBElement.h \
562     $(intermediates)/svg/JSSVGFEFuncGElement.h \
563     $(intermediates)/svg/JSSVGFEFuncRElement.h \
564     $(intermediates)/svg/JSSVGFEGaussianBlurElement.h \
565     $(intermediates)/svg/JSSVGFEImageElement.h \
566     $(intermediates)/svg/JSSVGFEMergeElement.h \
567     $(intermediates)/svg/JSSVGFEMergeNodeElement.h \
568     $(intermediates)/svg/JSSVGFEOffsetElement.h \
569     $(intermediates)/svg/JSSVGFEPointLightElement.h \
570     $(intermediates)/svg/JSSVGFESpecularLightingElement.h \
571     $(intermediates)/svg/JSSVGFESpotLightElement.h \
572     $(intermediates)/svg/JSSVGFETileElement.h \
573     $(intermediates)/svg/JSSVGFETurbulenceElement.h \
574     $(intermediates)/svg/JSSVGFilterElement.h \
575     $(intermediates)/svg/JSSVGFontElement.h \
576     $(intermediates)/svg/JSSVGFontFaceElement.h \
577     $(intermediates)/svg/JSSVGFontFaceFormatElement.h \
578     $(intermediates)/svg/JSSVGFontFaceNameElement.h \
579     $(intermediates)/svg/JSSVGFontFaceSrcElement.h \
580     $(intermediates)/svg/JSSVGFontFaceUriElement.h \
581     $(intermediates)/svg/JSSVGForeignObjectElement.h \
582     $(intermediates)/svg/JSSVGGElement.h \
583     $(intermediates)/svg/JSSVGGlyphElement.h \
584     $(intermediates)/svg/JSSVGGradientElement.h \
585     $(intermediates)/svg/JSSVGHKernElement.h \
586     $(intermediates)/svg/JSSVGImageElement.h \
587     $(intermediates)/svg/JSSVGLength.h \
588     $(intermediates)/svg/JSSVGLengthList.h \
589     $(intermediates)/svg/JSSVGLineElement.h \
590     $(intermediates)/svg/JSSVGLinearGradientElement.h \
591     $(intermediates)/svg/JSSVGMarkerElement.h \
592     $(intermediates)/svg/JSSVGMaskElement.h \
593     $(intermediates)/svg/JSSVGMatrix.h \
594     $(intermediates)/svg/JSSVGMetadataElement.h \
595     $(intermediates)/svg/JSSVGMissingGlyphElement.h \
596     $(intermediates)/svg/JSSVGNumber.h \
597     $(intermediates)/svg/JSSVGNumberList.h \
598     $(intermediates)/svg/JSSVGPaint.h \
599     $(intermediates)/svg/JSSVGPathElement.h \
600     $(intermediates)/svg/JSSVGPathSeg.h \
601     $(intermediates)/svg/JSSVGPathSegArcAbs.h \
602     $(intermediates)/svg/JSSVGPathSegArcRel.h \
603     $(intermediates)/svg/JSSVGPathSegClosePath.h \
604     $(intermediates)/svg/JSSVGPathSegCurvetoCubicAbs.h \
605     $(intermediates)/svg/JSSVGPathSegCurvetoCubicRel.h \
606     $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothAbs.h \
607     $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothRel.h \
608     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticAbs.h \
609     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticRel.h \
610     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothAbs.h \
611     $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothRel.h \
612     $(intermediates)/svg/JSSVGPathSegLinetoAbs.h \
613     $(intermediates)/svg/JSSVGPathSegLinetoHorizontalAbs.h \
614     $(intermediates)/svg/JSSVGPathSegLinetoHorizontalRel.h \
615     $(intermediates)/svg/JSSVGPathSegLinetoRel.h \
616     $(intermediates)/svg/JSSVGPathSegLinetoVerticalAbs.h \
617     $(intermediates)/svg/JSSVGPathSegLinetoVerticalRel.h \
618     $(intermediates)/svg/JSSVGPathSegList.h \
619     $(intermediates)/svg/JSSVGPathSegMovetoAbs.h \
620     $(intermediates)/svg/JSSVGPathSegMovetoRel.h \
621     $(intermediates)/svg/JSSVGPatternElement.h \
622     $(intermediates)/svg/JSSVGPoint.h \
623     $(intermediates)/svg/JSSVGPointList.h \
624     $(intermediates)/svg/JSSVGPolygonElement.h \
625     $(intermediates)/svg/JSSVGPolylineElement.h \
626     $(intermediates)/svg/JSSVGPreserveAspectRatio.h \
627     $(intermediates)/svg/JSSVGRadialGradientElement.h \
628     $(intermediates)/svg/JSSVGRect.h \
629     $(intermediates)/svg/JSSVGRectElement.h \
630     $(intermediates)/svg/JSSVGRenderingIntent.h \
631     $(intermediates)/svg/JSSVGSVGElement.h \
632     $(intermediates)/svg/JSSVGScriptElement.h \
633     $(intermediates)/svg/JSSVGSetElement.h \
634     $(intermediates)/svg/JSSVGStopElement.h \
635     $(intermediates)/svg/JSSVGStringList.h \
636     $(intermediates)/svg/JSSVGStyleElement.h \
637     $(intermediates)/svg/JSSVGSwitchElement.h \
638     $(intermediates)/svg/JSSVGSymbolElement.h \
639     $(intermediates)/svg/JSSVGTRefElement.h \
640     $(intermediates)/svg/JSSVGTSpanElement.h \
641     $(intermediates)/svg/JSSVGTextContentElement.h \
642     $(intermediates)/svg/JSSVGTextElement.h \
643     $(intermediates)/svg/JSSVGTextPathElement.h \
644     $(intermediates)/svg/JSSVGTextPositioningElement.h \
645     $(intermediates)/svg/JSSVGTitleElement.h \
646     $(intermediates)/svg/JSSVGTransform.h \
647     $(intermediates)/svg/JSSVGTransformList.h \
648     $(intermediates)/svg/JSSVGUnitTypes.h \
649     $(intermediates)/svg/JSSVGUseElement.h \
650     $(intermediates)/svg/JSSVGViewElement.h \
651     $(intermediates)/svg/JSSVGZoomEvent.h
652 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
653 $(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 $@) $<
654 $(GEN): $(intermediates)/svg/JS%.h : $(LOCAL_PATH)/svg/%.idl $(js_binding_scripts)
655         $(transform-generated-source)
656 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
657
658 # We also need the .cpp files, which are generated as side effects of the
659 # above rules.  Specifying this explicitly makes -j2 work.
660 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/svg/%.cpp : $(intermediates)/svg/%.h
661 endif
662
663 # new section for Workers
664 GEN := \
665     $(intermediates)/workers/JSWorker.h \
666     $(intermediates)/workers/JSWorkerContext.h \
667     $(intermediates)/workers/JSWorkerLocation.h
668
669 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
670 $(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 $@) $<
671 $(GEN): $(intermediates)/workers/JS%.h : $(LOCAL_PATH)/workers/%.idl $(js_binding_scripts)
672         $(transform-generated-source)
673 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
674
675 # We also need the .cpp files, which are generated as side effects of the
676 # above rules.  Specifying this explicitly makes -j2 work.
677 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/workers/%.cpp : $(intermediates)/workers/%.h
678
679 #new section for xml/DOMParser.idl
680 GEN := \
681     $(intermediates)/xml/JSDOMParser.h \
682     $(intermediates)/xml/JSXMLHttpRequest.h \
683     $(intermediates)/xml/JSXMLHttpRequestException.h \
684     $(intermediates)/xml/JSXMLHttpRequestProgressEvent.h \
685     $(intermediates)/xml/JSXMLHttpRequestUpload.h \
686     $(intermediates)/xml/JSXMLSerializer.h \
687     $(intermediates)/xml/JSXPathEvaluator.h \
688         $(intermediates)/xml/JSXPathException.h \
689     $(intermediates)/xml/JSXPathExpression.h \
690     $(intermediates)/xml/JSXPathNSResolver.h \
691     $(intermediates)/xml/JSXPathResult.h  \
692     $(intermediates)/xml/JSXSLTProcessor.h 
693 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
694 $(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 $@) $<
695 $(GEN): $(intermediates)/xml/JS%.h : $(LOCAL_PATH)/xml/%.idl $(js_binding_scripts)
696         $(transform-generated-source)
697 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
698
699 # We also need the .cpp files, which are generated as side effects of the
700 # above rules.  Specifying this explicitly makes -j2 work.
701 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/xml/%.cpp : $(intermediates)/xml/%.h
702 #end
703
704 # HTML tag and attribute names
705
706 GEN:= $(intermediates)/HTMLNames.cpp $(intermediates)/HTMLElementFactory.cpp  $(intermediates)/JSHTMLElementWrapperFactory.cpp
707 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
708 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(html_tags) --attrs $(html_attrs)  --extraDefines "$(FEATURE_DEFINES)" --factory --wrapperFactory --output $(dir $@)
709 $(GEN): html_tags := $(LOCAL_PATH)/html/HTMLTagNames.in
710 $(GEN): html_attrs := $(LOCAL_PATH)/html/HTMLAttributeNames.in
711 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(html_tags) $(html_attrs)
712         $(transform-generated-source)
713 LOCAL_GENERATED_SOURCES += $(GEN)
714
715 # SVG tag and attribute names
716
717 ifeq ($(ENABLE_SVG), true)
718 GEN:= $(intermediates)/SVGNames.cpp  $(intermediates)/SVGElementFactory.cpp $(intermediates)/JSSVGElementWrapperFactory.cpp
719 SVG_FLAGS:=ENABLE_SVG_AS_IMAGE=1 ENABLE_SVG_FILTERS=1 ENABLE_SVG_FONTS=1 ENABLE_SVG_FOREIGN_OBJECT=1 ENABLE_SVG_USE=1
720 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
721 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(svg_tags) --attrs $(svg_attrs) --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory --output $(dir $@) 
722 $(GEN): svg_tags := $(LOCAL_PATH)/svg/svgtags.in
723 $(GEN): svg_attrs := $(LOCAL_PATH)/svg/svgattrs.in
724 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(svg_tags) $(svg_attrs)
725         $(transform-generated-source)
726 LOCAL_GENERATED_SOURCES += $(GEN)
727 endif
728
729 # XML attribute names
730
731 GEN:= $(intermediates)/XMLNames.cpp
732 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
733 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --attrs $(xml_attrs) --output $(dir $@) 
734 $(GEN): xml_attrs := $(LOCAL_PATH)/xml/xmlattrs.in
735 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xml_attrs)
736         $(transform-generated-source)
737 LOCAL_GENERATED_SOURCES += $(GEN)
738
739 # XLink attribute names
740
741 ifeq ($(ENABLE_SVG), true)
742 GEN:= $(intermediates)/XLinkNames.cpp
743 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
744 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --attrs $(xlink_attrs) --output $(dir $@) 
745 $(GEN): xlink_attrs := $(LOCAL_PATH)/svg/xlinkattrs.in
746 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xlink_attrs)
747         $(transform-generated-source)
748 LOCAL_GENERATED_SOURCES += $(GEN)
749 endif