OSDN Git Service

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