3 ## Copyright 2007, The Android Open Source Project
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
9 ## http://www.apache.org/licenses/LICENSE-2.0
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.
18 # This comment block is read by tools/webkitsync/diff.cpp
19 # Don't remove it or move it.
21 # The following files are intentionally not included
22 # LOCAL_SRC_FILES_EXCLUDED := \
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 \
38 # svg/SVGTransformable.idl \
39 # svg/SVGURIReference.idl \
40 # svg/SVGViewSpec.idl \
41 # svg/SVGZoomAndPan.idl \
43 # This comment block is read by tools/webkitsync/diff.cpp
44 # Don't remove it or move it.
46 # The following files are intentionally not generated
47 # LOCAL_GENERATED_FILES_EXCLUDED := \
48 # WMLElementFactory.cpp \
52 # This comment block is read by tools/webkitsync/diff.cpp
53 # Don't remove it or move it.
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 :=
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
65 # These files are Android extensions
66 # LOCAL_ANDROID_SRC_FILES_INCLUDED := \
70 # CSS property names and value keywords
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"
77 @cat $< > $(dir $@)/$(notdir $<)
78 ifeq ($(ENABLE_SVG),true)
79 @cat $^ > $(@:%.h=%.in)
81 @cp -f $(SCRIPT) $(dir $@)
82 @cd $(dir $@) ; perl ./$(notdir $(SCRIPT))
83 LOCAL_GENERATED_SOURCES += $(GEN)
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"
90 @cp -f $(SCRIPT) $(dir $@)
91 ifeq ($(ENABLE_SVG),true)
92 @perl -ne 'print lc' $^ > $(@:%.h=%.in)
94 @perl -ne 'print lc' $< > $(@:%.h=%.in)
96 @cd $(dir $@); perl makevalues.pl
97 LOCAL_GENERATED_SOURCES += $(GEN)
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)
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)
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)
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)
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)
145 LOCAL_GENERATED_SOURCES += $(GEN)
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)
155 LOCAL_GENERATED_SOURCES += $(GEN)
157 # user agent style sheets
159 style_sheets := $(LOCAL_PATH)/css/html.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
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)
170 # character set name table
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)
182 # the above rule will make this build too
183 $(intermediates)/css/UserAgentStyleSheets.cpp : $(GEN)
186 # lookup tables for old-style JavaScript bindings
187 create_hash_table := $(LOCAL_PATH)/../JavaScriptCore/create_hash_table
189 GEN := $(addprefix $(intermediates)/, \
190 bindings/js/JSDOMWindowBase.lut.h \
192 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
193 $(GEN): $(intermediates)/bindings/js/%.lut.h: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
194 $(transform-generated-source)
195 LOCAL_GENERATED_SOURCES += $(GEN)
198 GEN := $(intermediates)/bindings/js/JSHTMLInputElementBaseTable.cpp
199 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@
200 $(GEN): $(intermediates)/bindings/js/%Table.cpp: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table)
201 $(transform-generated-source)
202 $(intermediates)/bindings/js/JSHTMLInputElementBase.o : $(GEN)
204 # lookup tables for old-style JavaScript bindings
205 js_binding_scripts := $(addprefix $(LOCAL_PATH)/,\
206 bindings/scripts/CodeGenerator.pm \
207 bindings/scripts/IDLParser.pm \
208 bindings/scripts/IDLStructure.pm \
209 bindings/scripts/generate-bindings.pl \
212 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
215 $(intermediates)/css/JSCSSCharsetRule.h \
216 $(intermediates)/css/JSCSSFontFaceRule.h \
217 $(intermediates)/css/JSCSSImportRule.h \
218 $(intermediates)/css/JSCSSMediaRule.h \
219 $(intermediates)/css/JSCSSPageRule.h \
220 $(intermediates)/css/JSCSSPrimitiveValue.h \
221 $(intermediates)/css/JSCSSRule.h \
222 $(intermediates)/css/JSCSSRuleList.h \
223 $(intermediates)/css/JSCSSStyleDeclaration.h \
224 $(intermediates)/css/JSCSSStyleRule.h \
225 $(intermediates)/css/JSCSSStyleSheet.h \
226 $(intermediates)/css/JSCSSUnknownRule.h \
227 $(intermediates)/css/JSCSSValue.h \
228 $(intermediates)/css/JSCSSValueList.h \
229 $(intermediates)/css/JSCSSVariablesDeclaration.h \
230 $(intermediates)/css/JSCSSVariablesRule.h \
231 $(intermediates)/css/JSCounter.h \
232 $(intermediates)/css/JSMedia.h \
233 $(intermediates)/css/JSMediaList.h \
234 $(intermediates)/css/JSRGBColor.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)
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
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
258 # $(intermediates)/dom/JSEventTarget.h \
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/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/JSErrorEvent.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)
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
318 $(intermediates)/html/JSDataGridColumn.h \
319 $(intermediates)/html/JSDataGridColumnList.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/JSHTMLDataGridElement.h \
335 $(intermediates)/html/JSHTMLDataGridCellElement.h \
336 $(intermediates)/html/JSHTMLDataGridColElement.h \
337 $(intermediates)/html/JSHTMLDataGridRowElement.h \
338 $(intermediates)/html/JSHTMLDListElement.h \
339 $(intermediates)/html/JSHTMLDirectoryElement.h \
340 $(intermediates)/html/JSHTMLDivElement.h \
341 $(intermediates)/html/JSHTMLDocument.h \
342 $(intermediates)/html/JSHTMLElement.h \
343 $(intermediates)/html/JSHTMLEmbedElement.h \
344 $(intermediates)/html/JSHTMLFieldSetElement.h \
345 $(intermediates)/html/JSHTMLFontElement.h \
346 $(intermediates)/html/JSHTMLFormElement.h \
347 $(intermediates)/html/JSHTMLFrameElement.h \
348 $(intermediates)/html/JSHTMLFrameSetElement.h \
349 $(intermediates)/html/JSHTMLHRElement.h \
350 $(intermediates)/html/JSHTMLHeadElement.h \
351 $(intermediates)/html/JSHTMLHeadingElement.h \
352 $(intermediates)/html/JSHTMLHtmlElement.h \
353 $(intermediates)/html/JSHTMLIFrameElement.h \
354 $(intermediates)/html/JSHTMLImageElement.h \
355 $(intermediates)/html/JSHTMLInputElement.h \
356 $(intermediates)/html/JSHTMLIsIndexElement.h \
357 $(intermediates)/html/JSHTMLLIElement.h \
358 $(intermediates)/html/JSHTMLLabelElement.h \
359 $(intermediates)/html/JSHTMLLegendElement.h \
360 $(intermediates)/html/JSHTMLLinkElement.h \
361 $(intermediates)/html/JSHTMLMapElement.h \
362 $(intermediates)/html/JSHTMLMarqueeElement.h \
363 $(intermediates)/html/JSHTMLMediaElement.h \
364 $(intermediates)/html/JSHTMLMenuElement.h \
365 $(intermediates)/html/JSHTMLMetaElement.h \
366 $(intermediates)/html/JSHTMLModElement.h \
367 $(intermediates)/html/JSHTMLOListElement.h \
368 $(intermediates)/html/JSHTMLObjectElement.h \
369 $(intermediates)/html/JSHTMLOptGroupElement.h \
370 $(intermediates)/html/JSHTMLOptionElement.h \
371 $(intermediates)/html/JSHTMLOptionsCollection.h \
372 $(intermediates)/html/JSHTMLParagraphElement.h \
373 $(intermediates)/html/JSHTMLParamElement.h \
374 $(intermediates)/html/JSHTMLPreElement.h \
375 $(intermediates)/html/JSHTMLQuoteElement.h \
376 $(intermediates)/html/JSHTMLScriptElement.h \
377 $(intermediates)/html/JSHTMLSelectElement.h \
378 $(intermediates)/html/JSHTMLSourceElement.h \
379 $(intermediates)/html/JSHTMLStyleElement.h \
380 $(intermediates)/html/JSHTMLTableCaptionElement.h \
381 $(intermediates)/html/JSHTMLTableCellElement.h \
382 $(intermediates)/html/JSHTMLTableColElement.h \
383 $(intermediates)/html/JSHTMLTableElement.h \
384 $(intermediates)/html/JSHTMLTableRowElement.h \
385 $(intermediates)/html/JSHTMLTableSectionElement.h \
386 $(intermediates)/html/JSHTMLTextAreaElement.h \
387 $(intermediates)/html/JSHTMLTitleElement.h \
388 $(intermediates)/html/JSHTMLUListElement.h \
389 $(intermediates)/html/JSHTMLVideoElement.h \
390 $(intermediates)/html/JSImageData.h \
391 $(intermediates)/html/JSMediaError.h \
392 $(intermediates)/html/JSTextMetrics.h \
393 $(intermediates)/html/JSTimeRanges.h \
394 $(intermediates)/html/JSValidityState.h \
395 $(intermediates)/html/JSVoidCallback.h
397 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
398 $(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 $@) $<
399 $(GEN): $(intermediates)/html/JS%.h : $(LOCAL_PATH)/html/%.idl $(js_binding_scripts)
400 $(transform-generated-source)
401 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
403 # We also need the .cpp files, which are generated as side effects of the
404 # above rules. Specifying this explicitly makes -j2 work.
405 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h
408 $(intermediates)/html/canvas/JSCanvasGradient.h \
409 $(intermediates)/html/canvas/JSCanvasPattern.h \
410 $(intermediates)/html/canvas/JSCanvasRenderingContext2D.h
412 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
413 $(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 $@) $<
414 $(GEN): $(intermediates)/html/canvas/JS%.h : $(LOCAL_PATH)/html/canvas/%.idl $(js_binding_scripts)
415 $(transform-generated-source)
416 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
418 # We also need the .cpp files, which are generated as side effects of the
419 # above rules. Specifying this explicitly makes -j2 work.
420 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/canvas/%.cpp : $(intermediates)/html/canvas/%.h
423 $(intermediates)/inspector/JSInspectorBackend.h \
424 $(intermediates)/inspector/JSJavaScriptCallFrame.h
426 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
427 $(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 $@) $<
428 $(GEN): $(intermediates)/inspector/JS%.h : $(LOCAL_PATH)/inspector/%.idl $(js_binding_scripts)
429 $(transform-generated-source)
430 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
432 # We also need the .cpp files, which are generated as side effects of the
433 # above rules. Specifying this explicitly makes -j2 work.
434 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/inspector/%.cpp : $(intermediates)/inspector/%.h
437 $(intermediates)/loader/appcache/JSDOMApplicationCache.h
439 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
440 $(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 $@) $<
441 $(GEN): $(intermediates)/loader/appcache/JS%.h : $(LOCAL_PATH)/loader/appcache/%.idl $(js_binding_scripts)
442 $(transform-generated-source)
443 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
445 # We also need the .cpp files, which are generated as side effects of the
446 # above rules. Specifying this explicitly makes -j2 work.
447 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/loader/appcache/%.cpp : $(intermediates)/loader/appcache/%.h
449 # MANUAL MERGE : I took this out because compiling the result shows:
450 # out/.../JSAbstractView.cpp:27:26: error: AbstractView.h: No such file or directory
451 # I can't find AbstractView.h anywhere
452 # $(intermediates)/page/JSAbstractView.h \
455 $(intermediates)/page/JSBarInfo.h \
456 $(intermediates)/page/JSConsole.h \
457 $(intermediates)/page/JSCoordinates.h \
458 $(intermediates)/page/JSDOMSelection.h \
459 $(intermediates)/page/JSDOMWindow.h \
460 $(intermediates)/page/JSGeolocation.h \
461 $(intermediates)/page/JSGeoposition.h \
462 $(intermediates)/page/JSHistory.h \
463 $(intermediates)/page/JSLocation.h \
464 $(intermediates)/page/JSNavigator.h \
465 $(intermediates)/page/JSPositionError.h \
466 $(intermediates)/page/JSScreen.h \
467 $(intermediates)/page/JSWebKitPoint.h \
468 $(intermediates)/page/JSWorkerNavigator.h
470 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
471 $(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 $@) $<
472 $(GEN): $(intermediates)/page/JS%.h : $(LOCAL_PATH)/page/%.idl $(js_binding_scripts)
473 $(transform-generated-source)
474 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
476 # We also need the .cpp files, which are generated as side effects of the
477 # above rules. Specifying this explicitly makes -j2 work.
478 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/page/%.cpp : $(intermediates)/page/%.h
481 $(intermediates)/plugins/JSMimeType.h \
482 $(intermediates)/plugins/JSMimeTypeArray.h \
483 $(intermediates)/plugins/JSPlugin.h \
484 $(intermediates)/plugins/JSPluginArray.h
486 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
487 $(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 $@) $<
488 $(GEN): $(intermediates)/plugins/JS%.h : $(LOCAL_PATH)/plugins/%.idl $(js_binding_scripts)
489 $(transform-generated-source)
490 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
492 # We also need the .cpp files, which are generated as side effects of the
493 # above rules. Specifying this explicitly makes -j2 work.
494 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/plugins/%.cpp : $(intermediates)/plugins/%.h
496 # New section for Database storage API
498 $(intermediates)/storage/JSDatabase.h \
499 $(intermediates)/storage/JSSQLError.h \
500 $(intermediates)/storage/JSSQLResultSet.h \
501 $(intermediates)/storage/JSSQLResultSetRowList.h \
502 $(intermediates)/storage/JSSQLTransaction.h
504 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
505 $(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 $@) $<
506 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
507 $(transform-generated-source)
508 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
510 # We also need the .cpp files, which are generated as side effects of the
511 # above rules. Specifying this explicitly makes -j2 work.
512 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
514 # new section for DOM Storage APIs
516 $(intermediates)/storage/JSStorage.h \
517 $(intermediates)/storage/JSStorageEvent.h
519 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
520 $(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 $@) $<
521 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts)
522 $(transform-generated-source)
523 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
525 # We also need the .cpp files, which are generated as side effects of the
526 # above rules. Specifying this explicitly makes -j2 work.
527 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
530 ifeq ($(ENABLE_SVG), true)
532 $(intermediates)/svg/JSSVGAElement.h \
533 $(intermediates)/svg/JSSVGAltGlyphElement.h \
534 $(intermediates)/svg/JSSVGAngle.h \
535 $(intermediates)/svg/JSSVGAnimateColorElement.h \
536 $(intermediates)/svg/JSSVGAnimateElement.h \
537 $(intermediates)/svg/JSSVGAnimateTransformElement.h \
538 $(intermediates)/svg/JSSVGAnimatedAngle.h \
539 $(intermediates)/svg/JSSVGAnimatedBoolean.h \
540 $(intermediates)/svg/JSSVGAnimatedEnumeration.h \
541 $(intermediates)/svg/JSSVGAnimatedInteger.h \
542 $(intermediates)/svg/JSSVGAnimatedLength.h \
543 $(intermediates)/svg/JSSVGAnimatedLengthList.h \
544 $(intermediates)/svg/JSSVGAnimatedNumber.h \
545 $(intermediates)/svg/JSSVGAnimatedNumberList.h \
546 $(intermediates)/svg/JSSVGAnimatedPreserveAspectRatio.h \
547 $(intermediates)/svg/JSSVGAnimatedRect.h \
548 $(intermediates)/svg/JSSVGAnimatedString.h \
549 $(intermediates)/svg/JSSVGAnimatedTransformList.h \
550 $(intermediates)/svg/JSSVGAnimationElement.h \
551 $(intermediates)/svg/JSSVGCircleElement.h \
552 $(intermediates)/svg/JSSVGClipPathElement.h \
553 $(intermediates)/svg/JSSVGColor.h \
554 $(intermediates)/svg/JSSVGComponentTransferFunctionElement.h \
555 $(intermediates)/svg/JSSVGCursorElement.h \
556 $(intermediates)/svg/JSSVGDefinitionSrcElement.h \
557 $(intermediates)/svg/JSSVGDefsElement.h \
558 $(intermediates)/svg/JSSVGDescElement.h \
559 $(intermediates)/svg/JSSVGDocument.h \
560 $(intermediates)/svg/JSSVGElement.h \
561 $(intermediates)/svg/JSSVGElementInstance.h \
562 $(intermediates)/svg/JSSVGElementInstanceList.h \
563 $(intermediates)/svg/JSSVGEllipseElement.h \
564 $(intermediates)/svg/JSSVGException.h \
565 $(intermediates)/svg/JSSVGFEBlendElement.h \
566 $(intermediates)/svg/JSSVGFEColorMatrixElement.h \
567 $(intermediates)/svg/JSSVGFEComponentTransferElement.h \
568 $(intermediates)/svg/JSSVGFECompositeElement.h \
569 $(intermediates)/svg/JSSVGFEDiffuseLightingElement.h \
570 $(intermediates)/svg/JSSVGFEDisplacementMapElement.h \
571 $(intermediates)/svg/JSSVGFEDistantLightElement.h \
572 $(intermediates)/svg/JSSVGFEFloodElement.h \
573 $(intermediates)/svg/JSSVGFEFuncAElement.h \
574 $(intermediates)/svg/JSSVGFEFuncBElement.h \
575 $(intermediates)/svg/JSSVGFEFuncGElement.h \
576 $(intermediates)/svg/JSSVGFEFuncRElement.h \
577 $(intermediates)/svg/JSSVGFEGaussianBlurElement.h \
578 $(intermediates)/svg/JSSVGFEImageElement.h \
579 $(intermediates)/svg/JSSVGFEMergeElement.h \
580 $(intermediates)/svg/JSSVGFEMergeNodeElement.h \
581 $(intermediates)/svg/JSSVGFEOffsetElement.h \
582 $(intermediates)/svg/JSSVGFEPointLightElement.h \
583 $(intermediates)/svg/JSSVGFESpecularLightingElement.h \
584 $(intermediates)/svg/JSSVGFESpotLightElement.h \
585 $(intermediates)/svg/JSSVGFETileElement.h \
586 $(intermediates)/svg/JSSVGFETurbulenceElement.h \
587 $(intermediates)/svg/JSSVGFilterElement.h \
588 $(intermediates)/svg/JSSVGFontElement.h \
589 $(intermediates)/svg/JSSVGFontFaceElement.h \
590 $(intermediates)/svg/JSSVGFontFaceFormatElement.h \
591 $(intermediates)/svg/JSSVGFontFaceNameElement.h \
592 $(intermediates)/svg/JSSVGFontFaceSrcElement.h \
593 $(intermediates)/svg/JSSVGFontFaceUriElement.h \
594 $(intermediates)/svg/JSSVGForeignObjectElement.h \
595 $(intermediates)/svg/JSSVGGElement.h \
596 $(intermediates)/svg/JSSVGGlyphElement.h \
597 $(intermediates)/svg/JSSVGGradientElement.h \
598 $(intermediates)/svg/JSSVGHKernElement.h \
599 $(intermediates)/svg/JSSVGImageElement.h \
600 $(intermediates)/svg/JSSVGLength.h \
601 $(intermediates)/svg/JSSVGLengthList.h \
602 $(intermediates)/svg/JSSVGLineElement.h \
603 $(intermediates)/svg/JSSVGLinearGradientElement.h \
604 $(intermediates)/svg/JSSVGMarkerElement.h \
605 $(intermediates)/svg/JSSVGMaskElement.h \
606 $(intermediates)/svg/JSSVGMatrix.h \
607 $(intermediates)/svg/JSSVGMetadataElement.h \
608 $(intermediates)/svg/JSSVGMissingGlyphElement.h \
609 $(intermediates)/svg/JSSVGNumber.h \
610 $(intermediates)/svg/JSSVGNumberList.h \
611 $(intermediates)/svg/JSSVGPaint.h \
612 $(intermediates)/svg/JSSVGPathElement.h \
613 $(intermediates)/svg/JSSVGPathSeg.h \
614 $(intermediates)/svg/JSSVGPathSegArcAbs.h \
615 $(intermediates)/svg/JSSVGPathSegArcRel.h \
616 $(intermediates)/svg/JSSVGPathSegClosePath.h \
617 $(intermediates)/svg/JSSVGPathSegCurvetoCubicAbs.h \
618 $(intermediates)/svg/JSSVGPathSegCurvetoCubicRel.h \
619 $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothAbs.h \
620 $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothRel.h \
621 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticAbs.h \
622 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticRel.h \
623 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothAbs.h \
624 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothRel.h \
625 $(intermediates)/svg/JSSVGPathSegLinetoAbs.h \
626 $(intermediates)/svg/JSSVGPathSegLinetoHorizontalAbs.h \
627 $(intermediates)/svg/JSSVGPathSegLinetoHorizontalRel.h \
628 $(intermediates)/svg/JSSVGPathSegLinetoRel.h \
629 $(intermediates)/svg/JSSVGPathSegLinetoVerticalAbs.h \
630 $(intermediates)/svg/JSSVGPathSegLinetoVerticalRel.h \
631 $(intermediates)/svg/JSSVGPathSegList.h \
632 $(intermediates)/svg/JSSVGPathSegMovetoAbs.h \
633 $(intermediates)/svg/JSSVGPathSegMovetoRel.h \
634 $(intermediates)/svg/JSSVGPatternElement.h \
635 $(intermediates)/svg/JSSVGPoint.h \
636 $(intermediates)/svg/JSSVGPointList.h \
637 $(intermediates)/svg/JSSVGPolygonElement.h \
638 $(intermediates)/svg/JSSVGPolylineElement.h \
639 $(intermediates)/svg/JSSVGPreserveAspectRatio.h \
640 $(intermediates)/svg/JSSVGRadialGradientElement.h \
641 $(intermediates)/svg/JSSVGRect.h \
642 $(intermediates)/svg/JSSVGRectElement.h \
643 $(intermediates)/svg/JSSVGRenderingIntent.h \
644 $(intermediates)/svg/JSSVGSVGElement.h \
645 $(intermediates)/svg/JSSVGScriptElement.h \
646 $(intermediates)/svg/JSSVGSetElement.h \
647 $(intermediates)/svg/JSSVGStopElement.h \
648 $(intermediates)/svg/JSSVGStringList.h \
649 $(intermediates)/svg/JSSVGStyleElement.h \
650 $(intermediates)/svg/JSSVGSwitchElement.h \
651 $(intermediates)/svg/JSSVGSymbolElement.h \
652 $(intermediates)/svg/JSSVGTRefElement.h \
653 $(intermediates)/svg/JSSVGTSpanElement.h \
654 $(intermediates)/svg/JSSVGTextContentElement.h \
655 $(intermediates)/svg/JSSVGTextElement.h \
656 $(intermediates)/svg/JSSVGTextPathElement.h \
657 $(intermediates)/svg/JSSVGTextPositioningElement.h \
658 $(intermediates)/svg/JSSVGTitleElement.h \
659 $(intermediates)/svg/JSSVGTransform.h \
660 $(intermediates)/svg/JSSVGTransformList.h \
661 $(intermediates)/svg/JSSVGUnitTypes.h \
662 $(intermediates)/svg/JSSVGUseElement.h \
663 $(intermediates)/svg/JSSVGViewElement.h \
664 $(intermediates)/svg/JSSVGZoomEvent.h
665 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
666 $(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 $@) $<
667 $(GEN): $(intermediates)/svg/JS%.h : $(LOCAL_PATH)/svg/%.idl $(js_binding_scripts)
668 $(transform-generated-source)
669 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
671 # We also need the .cpp files, which are generated as side effects of the
672 # above rules. Specifying this explicitly makes -j2 work.
673 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/svg/%.cpp : $(intermediates)/svg/%.h
676 # new section for Workers
678 $(intermediates)/workers/JSAbstractWorker.h \
679 $(intermediates)/workers/JSDedicatedWorkerContext.h \
680 $(intermediates)/workers/JSSharedWorker.h \
681 $(intermediates)/workers/JSSharedWorkerContext.h \
682 $(intermediates)/workers/JSWorker.h \
683 $(intermediates)/workers/JSWorkerContext.h \
684 $(intermediates)/workers/JSWorkerLocation.h
686 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
687 $(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 $@) $<
688 $(GEN): $(intermediates)/workers/JS%.h : $(LOCAL_PATH)/workers/%.idl $(js_binding_scripts)
689 $(transform-generated-source)
690 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
692 # We also need the .cpp files, which are generated as side effects of the
693 # above rules. Specifying this explicitly makes -j2 work.
694 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/workers/%.cpp : $(intermediates)/workers/%.h
696 #new section for xml/DOMParser.idl
698 $(intermediates)/xml/JSDOMParser.h \
699 $(intermediates)/xml/JSXMLHttpRequest.h \
700 $(intermediates)/xml/JSXMLHttpRequestException.h \
701 $(intermediates)/xml/JSXMLHttpRequestProgressEvent.h \
702 $(intermediates)/xml/JSXMLHttpRequestUpload.h \
703 $(intermediates)/xml/JSXMLSerializer.h \
704 $(intermediates)/xml/JSXPathEvaluator.h \
705 $(intermediates)/xml/JSXPathException.h \
706 $(intermediates)/xml/JSXPathExpression.h \
707 $(intermediates)/xml/JSXPathNSResolver.h \
708 $(intermediates)/xml/JSXPathResult.h \
709 $(intermediates)/xml/JSXSLTProcessor.h
710 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
711 $(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 $@) $<
712 $(GEN): $(intermediates)/xml/JS%.h : $(LOCAL_PATH)/xml/%.idl $(js_binding_scripts)
713 $(transform-generated-source)
714 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
716 # We also need the .cpp files, which are generated as side effects of the
717 # above rules. Specifying this explicitly makes -j2 work.
718 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/xml/%.cpp : $(intermediates)/xml/%.h
721 # HTML tag and attribute names
723 GEN:= $(intermediates)/HTMLNames.cpp $(intermediates)/HTMLElementFactory.cpp $(intermediates)/JSHTMLElementWrapperFactory.cpp
724 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
725 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(html_tags) --attrs $(html_attrs) --extraDefines "$(FEATURE_DEFINES)" --factory --wrapperFactory --output $(dir $@)
726 $(GEN): html_tags := $(LOCAL_PATH)/html/HTMLTagNames.in
727 $(GEN): html_attrs := $(LOCAL_PATH)/html/HTMLAttributeNames.in
728 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(html_tags) $(html_attrs)
729 $(transform-generated-source)
730 LOCAL_GENERATED_SOURCES += $(GEN)
732 # SVG tag and attribute names
734 ifeq ($(ENABLE_SVG), true)
735 GEN:= $(intermediates)/SVGNames.cpp $(intermediates)/SVGElementFactory.cpp $(intermediates)/JSSVGElementWrapperFactory.cpp
736 SVG_FLAGS:=ENABLE_SVG_AS_IMAGE=1 ENABLE_SVG_FILTERS=1 ENABLE_SVG_FONTS=1 ENABLE_SVG_FOREIGN_OBJECT=1 ENABLE_SVG_USE=1
737 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
738 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(svg_tags) --attrs $(svg_attrs) --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory --output $(dir $@)
739 $(GEN): svg_tags := $(LOCAL_PATH)/svg/svgtags.in
740 $(GEN): svg_attrs := $(LOCAL_PATH)/svg/svgattrs.in
741 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(svg_tags) $(svg_attrs)
742 $(transform-generated-source)
743 LOCAL_GENERATED_SOURCES += $(GEN)
746 # XML attribute names
748 GEN:= $(intermediates)/XMLNames.cpp
749 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
750 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --attrs $(xml_attrs) --output $(dir $@)
751 $(GEN): xml_attrs := $(LOCAL_PATH)/xml/xmlattrs.in
752 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xml_attrs)
753 $(transform-generated-source)
754 LOCAL_GENERATED_SOURCES += $(GEN)
756 # XLink attribute names
758 ifeq ($(ENABLE_SVG), true)
759 GEN:= $(intermediates)/XLinkNames.cpp
760 $(GEN): PRIVATE_PATH := $(LOCAL_PATH)
761 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --attrs $(xlink_attrs) --output $(dir $@)
762 $(GEN): xlink_attrs := $(LOCAL_PATH)/svg/xlinkattrs.in
763 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xlink_attrs)
764 $(transform-generated-source)
765 LOCAL_GENERATED_SOURCES += $(GEN)