1 include $(srcdir)/Source/WebCore/GNUmakefile.list.am
6 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
7 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
10 -I$(srcdir)/Source/ThirdParty/ANGLE/src \
11 -I$(srcdir)/Source/ThirdParty/ANGLE/include \
12 -I$(srcdir)/Source/ThirdParty/ANGLE/include/GLSLANG \
13 -I$(srcdir)/Source/WebCore \
14 -I$(srcdir)/Source/WebCore/accessibility \
15 -I$(srcdir)/Source/WebCore/bindings \
16 -I$(srcdir)/Source/WebCore/bindings/generic \
17 -I$(srcdir)/Source/WebCore/bindings/js \
18 -I$(srcdir)/Source/WebCore/bindings/js/specialization \
19 -I$(srcdir)/Source/WebCore/bridge \
20 -I$(srcdir)/Source/WebCore/bridge/c \
21 -I$(srcdir)/Source/WebCore/bridge/jni/jsc \
22 -I$(srcdir)/Source/WebCore/bridge/jsc \
23 -I$(srcdir)/Source/WebCore/css \
24 -I$(srcdir)/Source/WebCore/dom \
25 -I$(srcdir)/Source/WebCore/dom/default \
26 -I$(srcdir)/Source/WebCore/editing \
27 -I$(srcdir)/Source/WebCore/fileapi \
28 -I$(srcdir)/Source/WebCore/history \
29 -I$(srcdir)/Source/WebCore/html \
30 -I$(srcdir)/Source/WebCore/html/canvas \
31 -I$(srcdir)/Source/WebCore/html/parser \
32 -I$(srcdir)/Source/WebCore/html/shadow \
33 -I$(srcdir)/Source/WebCore/inspector \
34 -I$(srcdir)/Source/WebCore/loader \
35 -I$(srcdir)/Source/WebCore/loader/appcache \
36 -I$(srcdir)/Source/WebCore/loader/archive \
37 -I$(srcdir)/Source/WebCore/loader/cache \
38 -I$(srcdir)/Source/WebCore/loader/icon \
39 -I$(srcdir)/Source/WebCore/mathml \
40 -I$(srcdir)/Source/WebCore/notifications \
41 -I$(srcdir)/Source/WebCore/page \
42 -I$(srcdir)/Source/WebCore/page/animation \
43 -I$(srcdir)/Source/WebCore/platform \
44 -I$(srcdir)/Source/WebCore/platform/animation \
45 -I$(srcdir)/Source/WebCore/platform/audio \
46 -I$(srcdir)/Source/WebCore/platform/graphics \
47 -I$(srcdir)/Source/WebCore/platform/graphics/filters \
48 -I$(srcdir)/Source/WebCore/platform/graphics/gpu \
49 -I$(srcdir)/Source/WebCore/platform/graphics/opengl \
50 -I$(srcdir)/Source/WebCore/platform/graphics/opentype \
51 -I$(srcdir)/Source/WebCore/platform/graphics/transforms \
52 -I$(srcdir)/Source/WebCore/platform/image-decoders \
53 -I$(srcdir)/Source/WebCore/platform/image-decoders/bmp \
54 -I$(srcdir)/Source/WebCore/platform/image-decoders/gif \
55 -I$(srcdir)/Source/WebCore/platform/image-decoders/ico \
56 -I$(srcdir)/Source/WebCore/platform/image-decoders/jpeg \
57 -I$(srcdir)/Source/WebCore/platform/image-decoders/webp \
58 -I$(srcdir)/Source/WebCore/platform/image-decoders/png \
59 -I$(srcdir)/Source/WebCore/platform/mock \
60 -I$(srcdir)/Source/WebCore/platform/network \
61 -I$(srcdir)/Source/WebCore/platform/sql \
62 -I$(srcdir)/Source/WebCore/platform/text \
63 -I$(srcdir)/Source/WebCore/platform/text/transcoder \
64 -I$(srcdir)/Source/WebCore/plugins \
65 -I$(srcdir)/Source/WebCore/plugins/win \
66 -I$(srcdir)/Source/WebCore/rendering \
67 -I$(srcdir)/Source/WebCore/rendering/mathml \
68 -I$(srcdir)/Source/WebCore/rendering/style \
69 -I$(srcdir)/Source/WebCore/rendering/svg \
70 -I$(srcdir)/Source/WebCore/storage \
71 -I$(srcdir)/Source/WebCore/svg \
72 -I$(srcdir)/Source/WebCore/svg/animation \
73 -I$(srcdir)/Source/WebCore/svg/graphics \
74 -I$(srcdir)/Source/WebCore/svg/graphics/filters \
75 -I$(srcdir)/Source/WebCore/svg/properties \
76 -I$(srcdir)/Source/WebCore/webaudio \
77 -I$(srcdir)/Source/WebCore/websockets \
78 -I$(srcdir)/Source/WebCore/wml \
79 -I$(srcdir)/Source/WebCore/workers \
80 -I$(srcdir)/Source/WebCore/xml \
81 -I$(top_builddir)/WebCore/bindings/js \
82 -I$(top_builddir)/DerivedSources/WebCore \
83 -I$(top_builddir)/DerivedSources \
84 -I$(top_builddir)/DerivedSources/JavaScriptCore \
85 -DDATA_DIR=\"${datadir}\"
87 webcoregtk_cppflags += \
88 -DWEBKITGTK_API_VERSION_STRING=\"@WEBKITGTK_API_VERSION@\" \
90 -I$(srcdir)/Source/WebCore/accessibility/gtk \
91 -I$(srcdir)/Source/WebCore/loader/gtk \
92 -I$(srcdir)/Source/WebCore/page/gtk \
93 -I$(srcdir)/Source/WebCore/platform/graphics/cairo \
94 -I$(srcdir)/Source/WebCore/platform/graphics/gstreamer \
95 -I$(srcdir)/Source/WebCore/platform/graphics/gtk \
96 -I$(srcdir)/Source/WebCore/platform/gtk \
97 -I$(srcdir)/Source/WebCore/platform/network/soup
100 FEATURE_DEFINES += WTF_USE_NATIVE_GTK_MAIN_FRAME_SCROLLBAR=1
101 webcore_cppflags += -DWTF_USE_NATIVE_GTK_MAIN_FRAME_SCROLLBAR=1
105 # Channel mesaging support
107 if ENABLE_CHANNEL_MESSAGING
108 FEATURE_DEFINES += ENABLE_CHANNEL_MESSAGING=1
109 webcore_cppflags += -DENABLE_CHANNEL_MESSAGING=1
110 endif # END ENABLE_CHANNEL_MESSAGING
113 # Fast Mobile Scrolling
115 if ENABLE_FAST_MOBILE_SCROLLING
116 FEATURE_DEFINES += ENABLE_FAST_MOBILE_SCROLLING=1
117 webcore_cppflags += -DENABLE_FAST_MOBILE_SCROLLING=1
118 endif # END ENABLE_FAST_MOBILE_SCROLLING
121 # FreeType font backend
124 webcoregtk_cppflags += \
125 -DWTF_USE_FREETYPE=1 \
126 -I$(srcdir)/Source/WebCore/platform/graphics/freetype
127 endif # END USE_FREETYPE
133 webcoregtk_cppflags += \
135 -I$(srcdir)/Source/WebCore/platform/graphics/pango
136 endif # END USE_PANGO
142 FEATURE_DEFINES += ENABLE_DATAGRID=1
143 webcore_cppflags += -DENABLE_DATAGRID=1
150 FEATURE_DEFINES += ENABLE_METER_TAG=1
151 webcore_cppflags += -DENABLE_METER_TAG=1
152 endif # END ENABLE_METER_TAG
155 # HTML Progress Element
157 if ENABLE_PROGRESS_TAG
158 FEATURE_DEFINES += ENABLE_PROGRESS_TAG=1
159 webcore_cppflags += -DENABLE_PROGRESS_TAG=1
160 endif # END ENABLE_PROGRESS_TAG
163 # JavaScript Debugger/Profiler
165 if ENABLE_JAVASCRIPT_DEBUGGER
166 FEATURE_DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
167 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=1
169 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=0
170 endif # END ENABLE_JAVASCRIPT_DEBUGGER
173 # Offline Web Applications
175 if ENABLE_OFFLINE_WEB_APPLICATIONS
176 FEATURE_DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1
177 webcore_cppflags += -DENABLE_OFFLINE_WEB_APPLICATIONS=1
178 endif # END ENABLE_OFFLINE_WEB_APPLICATIONS
184 FEATURE_DEFINES += ENABLE_DATABASE=1
185 webcore_cppflags += -DENABLE_DATABASE=1
187 webcore_cppflags += -DENABLE_DATABASE=0
188 endif # END ENABLE_DATABASE
191 # HTML5 datalist Support
194 FEATURE_DEFINES += ENABLE_DATALIST=1
195 HTML_FEATURES += ENABLE_DATALIST=1
196 webcore_cppflags += -DENABLE_DATALIST=1
197 endif # END ENABLE_DATALIST
200 # HTML5 data transfer items support
202 if ENABLE_DATA_TRANSFER_ITEMS
203 FEATURE_DEFINES += ENABLE_DATA_TRANSFER_ITEMS=1
204 webcore_cppflags += -DENABLE_DATA_TRANSFER_ITEMS=1
205 endif # END ENABLE_DATA_TRANSFER_ITEMS
208 # HTML5 server-sent events
210 if !ENABLE_EVENTSOURCE
211 global_cppflags += -DENABLE_EVENTSOURCE=0
213 FEATURE_DEFINES += ENABLE_EVENTSOURCE=1
214 webcore_cppflags += -DENABLE_EVENTSOURCE=1
215 endif # ENABLE_EVENTSOURCE
218 # Indexed Database API support
220 if ENABLE_INDEXED_DATABASE
221 FEATURE_DEFINES += ENABLE_INDEXED_DATABASE=1
222 webcore_cppflags += -DENABLE_INDEXED_DATABASE=1
223 endif # END ENABLE_INDEXED_DATABASE
226 # Support for <input type="file" directory>
228 if ENABLE_DIRECTORY_UPLOAD
229 FEATURE_DEFINES += ENABLE_DIRECTORY_UPLOAD=1
230 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=1
232 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=0
233 endif # END ENABLE_DIRECTORY_UPLOAD
236 # HTML5 client-side session and persistent storage
238 if ENABLE_DOM_STORAGE
239 FEATURE_DEFINES += ENABLE_DOM_STORAGE=1
240 webcore_cppflags += -DENABLE_DOM_STORAGE=1
241 endif # END ENABLE_DOM_STORAGE
244 # FileSystem API support
246 if ENABLE_FILE_SYSTEM
247 FEATURE_DEFINES += ENABLE_FILE_SYSTEM=1
248 webcore_cppflags += -DENABLE_FILE_SYSTEM=1
249 endif # END ENABLE_FILE_SYSTEM
255 FEATURE_DEFINES += ENABLE_QUOTA=1
256 webcore_cppflags += -DENABLE_QUOTA=1
257 endif # END ENABLE_QUOTA
260 # Speech Input API support
262 if ENABLE_INPUT_SPEECH
263 FEATURE_DEFINES += ENABLE_INPUT_SPEECH=1
264 webcore_cppflags += -DENABLE_INPUT_SPEECH=1
266 webcore_cppflags += -DENABLE_INPUT_SPEECH=0
267 endif # END ENABLE_INPUT_SPEECH
270 # Icon Database Support
272 if ENABLE_ICONDATABASE
273 webcore_cppflags += -DENABLE_ICONDATABASE=1
275 webcore_cppflags += -DENABLE_ICONDATABASE=0
276 endif # END ENABLE_ICONDATABASE
279 # Image Resizer Support
281 if ENABLE_IMAGE_RESIZER
282 FEATURE_DEFINES += ENABLE_IMAGE_RESIZER=1
283 webcore_cppflags += -DENABLE_IMAGE_RESIZER=1
285 webcore_cppflags += -DENABLE_IMAGE_RESIZER=0
286 endif # END ENABLE_IMAGE_RESIZER
291 if ENABLE_ORIENTATION_EVENTS
292 FEATURE_DEFINES += ENABLE_ORIENTATION_EVENTS=1
293 webcore_cppflags += -DENABLE_ORIENTATION_EVENTS=1
294 endif # END ENABLE_ORIENTATION_EVENTS
300 FEATURE_DEFINES += ENABLE_VIDEO=1
301 HTML_FEATURES += ENABLE_VIDEO=1
302 webcore_cppflags += -DENABLE_VIDEO=1
306 webcore_cppflags += -DGST_DISABLE_DEPRECATED
307 endif # END ENABLE_DEBUG
309 -lgstinterfaces-0.10 \
313 endif # END USE_GSTREAMER
314 endif # END ENABLE_VIDEO
317 # Media Statistics Support
319 if ENABLE_MEDIA_STATISTICS
320 FEATURE_DEFINES += ENABLE_MEDIA_STATISTICS=1
321 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=1
323 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=0
324 endif # END ENABLE_MEDIA_STATISTICS
327 # Javascript Fullscreen Support
329 if ENABLE_FULLSCREEN_API
330 FEATURE_DEFINES += ENABLE_FULLSCREEN_API=1
331 webcore_cppflags += -DENABLE_FULLSCREEN_API=1
332 endif # END ENABLE_FULLSCREEN_API
338 FEATURE_DEFINES += ENABLE_TRACK=1
339 webcore_cppflags += -DENABLE_TRACK=1
341 webcore_cppflags += -DENABLE_TRACK=0
342 endif # END ENABLE_TRACK
348 FEATURE_DEFINES += ENABLE_XHTMLMP=1
349 webcore_cppflags += -DENABLE_XHTMLMP=1
350 endif # END ENABLE_XHTMLMP
356 FEATURE_DEFINES += ENABLE_XPATH=1
357 webcore_cppflags += -DENABLE_XPATH=1
360 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
361 $(GENSOURCES_WEBCORE)/XPathGrammar.h: $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
362 $(GENSOURCES_WEBCORE)/XPathGrammar.cpp: $(WebCore)/xml/XPathGrammar.y
363 rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
364 $(BISON) -d -p xpathyy $< -o $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
365 touch $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
366 echo '#ifndef XPathGrammar_h' > $(GENSOURCES_WEBCORE)/XPathGrammar.h
367 echo '#define XPathGrammar_h' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
368 cat $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
369 echo '#endif' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
370 rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
371 endif # END ENABLE_XPATH
377 FEATURE_DEFINES += ENABLE_XSLT=1
378 webcore_cppflags += -DENABLE_XSLT=1
379 endif # END ENABLE_XSLT
382 # Web Workers support
385 FEATURE_DEFINES += ENABLE_WORKERS=1
386 webcore_cppflags += -DENABLE_WORKERS=1
390 # SharedWorker support
392 if ENABLE_SHARED_WORKERS
393 FEATURE_DEFINES += ENABLE_SHARED_WORKERS=1
394 webcore_cppflags += -DENABLE_SHARED_WORKERS=1
401 FEATURE_DEFINES += ENABLE_WML=1
402 webcore_cppflags += -DENABLE_WML=1
404 # WML tag and attribute names
405 DerivedSources/WebCore/WMLNames.cpp: DerivedSources/WebCore/WMLElementFactory.cpp
406 DerivedSources/WebCore/WMLElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/wml/WMLTagNames.in $(WebCore)/wml/WMLAttributeNames.in
407 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/wml/WMLTagNames.in --attrs $(WebCore)/wml/WMLAttributeNames.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
408 endif # END ENABLE_WML
414 FEATURE_DEFINES += ENABLE_WCSS=1
415 webcore_cppflags += -DENABLE_WCSS=1
416 endif # END ENABLE_WCSS
422 FEATURE_DEFINES += ENABLE_FILTERS=1
423 webcore_cppflags += -DENABLE_FILTERS=1
425 SVG_FEATURES += ENABLE_FILTERS=1
428 endif # END ENABLE_FILTERS
433 if ENABLE_GEOLOCATION
435 FEATURE_DEFINES += ENABLE_GEOLOCATION=1
436 webcore_cppflags += -DENABLE_GEOLOCATION=1
437 endif # END ENABLE_GEOLOCATION
443 FEATURE_DEFINES += ENABLE_MATHML=1
444 webcore_cppflags += -DENABLE_MATHML=1
445 endif # END ENABLE_MATHML
447 # MathML tag and attribute names, and element factory
448 DerivedSources/WebCore/MathMLElementFactory.h: DerivedSources/WebCore/MathMLElementFactory.cpp
449 DerivedSources/WebCore/MathMLNames.h: DerivedSources/WebCore/MathMLNames.cpp
450 DerivedSources/WebCore/MathMLElementFactory.cpp DerivedSources/WebCore/MathMLNames.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/mathml/mathtags.in $(WebCore)/mathml/mathattrs.in
451 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
454 # Notifications support
456 if ENABLE_NOTIFICATIONS
457 FEATURE_DEFINES += ENABLE_NOTIFICATIONS=1
458 webcore_cppflags += -DENABLE_NOTIFICATIONS=1
459 endif # END ENABLE_NOTIFICATIONS
464 # FIXME: allow a more fine-grained inclusion/generation of sources per SVG feature
467 FEATURE_DEFINES += ENABLE_SVG=1
468 webcore_cppflags += -DENABLE_SVG=1
469 WEBCORE_CSS_PROPERTY_NAMES += $(WebCore)/css/SVGCSSPropertyNames.in
470 WEBCORE_CSS_VALUE_KEYWORDS += $(WebCore)/css/SVGCSSValueKeywords.in
474 FEATURE_DEFINES += ENABLE_SVG_USE=1
475 SVG_FEATURES += ENABLE_SVG_USE=1
476 webcore_cppflags += -DENABLE_SVG_USE=1
479 if ENABLE_SVG_FOREIGN_OBJECT
480 FEATURE_DEFINES += ENABLE_SVG_FOREIGN_OBJECT=1
481 SVG_FEATURES += ENABLE_SVG_FOREIGN_OBJECT=1
482 webcore_cppflags += -DENABLE_SVG_FOREIGN_OBJECT=1
486 FEATURE_DEFINES += ENABLE_SVG_FONTS=1
487 SVG_FEATURES += ENABLE_SVG_FONTS=1
488 webcore_cppflags += -DENABLE_SVG_FONTS=1
491 if ENABLE_SVG_AS_IMAGE
492 FEATURE_DEFINES += ENABLE_SVG_AS_IMAGE=1
493 SVG_FEATURES += ENABLE_SVG_AS_IMAGE=1
494 webcore_cppflags += -DENABLE_SVG_AS_IMAGE=1
497 if ENABLE_SVG_ANIMATION
498 FEATURE_DEFINES += ENABLE_SVG_ANIMATION=1
499 SVG_FEATURES += ENABLE_SVG_ANIMATION=1
500 webcore_cppflags += -DENABLE_SVG_ANIMATION=1
503 endif # END ENABLE_SVG
505 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
506 DerivedSources/WebCore/SVGNames.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
507 DerivedSources/WebCore/JSSVGElementWrapperFactory.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
510 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
511 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --extraDefines "$(SVG_FEATURES)" --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
513 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
514 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
519 DerivedSources/WebCore/XLinkNames.h: DerivedSources/WebCore/XLinkNames.cpp
520 DerivedSources/WebCore/XLinkNames.cpp : $(WebCore)/dom/make_names.pl $(WebCore)/svg/xlinkattrs.in
521 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
527 FEATURE_DEFINES += ENABLE_WEB_AUDIO=1
528 webcore_cppflags += -DENABLE_WEB_AUDIO=1
532 # Web Sockets Support
534 if ENABLE_WEB_SOCKETS
535 FEATURE_DEFINES += ENABLE_WEB_SOCKETS=1
536 webcore_cppflags += -DENABLE_WEB_SOCKETS=1
538 webcore_cppflags += -DENABLE_WEB_SOCKETS=0
539 endif # END ENABLE_WEB_SOCKETS
545 FEATURE_DEFINES += ENABLE_BLOB=1
546 webcore_cppflags += -DENABLE_BLOB=1
547 endif # END ENABLE_BLOB
550 # 3D canvas (WebGL) support
553 FEATURE_DEFINES += ENABLE_WEBGL=1
554 webcore_cppflags += -DENABLE_WEBGL=1
555 endif # END ENABLE_WEBGL
558 DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
559 DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
560 if sort $(WEBCORE_CSS_PROPERTY_NAMES) | uniq -d | grep -E '^[^#]'; then echo 'Duplicate value!'; exit 1; fi
561 cat $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
562 $(PERL) "$(WebCore)/css/makeprop.pl"
563 mv CSSPropertyNames* $(GENSOURCES_WEBCORE)
565 # Lower case all the values, as CSS values are case-insensitive
566 DerivedSources/WebCore/CSSValueKeywords.cpp: DerivedSources/WebCore/CSSValueKeywords.h
567 DerivedSources/WebCore/CSSValueKeywords.h: $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/makevalues.pl
568 $(PERL) -ne 'print lc' $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
569 if sort CSSValueKeywords.in | uniq -d | grep -E '^[^#]'; then echo 'Duplicate value!'; exit 1; fi
570 $(PERL) "$(WebCore)/css/makevalues.pl"
571 mv CSSValueKeywords* $(GENSOURCES_WEBCORE)
574 DerivedSources/WebCore/HashTools.h: DerivedSources/WebCore/DocTypeStrings.cpp
575 DerivedSources/WebCore/DocTypeStrings.cpp: $(WebCore)/html/DocTypeStrings.gperf $(WebCore)/make-hash-tools.pl
576 $(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/html/DocTypeStrings.gperf
579 DerivedSources/WebCore/XMLViewerCSS.h: $(WebCore)/xml/XMLViewer.css
580 $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_css $(WebCore)/xml/XMLViewer.css $(GENSOURCES_WEBCORE)/XMLViewerCSS.h
583 DerivedSources/WebCore/XMLViewerJS.h: $(WebCore)/xml/XMLViewer.js
584 $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_js $(WebCore)/xml/XMLViewer.js $(GENSOURCES_WEBCORE)/XMLViewerJS.h
587 DerivedSources/WebCore/HTMLEntityTable.cpp: $(WebCore)/html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
588 $(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o $(GENSOURCES_WEBCORE)/HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
591 DerivedSources/WebCore/ColorData.cpp: $(WebCore)/platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
592 $(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/platform/ColorData.gperf
595 DerivedSources/WebCore/tokenizer.cpp : $(WebCore)/css/tokenizer.flex $(WebCore)/css/maketokenizer
596 $(AM_V_GEN)$(FLEX) -t $< | $(PERL) $(WebCore)/css/maketokenizer > $@
600 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
601 DerivedSources/WebCore/CSSGrammar.h: $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
602 DerivedSources/WebCore/CSSGrammar.cpp: $(WebCore)/css/CSSGrammar.y
603 rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
604 $(BISON) -d -p cssyy $< -o $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
605 touch $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
606 echo '#ifndef CSSGrammar_h' > $(GENSOURCES_WEBCORE)/CSSGrammar.h
607 echo '#define CSSGrammar_h' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
608 cat $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
609 echo '#endif' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
610 rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
612 # user agent style sheets
613 USER_AGENT_STYLE_SHEETS = \
614 $(WebCore)/css/html.css \
615 $(WebCore)/css/mathml.css \
616 $(WebCore)/css/quirks.css \
617 $(WebCore)/css/view-source.css \
618 $(WebCore)/css/svg.css \
619 $(WebCore)/css/wml.css \
620 $(WebCore)/css/mediaControls.css \
621 $(WebCore)/css/mediaControlsGtk.css \
622 $(WebCore)/css/fullscreen.css
624 # new-style JavaScript bindings
626 $(WebCore)/bindings/scripts/CodeGenerator.pm \
627 $(WebCore)/bindings/scripts/IDLParser.pm \
628 $(WebCore)/bindings/scripts/IDLStructure.pm \
629 $(WebCore)/bindings/scripts/InFilesParser.pm \
630 $(WebCore)/bindings/scripts/generate-bindings.pl
632 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp: DerivedSources/WebCore/UserAgentStyleSheets.h
633 DerivedSources/WebCore/UserAgentStyleSheets.h: $(WebCore)/css/make-css-file-arrays.pl $(USER_AGENT_STYLE_SHEETS)
634 $(AM_V_GEN)$(PERL) $< $@ DerivedSources/WebCore/UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
636 # HTML tag and attribute names
637 DerivedSources/WebCore/JSHTMLElementWrapperFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.cpp
638 DerivedSources/WebCore/HTMLElementFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.h
639 DerivedSources/WebCore/HTMLElementFactory.h: DerivedSources/WebCore/HTMLNames.cpp
640 DerivedSources/WebCore/HTMLNames.cpp: DerivedSources/WebCore/HTMLNames.h
642 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
643 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --extraDefines "$(HTML_FEATURES)" --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
645 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
646 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
650 DerivedSources/WebCore/XMLNSNames.cpp DerivedSources/WebCore/XMLNSNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlnsattrs.in
651 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
653 DerivedSources/WebCore/XMLNames.cpp DerivedSources/WebCore/XMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlattrs.in
654 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
656 # All Web Inspector generated files are created with this one call to CodeGeneratorInspector.pm
657 DerivedSources/WebCore/Inspector.idl : $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/generate-inspector-idl
658 $(PYTHON) $(WebCore)/inspector/generate-inspector-idl -o $(GENSOURCES_WEBCORE)/Inspector.idl $(WebCore)/inspector/Inspector.json
660 DerivedSources/WebCore/InspectorBackendDispatcher.cpp: DerivedSources/WebCore/Inspector.idl $(SCRIPTS_BINDINGS) $(WebCore)/inspector/CodeGeneratorInspector.pm
661 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts -I$(WebCore)/inspector $(WebCore)/bindings/scripts/generate-bindings.pl $(IDL_PATH:%=--include "%") --outputDir "$(GENSOURCES_WEBCORE)" --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)" --generator Inspector $<
662 DerivedSources/WebCore/InspectorFrontend.h: DerivedSources/WebCore/InspectorFrontend.cpp
663 DerivedSources/WebCore/InspectorFrontend.cpp: DerivedSources/WebCore/InspectorBackendStub.js
664 DerivedSources/WebCore/InspectorBackendStub.js: DerivedSources/WebCore/InspectorBackendDispatcher.h
665 DerivedSources/WebCore/InspectorBackendDispatcher.h: DerivedSources/WebCore/InspectorBackendDispatcher.cpp
666 DerivedSources/WebCore/InjectedScriptSource.h: $(WebCore)/inspector/InjectedScriptSource.js
667 perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js $(GENSOURCES_WEBCORE)/InjectedScriptSource.h
669 # ANGLE tokenizer & parser
670 DerivedSources/ANGLE/glslang.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.l
671 $(AM_V_GEN)$(FLEX) --noline --nounistd --outfile="$@" "$<"
673 DerivedSources/ANGLE/glslang_tab.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.y
674 $(AM_V_GEN)$(BISON) --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c --output="$@" $<
675 DerivedSources/ANGLE/glslang_tab.h: DerivedSources/ANGLE/glslang_tab.cpp
678 $(WebCore)/bindings/js \
683 $(WebCore)/html/canvas \
684 $(WebCore)/inspector \
685 $(WebCore)/loader/appcache \
686 $(WebCore)/notifications \
691 $(WebCore)/webaudio \
692 $(WebCore)/websockets \
696 vpath %.idl = $(IDL_PATH)
698 # This does not appear to work correctly with gnumake unless
699 # it includes an empty command list (the semicolon).
700 DerivedSources/WebCore/JS%.cpp: DerivedSources/WebCore/JS%.h;
703 DerivedSources/WebCore/JS%.h: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorJS.pm
704 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl $(IDL_PATH:%=--include "%") --outputDir "$(GENSOURCES_WEBCORE)" --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)" --generator JS $<
706 noinst_LTLIBRARIES += \
709 nodist_EXTRA_libWebCore_la_SOURCES = \
710 $(webcore_built_nosources)
712 nodist_libWebCore_la_SOURCES = \
713 $(webcore_built_sources)
715 libWebCore_la_SOURCES = \
718 libWebCore_la_CXXFLAGS = \
719 $(SYMBOL_VISIBILITY_INLINES) \
722 libWebCore_la_CFLAGS = \
723 $(SYMBOL_VISIBILITY) \
726 libWebCore_la_CPPFLAGS = \
729 $(webcore_cppflags) \
730 $(webcoregtk_cppflags) \
731 $(javascriptcore_cppflags) \
732 -fno-strict-aliasing \
739 $(GSTREAMER_CFLAGS) \
751 $(shell ls $(srcdir)/Source/WebCore/css/*.idl) \
752 $(shell ls $(srcdir)/Source/WebCore/dom/*.idl) \
753 $(shell ls $(srcdir)/Source/WebCore/fileapi/*.idl) \
754 $(shell ls $(srcdir)/Source/WebCore/html/canvas/*.idl) \
755 $(shell ls $(srcdir)/Source/WebCore/html/*.idl) \
756 $(shell ls $(srcdir)/Source/WebCore/inspector/*.idl) \
757 $(shell ls $(srcdir)/Source/WebCore/loader/appcache/*.idl) \
758 $(shell ls $(srcdir)/Source/WebCore/notifications/*.idl) \
759 $(shell ls $(srcdir)/Source/WebCore/page/*.idl) \
760 $(shell ls $(srcdir)/Source/WebCore/plugins/*.idl) \
761 $(shell ls $(srcdir)/Source/WebCore/storage/*.idl) \
762 $(shell ls $(srcdir)/Source/WebCore/svg/*.idl) \
763 $(shell ls $(srcdir)/Source/WebCore/webaudio/*.idl) \
764 $(shell ls $(srcdir)/Source/WebCore/websockets/*.idl) \
765 $(shell ls $(srcdir)/Source/WebCore/workers/*.idl) \
766 $(shell ls $(srcdir)/Source/WebCore/xml/*.idl) \
767 Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm \
768 Source/WebCore/bindings/scripts/CodeGeneratorJS.pm \
769 Source/WebCore/bindings/scripts/CodeGenerator.pm \
770 Source/WebCore/bindings/scripts/generate-bindings.pl \
771 Source/WebCore/bindings/scripts/gobject-generate-headers.pl \
772 Source/WebCore/bindings/scripts/IDLParser.pm \
773 Source/WebCore/bindings/scripts/IDLStructure.pm \
774 Source/WebCore/bindings/scripts/InFilesParser.pm \
775 Source/WebCore/ChangeLog \
776 Source/WebCore/css/CSSGrammar.y \
777 Source/WebCore/css/CSSPropertyNames.in \
778 Source/WebCore/css/CSSValueKeywords.in \
779 Source/WebCore/css/fullscreen.css \
780 Source/WebCore/css/html.css \
781 Source/WebCore/css/make-css-file-arrays.pl \
782 Source/WebCore/css/makegrammar.pl \
783 Source/WebCore/css/makeprop.pl \
784 Source/WebCore/css/maketokenizer \
785 Source/WebCore/css/makevalues.pl \
786 Source/WebCore/css/mathml.css \
787 Source/WebCore/css/mediaControls.css \
788 Source/WebCore/css/mediaControlsGtk.css \
789 Source/WebCore/css/quirks.css \
790 Source/WebCore/css/svg.css \
791 Source/WebCore/css/SVGCSSPropertyNames.in \
792 Source/WebCore/css/SVGCSSValueKeywords.in \
793 Source/WebCore/css/tokenizer.flex \
794 Source/WebCore/css/view-source.css \
795 Source/WebCore/css/wml.css \
796 Source/WebCore/dom/make_names.pl \
797 Source/WebCore/html/DocTypeStrings.gperf \
798 Source/WebCore/html/HTMLAttributeNames.in \
799 Source/WebCore/html/HTMLTagNames.in \
800 Source/WebCore/html/parser/create-html-entity-table \
801 Source/WebCore/html/parser/HTMLEntityNames.in \
802 Source/WebCore/icu/LICENSE \
803 Source/WebCore/inspector/CodeGeneratorInspector.pm \
804 Source/WebCore/inspector/InjectedScriptSource.js \
805 Source/WebCore/inspector/Inspector.json \
806 Source/WebCore/inspector/generate-inspector-idl \
807 Source/WebCore/inspector/xxd.pl \
808 Source/WebCore/LICENSE-APPLE \
809 Source/WebCore/LICENSE-LGPL-2 \
810 Source/WebCore/LICENSE-LGPL-2.1 \
811 Source/WebCore/make-hash-tools.pl \
812 Source/WebCore/mathml/mathattrs.in \
813 Source/WebCore/mathml/mathtags.in \
814 Source/WebCore/platform/ColorData.gperf \
815 Source/WebCore/platform/text/mac/make-charset-table.pl \
816 Source/WebCore/svg/svgattrs.in \
817 Source/WebCore/svg/svgtags.in \
818 Source/WebCore/svg/xlinkattrs.in \
819 Source/WebCore/xml/xmlattrs.in \
820 Source/WebCore/xml/xmlnsattrs.in \
821 Source/WebCore/xml/XMLViewer.css \
822 Source/WebCore/xml/XMLViewer.js \
823 Source/WebCore/xml/XPathGrammar.y
825 # Installing web inspector files
826 webinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector
827 dist_webinspector_DATA = \
828 $(WebCore)/English.lproj/localizedStrings.js \
829 DerivedSources/WebCore/InspectorBackendStub.js \
830 $(shell ls $(WebCore)/inspector/front-end/*.js) \
831 $(shell ls $(WebCore)/inspector/front-end/*.html) \
832 $(shell ls $(WebCore)/inspector/front-end/*.css)
834 webinspectoruglifyjsdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/UglifyJS
835 dist_webinspectoruglifyjs_DATA = \
836 $(shell ls $(WebCore)/inspector/front-end/UglifyJS/*.js)
838 webinspectorimagesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/Images
839 dist_webinspectorimages_DATA = \
840 $(shell ls $(WebCore)/inspector/front-end/Images/*.gif) \
841 $(shell ls $(WebCore)/inspector/front-end/Images/*.png)
843 # It seems that $(shell) does not expand when it is a rule dependency, so
844 # we must redefine this list of copied files with traditional dependency wildcards.
845 noinst_DATA = ${GENSOURCES_INSPECTOR}/inspector.html
846 ${GENSOURCES_INSPECTOR}/inspector.html: $(WebCore)/inspector/front-end/*.html \
847 $(WebCore)/inspector/front-end/*.js \
848 $(WebCore)/inspector/front-end/UglifyJS/*.js \
849 $(WebCore)/inspector/front-end/*.css \
850 $(WebCore)/inspector/front-end/Images/* \
851 DerivedSources/WebCore/InspectorBackendStub.js \
852 $(WebCore)/English.lproj/localizedStrings.js
853 $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/UglifyJS
854 $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/images
855 $(AM_V_at)cp ${dist_webinspector_DATA} ${GENSOURCES_INSPECTOR}
856 $(AM_V_at)cp ${dist_webinspectoruglifyjs_DATA} ${GENSOURCES_INSPECTOR}/UglifyJS
857 $(AM_V_at)cp ${dist_webinspectorimages_DATA} ${GENSOURCES_INSPECTOR}/images
859 webresourcesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/images
860 dist_webresources_DATA = \
861 $(WebCore)/Resources/textAreaResizeCorner.png \
862 $(WebCore)/Resources/nullPlugin.png \
863 $(WebCore)/Resources/urlIcon.png \
864 $(WebCore)/Resources/missingImage.png \
865 $(WebCore)/Resources/panIcon.png \
866 $(WebCore)/Resources/deleteButton.png \
867 $(WebCore)/Resources/inputSpeech.png