[GTK] Add compilation options to enable/disable Accelerated Compositing and to choose...
[WebKit-https.git] / Source / WebCore / GNUmakefile.am
1 include $(srcdir)/Source/WebCore/GNUmakefile.list.am
2
3 SVG_FEATURES :=
4 HTML_FEATURES :=
5
6 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
7 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
8
9 webcore_cppflags += \
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/html/track \
34         -I$(srcdir)/Source/WebCore/inspector \
35         -I$(srcdir)/Source/WebCore/loader \
36         -I$(srcdir)/Source/WebCore/loader/appcache \
37         -I$(srcdir)/Source/WebCore/loader/archive \
38         -I$(srcdir)/Source/WebCore/loader/cache \
39         -I$(srcdir)/Source/WebCore/loader/icon \
40         -I$(srcdir)/Source/WebCore/mathml \
41         -I$(srcdir)/Source/WebCore/mediastream \
42         -I$(srcdir)/Source/WebCore/notifications \
43         -I$(srcdir)/Source/WebCore/page \
44         -I$(srcdir)/Source/WebCore/page/animation \
45         -I$(srcdir)/Source/WebCore/platform \
46         -I$(srcdir)/Source/WebCore/platform/animation \
47         -I$(srcdir)/Source/WebCore/platform/audio \
48         -I$(srcdir)/Source/WebCore/platform/graphics \
49         -I$(srcdir)/Source/WebCore/platform/graphics/filters \
50         -I$(srcdir)/Source/WebCore/platform/graphics/filters/arm \
51         -I$(srcdir)/Source/WebCore/platform/graphics/gpu \
52         -I$(srcdir)/Source/WebCore/platform/graphics/opengl \
53         -I$(srcdir)/Source/WebCore/platform/graphics/opentype \
54         -I$(srcdir)/Source/WebCore/platform/graphics/transforms \
55         -I$(srcdir)/Source/WebCore/platform/image-decoders \
56         -I$(srcdir)/Source/WebCore/platform/image-decoders/bmp \
57         -I$(srcdir)/Source/WebCore/platform/image-decoders/gif \
58         -I$(srcdir)/Source/WebCore/platform/image-decoders/ico \
59         -I$(srcdir)/Source/WebCore/platform/image-decoders/jpeg \
60         -I$(srcdir)/Source/WebCore/platform/image-decoders/webp \
61         -I$(srcdir)/Source/WebCore/platform/image-decoders/png \
62         -I$(srcdir)/Source/WebCore/platform/leveldb \
63         -I$(srcdir)/Source/WebCore/platform/mediastream \
64         -I$(srcdir)/Source/WebCore/platform/mock \
65         -I$(srcdir)/Source/WebCore/platform/network \
66         -I$(srcdir)/Source/WebCore/platform/sql \
67         -I$(srcdir)/Source/WebCore/platform/text \
68         -I$(srcdir)/Source/WebCore/platform/text/transcoder \
69         -I$(srcdir)/Source/WebCore/platform/win \
70         -I$(srcdir)/Source/WebCore/plugins \
71         -I$(srcdir)/Source/WebCore/plugins/win \
72         -I$(srcdir)/Source/WebCore/rendering \
73         -I$(srcdir)/Source/WebCore/rendering/mathml \
74         -I$(srcdir)/Source/WebCore/rendering/style \
75         -I$(srcdir)/Source/WebCore/rendering/svg \
76         -I$(srcdir)/Source/WebCore/storage \
77         -I$(srcdir)/Source/WebCore/svg \
78         -I$(srcdir)/Source/WebCore/svg/animation \
79         -I$(srcdir)/Source/WebCore/svg/graphics \
80         -I$(srcdir)/Source/WebCore/svg/graphics/filters \
81         -I$(srcdir)/Source/WebCore/svg/properties \
82         -I$(srcdir)/Source/WebCore/testing \
83         -I$(srcdir)/Source/WebCore/testing/js \
84         -I$(srcdir)/Source/WebCore/webaudio \
85         -I$(srcdir)/Source/WebCore/websockets \
86         -I$(srcdir)/Source/WebCore/workers \
87         -I$(srcdir)/Source/WebCore/xml \
88         -I$(srcdir)/Source/WebCore/xml/parser \
89         -I$(top_builddir)/WebCore/bindings/js \
90         -I$(top_builddir)/DerivedSources/WebCore \
91         -I$(top_builddir)/DerivedSources \
92         -I$(top_builddir)/DerivedSources/JavaScriptCore \
93         -DDATA_DIR=\"${datadir}\"
94
95 webcoregtk_cppflags += \
96         -DWEBKITGTK_API_VERSION_STRING=\"@WEBKITGTK_API_VERSION@\" \
97         -DWTF_USE_SOUP=1 \
98         -I$(srcdir)/Source/WebCore/accessibility/gtk \
99         -I$(srcdir)/Source/WebCore/loader/gtk \
100         -I$(srcdir)/Source/WebCore/page/gtk \
101         -I$(srcdir)/Source/WebCore/platform/cairo \
102         -I$(srcdir)/Source/WebCore/platform/audio/gstreamer \
103         -I$(srcdir)/Source/WebCore/platform/graphics/cairo \
104         -I$(srcdir)/Source/WebCore/platform/graphics/gstreamer \
105         -I$(srcdir)/Source/WebCore/platform/graphics/gtk \
106         -I$(srcdir)/Source/WebCore/platform/gtk \
107         -I$(srcdir)/Source/WebCore/platform/network/soup
108
109 # ---
110 # Channel mesaging support
111 # ---
112 if ENABLE_CHANNEL_MESSAGING
113 FEATURE_DEFINES += ENABLE_CHANNEL_MESSAGING=1
114 webcore_cppflags += -DENABLE_CHANNEL_MESSAGING=1
115 endif # END ENABLE_CHANNEL_MESSAGING
116
117 # ---
118 # Fast Mobile Scrolling
119 # ---
120 if ENABLE_FAST_MOBILE_SCROLLING
121 FEATURE_DEFINES += ENABLE_FAST_MOBILE_SCROLLING=1
122 webcore_cppflags += -DENABLE_FAST_MOBILE_SCROLLING=1
123 endif # END ENABLE_FAST_MOBILE_SCROLLING
124
125 # ---
126 # FreeType font backend
127 # ---
128 if USE_FREETYPE
129 webcoregtk_cppflags += \
130         -DWTF_USE_FREETYPE=1 \
131         -I$(srcdir)/Source/WebCore/platform/graphics/freetype
132 endif # END USE_FREETYPE
133
134 # ---
135 # Pango font backend
136 # ---
137 if USE_PANGO
138 webcoregtk_cppflags += \
139         -DWTF_USE_PANGO=1 \
140         -I$(srcdir)/Source/WebCore/platform/graphics/pango
141 endif # END USE_PANGO
142
143 # ----
144 # HTML Details Element
145 # ----
146 if ENABLE_DETAILS
147 FEATURE_DEFINES += ENABLE_DETAILS=1
148 webcore_cppflags += -DENABLE_DETAILS=1
149 endif # END ENABLE_DETAILS
150
151 # ----
152 # HTML Meter Element
153 # ----
154 if ENABLE_METER_TAG
155 FEATURE_DEFINES += ENABLE_METER_TAG=1
156 webcore_cppflags += -DENABLE_METER_TAG=1
157 endif # END ENABLE_METER_TAG
158
159 # ----
160 # HTML Progress Element
161 # ----
162 if ENABLE_PROGRESS_TAG
163 FEATURE_DEFINES += ENABLE_PROGRESS_TAG=1
164 webcore_cppflags += -DENABLE_PROGRESS_TAG=1
165 endif # END ENABLE_PROGRESS_TAG
166
167 # ----
168 # JavaScript Debugger/Profiler
169 # ----
170 if ENABLE_JAVASCRIPT_DEBUGGER
171 FEATURE_DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
172 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=1
173 else
174 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=0
175 endif # END ENABLE_JAVASCRIPT_DEBUGGER
176
177 # ----
178 # Gamepad support
179 # ---
180 if ENABLE_GAMEPAD
181 FEATURE_DEFINES += ENABLE_GAMEPAD=1
182 webcore_cppflags += -DENABLE_GAMEPAD=1
183 else
184 webcore_cppflags += -DENABLE_GAMEPAD=0
185 endif # END ENABLE_GAMEPAD
186
187 # ----
188 # Database Support
189 # ----
190 if ENABLE_SQL_DATABASE
191 FEATURE_DEFINES += ENABLE_SQL_DATABASE=1
192 webcore_cppflags += -DENABLE_SQL_DATABASE=1
193 else
194 webcore_cppflags += -DENABLE_SQL_DATABASE=0
195 endif # END ENABLE_SQL_DATABASE
196
197 # ----
198 # HTML5 datalist Support
199 # ----
200 if ENABLE_DATALIST
201 FEATURE_DEFINES += ENABLE_DATALIST=1
202 HTML_FEATURES += ENABLE_DATALIST=1
203 webcore_cppflags += -DENABLE_DATALIST=1
204 endif # END ENABLE_DATALIST
205
206 # ----
207 # HTML5 data transfer items support
208 # ----
209 if ENABLE_DATA_TRANSFER_ITEMS
210 FEATURE_DEFINES += ENABLE_DATA_TRANSFER_ITEMS=1
211 webcore_cppflags += -DENABLE_DATA_TRANSFER_ITEMS=1
212 endif # END ENABLE_DATA_TRANSFER_ITEMS
213
214 # ----
215 # HTML5 <style scoped> support
216 # ----
217 if ENABLE_STYLE_SCOPED
218 FEATURE_DEFINES += ENABLE_STYLE_SCOPED=1
219 webcore_cppflags += -DENABLE_STYLE_SCOPED=1
220 endif # END ENABLE_STYLE_SCOPED
221
222 # ----
223 # Indexed Database API support
224 # ----
225 if ENABLE_INDEXED_DATABASE
226 FEATURE_DEFINES += ENABLE_INDEXED_DATABASE=1
227 webcore_cppflags += -DENABLE_INDEXED_DATABASE=1
228 endif # END ENABLE_INDEXED_DATABASE
229
230 # ----
231 # Support for <input type="file" directory>
232 # ----
233 if ENABLE_DIRECTORY_UPLOAD
234 FEATURE_DEFINES += ENABLE_DIRECTORY_UPLOAD=1
235 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=1
236 else
237 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=0
238 endif # END ENABLE_DIRECTORY_UPLOAD
239
240 # ----
241 # DOM mutation observer support
242 # ----
243 if ENABLE_MUTATION_OBSERVERS
244 FEATURE_DEFINES += ENABLE_MUTATION_OBSERVERS=1
245 webcore_cppflags += -DENABLE_MUTATION_OBSERVERS=1
246 endif # END ENABLE_MUTATION_OBSERVERS
247
248 # ----
249 # FileSystem API support
250 # ----
251 if ENABLE_FILE_SYSTEM
252 FEATURE_DEFINES += ENABLE_FILE_SYSTEM=1
253 webcore_cppflags += -DENABLE_FILE_SYSTEM=1
254 endif # END ENABLE_FILE_SYSTEM
255
256 # ----
257 # Quota support
258 # ----
259 if ENABLE_QUOTA
260 FEATURE_DEFINES += ENABLE_QUOTA=1
261 webcore_cppflags += -DENABLE_QUOTA=1
262 webcore_built_sources += \
263         DerivedSources/WebCore/JSStorageInfo.cpp \
264         DerivedSources/WebCore/JSStorageInfo.h \
265         DerivedSources/WebCore/JSStorageInfoErrorCallback.cpp \
266         DerivedSources/WebCore/JSStorageInfoErrorCallback.h \
267         DerivedSources/WebCore/JSStorageInfoQuotaCallback.cpp \
268         DerivedSources/WebCore/JSStorageInfoQuotaCallback.h \
269         DerivedSources/WebCore/JSStorageInfoUsageCallback.cpp \
270         DerivedSources/WebCore/JSStorageInfoUsageCallback.h
271 endif # END ENABLE_QUOTA
272
273 # ----
274 # Touch Icon Loading
275 # ----
276 if ENABLE_TOUCH_ICON_LOADING
277 FEATURE_DEFINES += ENABLE_TOUCH_ICON_LOADING=1
278 webcore_cppflags += -DENABLE_TOUCH_ICON_LOADING=1
279 else
280 webcore_cppflags += -DENABLE_TOUCH_ICON_LOADING=0
281 endif # END ENABLE_TOUCH_ICON_LOADING
282
283 # ----
284 # Color Input API support
285 # ----
286 if ENABLE_INPUT_COLOR
287 FEATURE_DEFINES += ENABLE_INPUT_COLOR=1
288 webcore_cppflags += -DENABLE_INPUT_COLOR=1
289 else
290 webcore_cppflags += -DENABLE_INPUT_COLOR=0
291 endif # END ENABLE_INPUT_COLOR
292
293 # ----
294 # Speech Input API support
295 # ----
296 if ENABLE_INPUT_SPEECH
297 FEATURE_DEFINES += ENABLE_INPUT_SPEECH=1
298 webcore_cppflags += -DENABLE_INPUT_SPEECH=1
299 else
300 webcore_cppflags += -DENABLE_INPUT_SPEECH=0
301 endif # END ENABLE_INPUT_SPEECH
302
303 # ----
304 # Icon Database Support
305 # ----
306 if ENABLE_ICONDATABASE
307 webcore_cppflags += -DENABLE_ICONDATABASE=1
308 else
309 webcore_cppflags += -DENABLE_ICONDATABASE=0
310 endif # END ENABLE_ICONDATABASE
311
312 # ----
313 # Orientation Events
314 # ----
315 if ENABLE_ORIENTATION_EVENTS
316 FEATURE_DEFINES += ENABLE_ORIENTATION_EVENTS=1
317 webcore_cppflags += -DENABLE_ORIENTATION_EVENTS=1
318 endif # END ENABLE_ORIENTATION_EVENTS
319
320 # ----
321 # Video Support
322 # ----
323 if ENABLE_VIDEO
324 FEATURE_DEFINES += ENABLE_VIDEO=1
325 HTML_FEATURES += ENABLE_VIDEO=1
326 webcore_cppflags += -DENABLE_VIDEO=1
327
328 if USE_GSTREAMER
329 if ENABLE_DEBUG
330 webcore_cppflags += -DGST_DISABLE_DEPRECATED
331 endif # END ENABLE_DEBUG
332 webcore_libadd += \
333         -lgstinterfaces-0.10 \
334         -lgstvideo-0.10 \
335         -lgstpbutils-0.10 \
336         -lgstapp-0.10
337 endif # END USE_GSTREAMER
338 endif # END ENABLE_VIDEO
339
340 # ----
341 # Media Source Support
342 # ----
343 if ENABLE_MEDIA_SOURCE
344 FEATURE_DEFINES += ENABLE_MEDIA_SOURCE=1
345 webcore_cppflags += -DENABLE_MEDIA_SOURCE=1
346 else
347 webcore_cppflags += -DENABLE_MEDIA_SOURCE=0
348 endif # END ENABLE_MEDIA_SOURCE
349
350 # ----
351 # Media Statistics Support
352 # ----
353 if ENABLE_MEDIA_STATISTICS
354 FEATURE_DEFINES += ENABLE_MEDIA_STATISTICS=1
355 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=1
356 else
357 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=0
358 endif # END ENABLE_MEDIA_STATISTICS
359
360 # ----
361 # Javascript Fullscreen Support
362 # ----
363 if ENABLE_FULLSCREEN_API
364 FEATURE_DEFINES += ENABLE_FULLSCREEN_API=1
365 webcore_cppflags += -DENABLE_FULLSCREEN_API=1
366 endif # END ENABLE_FULLSCREEN_API
367
368 # ----
369 # Track Support
370 # ----
371 if ENABLE_VIDEO_TRACK
372 FEATURE_DEFINES += ENABLE_VIDEO_TRACK=1
373 webcore_cppflags += -DENABLE_VIDEO_TRACK=1
374 else
375 webcore_cppflags += -DENABLE_VIDEO_TRACK=0
376 endif # END ENABLE_VIDEO_TRACK
377
378 # ----
379 # Media Stream Support
380 # ----
381 if ENABLE_MEDIA_STREAM
382 FEATURE_DEFINES += ENABLE_MEDIA_STREAM=1
383 webcore_cppflags += -DENABLE_MEDIA_STREAM=1
384 else
385 webcore_cppflags += -DENABLE_MEDIA_STREAM=0
386 endif # END ENABLE_MEDIA_STREAM
387
388 # XPath grammar
389 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
390 $(GENSOURCES_WEBCORE)/XPathGrammar.h: $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
391 $(GENSOURCES_WEBCORE)/XPathGrammar.cpp: $(WebCore)/xml/XPathGrammar.y
392         rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
393         $(BISON) -d -p xpathyy $< -o $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
394         touch $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
395         echo '#ifndef XPathGrammar_h' > $(GENSOURCES_WEBCORE)/XPathGrammar.h
396         echo '#define XPathGrammar_h' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
397         cat $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
398         echo '#endif' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
399         rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
400
401 # ----
402 # XSLT Support
403 # ----
404 if ENABLE_XSLT
405 FEATURE_DEFINES += ENABLE_XSLT=1
406 webcore_cppflags += -DENABLE_XSLT=1
407 endif # END ENABLE_XSLT
408
409 # ----
410 # Web Workers support
411 # ----
412 if ENABLE_WORKERS
413 FEATURE_DEFINES += ENABLE_WORKERS=1
414 webcore_cppflags += -DENABLE_WORKERS=1
415 endif
416
417 # ---
418 # SharedWorker support
419 # ---
420 if ENABLE_SHARED_WORKERS
421 FEATURE_DEFINES += ENABLE_SHARED_WORKERS=1
422 webcore_cppflags += -DENABLE_SHARED_WORKERS=1
423 endif
424
425 # ----
426 # Filters
427 # ----
428 if ENABLE_FILTERS
429 FEATURE_DEFINES += ENABLE_FILTERS=1
430 webcore_cppflags += -DENABLE_FILTERS=1
431 if ENABLE_SVG
432 SVG_FEATURES += ENABLE_FILTERS=1
433 endif
434
435 endif # END ENABLE_FILTERS
436
437 # ----
438 # Geolocation
439 # ----
440 if ENABLE_GEOLOCATION
441
442 FEATURE_DEFINES += ENABLE_GEOLOCATION=1 ENABLE_CLIENT_BASED_GEOLOCATION=1
443 webcore_cppflags += -DENABLE_GEOLOCATION=1 -DENABLE_CLIENT_BASED_GEOLOCATION=1
444 endif # END ENABLE_GEOLOCATION
445
446 # ----
447 # MathML support
448 # ----
449 if ENABLE_MATHML
450 FEATURE_DEFINES += ENABLE_MATHML=1
451 webcore_cppflags += -DENABLE_MATHML=1
452 endif # END ENABLE_MATHML
453
454 # MathML tag and attribute names, and element factory 
455 DerivedSources/WebCore/MathMLElementFactory.h: DerivedSources/WebCore/MathMLElementFactory.cpp
456 DerivedSources/WebCore/MathMLNames.h: DerivedSources/WebCore/MathMLNames.cpp
457 DerivedSources/WebCore/MathMLElementFactory.cpp DerivedSources/WebCore/MathMLNames.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/mathml/mathtags.in $(WebCore)/mathml/mathattrs.in
458         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
459
460 # ----
461 # Notifications support
462 # ----
463 if ENABLE_NOTIFICATIONS
464 FEATURE_DEFINES += ENABLE_NOTIFICATIONS=1
465 webcore_cppflags += -DENABLE_NOTIFICATIONS=1
466 endif # END ENABLE_NOTIFICATIONS
467
468 # ----
469 # SVG Support
470 #
471 # FIXME: allow a more fine-grained inclusion/generation of sources per SVG feature
472 # ----
473 if ENABLE_SVG
474 FEATURE_DEFINES += ENABLE_SVG=1
475 webcore_cppflags += -DENABLE_SVG=1
476 WEBCORE_CSS_PROPERTY_NAMES += $(WebCore)/css/SVGCSSPropertyNames.in 
477 WEBCORE_CSS_VALUE_KEYWORDS += $(WebCore)/css/SVGCSSValueKeywords.in
478
479 # SVG Features
480 if ENABLE_SVG_FONTS
481 FEATURE_DEFINES += ENABLE_SVG_FONTS=1
482 SVG_FEATURES += ENABLE_SVG_FONTS=1
483 webcore_cppflags += -DENABLE_SVG_FONTS=1
484 endif
485
486 endif # END ENABLE_SVG
487
488 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
489 DerivedSources/WebCore/SVGNames.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
490 DerivedSources/WebCore/JSSVGElementWrapperFactory.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
491
492 if SVG_FLAGS
493 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
494         $(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)"
495 else
496 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
497         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
498 endif # SVG_FLAGS
499
500 # end SVG Features
501
502 DerivedSources/WebCore/XLinkNames.h: DerivedSources/WebCore/XLinkNames.cpp
503 DerivedSources/WebCore/XLinkNames.cpp : $(WebCore)/dom/make_names.pl $(WebCore)/svg/xlinkattrs.in
504         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
505
506 # ----
507 # Web Audio Support
508 # ----
509 if ENABLE_WEB_AUDIO
510 FEATURE_DEFINES += ENABLE_WEB_AUDIO=1
511 webcore_cppflags += -DENABLE_WEB_AUDIO=1
512 endif
513
514 # ----
515 # Web Sockets Support
516 # ----
517 if ENABLE_WEB_SOCKETS
518 FEATURE_DEFINES += ENABLE_WEB_SOCKETS=1
519 webcore_cppflags += -DENABLE_WEB_SOCKETS=1
520 else
521 webcore_cppflags += -DENABLE_WEB_SOCKETS=0
522 endif  # END ENABLE_WEB_SOCKETS
523
524 # ---
525 # Blob support
526 # ---
527 if ENABLE_BLOB
528 FEATURE_DEFINES += ENABLE_BLOB=1
529 webcore_cppflags += -DENABLE_BLOB=1
530 endif  # END ENABLE_BLOB
531
532 # ---
533 # Animation API support
534 # ---
535 if ENABLE_ANIMATION_API
536 FEATURE_DEFINES += ENABLE_ANIMATION_API=1
537 webcore_cppflags += -DENABLE_ANIMATION_API=1
538 endif  # END ENABLE_ANIMATION_API
539
540 # ---
541 # RequestAnimationFrame support
542 # ---
543 if ENABLE_REQUEST_ANIMATION_FRAME
544 FEATURE_DEFINES += ENABLE_REQUEST_ANIMATION_FRAME=1
545 webcore_cppflags += -DENABLE_REQUEST_ANIMATION_FRAME=1
546 endif  # END ENABLE_REQUEST_ANIMATION_FRAME
547
548 # ---
549 # 3D canvas (WebGL) support
550 # ---
551 if ENABLE_WEBGL
552 FEATURE_DEFINES += ENABLE_WEBGL=1
553 webcore_cppflags += -DENABLE_WEBGL=1
554 endif  # END ENABLE_WEBGL
555
556 # ---
557 # 3D rendering (CSS3 3D transforms) support
558 # ---
559 if ENABLE_3D_RENDERING
560 FEATURE_DEFINES += ENABLE_3D_RENDERING=1
561 webcore_cppflags += -DENABLE_3D_RENDERING=1
562 endif  # END ENABLE_3D_RENDERING
563
564 # ---
565 # Compile with accelerated compositing support
566 # ---
567
568 if USE_TEXTURE_MAPPER_CAIRO
569 webcore_cppflags += \
570         -I$(srcdir)/Source/WebCore/platform/graphics/texmap
571 endif  # END USE_TEXTURE_MAPPER_CAIRO
572
573 if USE_TEXTURE_MAPPER_GL
574 webcore_cppflags += \
575         -I$(srcdir)/Source/WebCore/platform/graphics/texmap
576 endif  # END USETEXTURE_MAPPER_GL
577
578 # ---
579 # MHTML support
580 # ---
581 if ENABLE_MHTML
582 FEATURE_DEFINES += ENABLE_MHTML=1
583 webcore_cppflags += -DENABLE_MHTML=1
584 endif  # END ENABLE_MHTML
585
586 # ---
587 # HTML5 Microdata support
588 # ---
589 if ENABLE_MICRODATA
590 FEATURE_DEFINES += ENABLE_MICRODATA=1
591 webcore_cppflags += -DENABLE_MICRODATA=1
592 endif  # END ENABLE_MICRODATA
593
594 # ---
595 # Register Protocol Handler support
596 # ---
597 if ENABLE_REGISTER_PROTOCOL_HANDLER
598 FEATURE_DEFINES += ENABLE_REGISTER_PROTOCOL_HANDLER=1
599 webcore_cppflags += -DENABLE_REGISTER_PROTOCOL_HANDLER=1
600 endif  # END ENABLE_REGISTER_PROTOCOL_HANDLER
601
602 # ---
603 # DeviceOrientation support
604 # ---
605 if ENABLE_DEVICE_ORIENTATION
606 FEATURE_DEFINES += ENABLE_DEVICE_ORIENTATION=1
607 webcore_cppflags += -DENABLE_DEVICE_ORIENTATION=1
608 endif  # END ENABLE_DEVICE_ORIENTATION
609
610 DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
611 DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
612         cat $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
613         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
614         mv CSSPropertyNames* $(GENSOURCES_WEBCORE)
615
616 # Lower case all the values, as CSS values are case-insensitive
617 DerivedSources/WebCore/CSSValueKeywords.cpp: DerivedSources/WebCore/CSSValueKeywords.h
618 DerivedSources/WebCore/CSSValueKeywords.h: $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/makevalues.pl
619         cat $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
620         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
621         mv CSSValueKeywords* $(GENSOURCES_WEBCORE)
622
623 # XML Viewer CSS
624 DerivedSources/WebCore/XMLViewerCSS.h: $(WebCore)/xml/XMLViewer.css
625         $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_css $(WebCore)/xml/XMLViewer.css $(GENSOURCES_WEBCORE)/XMLViewerCSS.h
626
627 # XML Viewer JS
628 DerivedSources/WebCore/XMLViewerJS.h: $(WebCore)/xml/XMLViewer.js
629         $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_js $(WebCore)/xml/XMLViewer.js $(GENSOURCES_WEBCORE)/XMLViewerJS.h
630
631 # HTML entity names
632 DerivedSources/WebCore/HTMLEntityTable.cpp: $(WebCore)/html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
633         $(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o $(GENSOURCES_WEBCORE)/HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
634
635 # color names
636 DerivedSources/WebCore/ColorData.cpp: $(WebCore)/platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
637         $(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/platform/ColorData.gperf
638
639 # CSS tokenizer
640 DerivedSources/WebCore/tokenizer.cpp : $(WebCore)/css/tokenizer.flex $(WebCore)/css/maketokenizer
641         $(AM_V_GEN)$(FLEX) -t $< | $(PERL) $(WebCore)/css/maketokenizer > $@
642
643 # CSS grammar
644
645 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
646 DerivedSources/WebCore/CSSGrammar.h: $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
647 DerivedSources/WebCore/CSSGrammar.cpp: $(WebCore)/css/CSSGrammar.y
648         rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
649         $(BISON) -d -p cssyy $< -o $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
650         touch $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
651         echo '#ifndef CSSGrammar_h' > $(GENSOURCES_WEBCORE)/CSSGrammar.h
652         echo '#define CSSGrammar_h' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
653         cat $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
654         echo '#endif' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
655         rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
656
657 # user agent style sheets
658 USER_AGENT_STYLE_SHEETS = \
659         $(WebCore)/css/html.css \
660         $(WebCore)/css/mathml.css \
661         $(WebCore)/css/quirks.css \
662         $(WebCore)/css/view-source.css \
663         $(WebCore)/css/svg.css \
664         $(WebCore)/css/mediaControls.css \
665         $(WebCore)/css/mediaControlsGtk.css \
666         $(WebCore)/css/fullscreen.css \
667         $(WebCore)/css/fullscreenQuickTime.css
668
669 # new-style JavaScript bindings
670 SCRIPTS_BINDINGS = \
671         $(WebCore)/bindings/scripts/CodeGenerator.pm \
672         $(WebCore)/bindings/scripts/IDLParser.pm \
673         $(WebCore)/bindings/scripts/IDLStructure.pm \
674         $(WebCore)/bindings/scripts/InFilesCompiler.pm \
675         $(WebCore)/bindings/scripts/InFilesParser.pm \
676         $(WebCore)/bindings/scripts/generate-bindings.pl \
677         $(WebCore)/bindings/scripts/preprocessor.pm
678
679 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp: DerivedSources/WebCore/UserAgentStyleSheets.h
680 DerivedSources/WebCore/UserAgentStyleSheets.h: $(WebCore)/css/make-css-file-arrays.pl $(WebCore)/bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS)
681         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $<  --defines "$(FEATURE_DEFINES)" $@ DerivedSources/WebCore/UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
682
683 DerivedSources/WebCore/WebKitFontFamilyNames.cpp: DerivedSources/WebCore/WebKitFontFamilyNames.h
684 DerivedSources/WebCore/WebKitFontFamilyNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/css/WebKitFontFamilyNames.in
685         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in --outputDir "$(GENSOURCES_WEBCORE)"
686
687
688 # HTML tag and attribute names
689 DerivedSources/WebCore/JSHTMLElementWrapperFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.cpp
690 DerivedSources/WebCore/HTMLElementFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.h
691 DerivedSources/WebCore/HTMLElementFactory.h: DerivedSources/WebCore/HTMLNames.cpp
692 DerivedSources/WebCore/HTMLNames.cpp: DerivedSources/WebCore/HTMLNames.h
693 if HTML_FLAGS
694 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
695         $(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)"
696 else
697 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
698         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
699 endif # HTML_FLAGS
700
701
702 DerivedSources/WebCore/XMLNSNames.cpp DerivedSources/WebCore/XMLNSNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlnsattrs.in
703         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
704
705 DerivedSources/WebCore/XMLNames.cpp DerivedSources/WebCore/XMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlattrs.in
706         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
707
708 DerivedSources/WebCore/EventFactory.cpp DerivedSources/WebCore/EventHeaders.h DerivedSources/WebCore/EventInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventFactory.in
709         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventFactory.in --outputDir "$(GENSOURCES_WEBCORE)"
710
711 DerivedSources/WebCore/EventTargetHeaders.h DerivedSources/WebCore/EventTargetInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventTargetFactory.in
712         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in --outputDir "$(GENSOURCES_WEBCORE)"
713
714 DerivedSources/WebCore/ExceptionCodeDescription.cpp DerivedSources/WebCore/ExceptionCodeDescription.h DerivedSources/WebCore/ExceptionHeaders.h DerivedSources/WebCore/ExceptionInterfaces.h: $(WebCore)/dom/make_dom_exceptions.pl $(WebCore)/dom/DOMExceptions.in
715         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in --outputDir "$(GENSOURCES_WEBCORE)"
716
717 # All Web Inspector generated files are created with this one call to CodeGeneratorInspector.py
718 DerivedSources/WebCore/InspectorProtocolVersion.h : $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/generate-inspector-protocol-version
719         $(PYTHON) $(WebCore)/inspector/generate-inspector-protocol-version -o $(GENSOURCES_WEBCORE)/InspectorProtocolVersion.h $(WebCore)/inspector/Inspector.json
720
721 DerivedSources/WebCore/InspectorBackendDispatcher.cpp: $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/CodeGeneratorInspector.py
722         $(PYTHON) $(WebCore)/inspector/CodeGeneratorInspector.py $< --output_h_dir $(GENSOURCES_WEBCORE) --output_cpp_dir $(GENSOURCES_WEBCORE) --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)"
723 DerivedSources/WebCore/InspectorFrontend.h: DerivedSources/WebCore/InspectorFrontend.cpp
724 DerivedSources/WebCore/InspectorFrontend.cpp: DerivedSources/WebCore/InspectorBackendStub.js
725 DerivedSources/WebCore/InspectorBackendStub.js: DerivedSources/WebCore/InspectorBackendDispatcher.h
726 DerivedSources/WebCore/InspectorBackendDispatcher.h: DerivedSources/WebCore/InspectorBackendDispatcher.cpp
727 DerivedSources/WebCore/InjectedScriptSource.h: $(WebCore)/inspector/InjectedScriptSource.js
728         perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js $(GENSOURCES_WEBCORE)/InjectedScriptSource.h
729
730 if ENABLE_WEB_AUDIO
731 # Installing HRTF database wav files
732 audiodir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/resources/audio/
733 audio_DATA = $(WebCore)/platform/audio/resources/Composite.wav
734 dist_audio_DATA = $(audio_DATA)
735 endif  # END ENABLE_WEB_AUDIO
736
737 # ANGLE tokenizer & parser
738 DerivedSources/ANGLE/glslang.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.l
739         $(AM_V_GEN)$(FLEX) --noline --nounistd --outfile="$@" "$<"
740
741 DerivedSources/ANGLE/glslang_tab.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.y
742         $(AM_V_GEN)$(BISON) --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c --output="$@" $<
743 DerivedSources/ANGLE/glslang_tab.h: DerivedSources/ANGLE/glslang_tab.cpp
744
745 IDL_PATH := \
746     $(WebCore)/bindings/js \
747     $(WebCore)/css \
748     $(WebCore)/dom \
749     $(WebCore)/fileapi \
750     $(WebCore)/html \
751     $(WebCore)/html/canvas \
752     $(WebCore)/html/track \
753     $(WebCore)/inspector \
754     $(WebCore)/loader/appcache \
755     $(WebCore)/mediastream \
756     $(WebCore)/notifications \
757     $(WebCore)/page \
758     $(WebCore)/plugins \
759     $(WebCore)/storage \
760     $(WebCore)/svg \
761     $(WebCore)/testing \
762     $(WebCore)/webaudio \
763     $(WebCore)/websockets \
764     $(WebCore)/workers \
765     $(WebCore)/xml
766
767 vpath %.idl $(IDL_PATH)
768
769 # This does not appear to work correctly with gnumake unless
770 # it includes an empty command list (the semicolon).
771 DerivedSources/WebCore/JS%.cpp: DerivedSources/WebCore/JS%.h;
772
773 .SECONDARY:
774 DerivedSources/WebCore/JS%.h: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorJS.pm
775         $(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 $<
776
777 noinst_LTLIBRARIES += \
778         libWebCore.la
779
780 nodist_EXTRA_libWebCore_la_SOURCES = \
781         $(webcore_built_nosources)
782
783 nodist_libWebCore_la_SOURCES = \
784         $(webcore_built_sources)
785
786 libWebCore_la_SOURCES = \
787         $(webcore_sources)
788
789 libWebCore_la_CXXFLAGS = \
790         $(SYMBOL_VISIBILITY_INLINES) \
791         $(global_cxxflags)
792
793 libWebCore_la_CFLAGS = \
794         $(SYMBOL_VISIBILITY) \
795         $(global_cflags)
796
797 libWebCore_la_CPPFLAGS = \
798         -DBUILDING_WEBKIT \
799         $(global_cppflags) \
800         $(webcore_cppflags) \
801         $(webcoregtk_cppflags) \
802         $(javascriptcore_cppflags) \
803         -fno-strict-aliasing \
804         $(CAIRO_CFLAGS) \
805         $(COVERAGE_CFLAGS) \
806         $(ENCHANT_CFLAGS) \
807         $(GEOCLUE_CFLAGS) \
808         $(GLIB_CFLAGS) \
809         $(GSTREAMER_CFLAGS) \
810         $(LIBSOUP_CFLAGS) \
811         $(LIBXML_CFLAGS) \
812         $(LIBXSLT_CFLAGS) \
813         $(SQLITE3_CFLAGS) \
814         $(UNICODE_CFLAGS) \
815         $(XRENDER_CFLAGS) \
816         $(XT_CFLAGS)
817
818 # We have a different library with only the files that require GTK+. It allows us
819 # to build a common WebCore lib and two different gtk WebCore libs depending on
820 # the gtk version. In WeKit2 gtk2 is not supported, but the plugin process needs to
821 # be built using gtk2 because plugins like flash still use gtk2. For WebKit2, we build
822 # the common libWebCore and two libWebCoreGtk, one using gtk3 and the other one using gtk2.
823 noinst_LTLIBRARIES += \
824         libWebCoreGtk.la
825
826 libWebCoreGtk_la_SOURCES = \
827         $(webcoregtk_sources)
828
829 libWebCoreGtk_la_CXXFLAGS = \
830         $(SYMBOL_VISIBILITY_INLINES) \
831         $(global_cxxflags)
832
833 libWebCoreGtk_la_CFLAGS = \
834         $(SYMBOL_VISIBILITY) \
835         $(global_cflags)
836
837 libWebCoreGtk_la_CPPFLAGS = \
838         -DBUILDING_WEBKIT \
839         $(global_cppflags) \
840         $(webcore_cppflags) \
841         $(webcoregtk_cppflags) \
842         $(javascriptcore_cppflags) \
843         -fno-strict-aliasing \
844         $(HILDON_CPPFLAGS) \
845         $(COVERAGE_CFLAGS) \
846         $(ENCHANT_CFLAGS) \
847         $(GAIL_CFLAGS) \
848         $(GEOCLUE_CFLAGS) \
849         $(GLIB_CFLAGS) \
850         $(GSTREAMER_CFLAGS) \
851         $(GTK_CFLAGS) \
852         $(HILDON_CFLAGS) \
853         $(LIBFFTW_CFLAGS) \
854         $(LIBSOUP_CFLAGS) \
855         $(LIBXML_CFLAGS) \
856         $(LIBXSLT_CFLAGS) \
857         $(SQLITE3_CFLAGS) \
858         $(UNICODE_CFLAGS) \
859         $(XRENDER_CFLAGS) \
860         $(XT_CFLAGS)
861
862 EXTRA_DIST += \
863         $(shell ls $(srcdir)/Source/WebCore/css/*.idl) \
864         $(shell ls $(srcdir)/Source/WebCore/dom/*.idl) \
865         $(shell ls $(srcdir)/Source/WebCore/fileapi/*.idl) \
866         $(shell ls $(srcdir)/Source/WebCore/html/canvas/*.idl) \
867         $(shell ls $(srcdir)/Source/WebCore/html/track/*.idl) \
868         $(shell ls $(srcdir)/Source/WebCore/html/*.idl) \
869         $(shell ls $(srcdir)/Source/WebCore/inspector/*.idl) \
870         $(shell ls $(srcdir)/Source/WebCore/loader/appcache/*.idl) \
871         $(shell ls $(srcdir)/Source/WebCore/mediastream/*.idl) \
872         $(shell ls $(srcdir)/Source/WebCore/notifications/*.idl) \
873         $(shell ls $(srcdir)/Source/WebCore/page/*.idl) \
874         $(shell ls $(srcdir)/Source/WebCore/plugins/*.idl) \
875         $(shell ls $(srcdir)/Source/WebCore/storage/*.idl) \
876         $(shell ls $(srcdir)/Source/WebCore/svg/*.idl) \
877         $(shell ls $(srcdir)/Source/WebCore/testing/*.idl) \
878         $(shell ls $(srcdir)/Source/WebCore/webaudio/*.idl) \
879         $(shell ls $(srcdir)/Source/WebCore/websockets/*.idl) \
880         $(shell ls $(srcdir)/Source/WebCore/workers/*.idl) \
881         $(shell ls $(srcdir)/Source/WebCore/xml/*.idl) \
882         Source/ThirdParty/ANGLE/src/compiler/glslang.l \
883         Source/ThirdParty/ANGLE/src/compiler/glslang.y \
884         Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm \
885         Source/WebCore/bindings/scripts/CodeGeneratorJS.pm \
886         Source/WebCore/bindings/scripts/CodeGenerator.pm \
887         Source/WebCore/bindings/scripts/IDLParser.pm \
888         Source/WebCore/bindings/scripts/IDLStructure.pm \
889         Source/WebCore/bindings/scripts/InFilesCompiler.pm \
890         Source/WebCore/bindings/scripts/InFilesParser.pm \
891         Source/WebCore/bindings/scripts/generate-bindings.pl \
892         Source/WebCore/bindings/scripts/gobject-generate-headers.pl \
893         Source/WebCore/bindings/scripts/preprocessor.pm \
894         Source/WebCore/ChangeLog \
895         Source/WebCore/css/CSSGrammar.y \
896         Source/WebCore/css/CSSPropertyNames.in \
897         Source/WebCore/css/CSSValueKeywords.in \
898         Source/WebCore/dom/DOMExceptions.in \
899         Source/WebCore/css/fullscreen.css \
900         Source/WebCore/css/fullscreenQuickTime.css \
901         Source/WebCore/css/html.css \
902         Source/WebCore/css/make-css-file-arrays.pl \
903         Source/WebCore/css/makegrammar.pl \
904         Source/WebCore/css/makeprop.pl \
905         Source/WebCore/css/maketokenizer \
906         Source/WebCore/css/makevalues.pl \
907         Source/WebCore/css/mathml.css \
908         Source/WebCore/css/mediaControls.css \
909         Source/WebCore/css/mediaControlsGtk.css \
910         Source/WebCore/css/quirks.css \
911         Source/WebCore/css/svg.css \
912         Source/WebCore/css/SVGCSSPropertyNames.in \
913         Source/WebCore/css/SVGCSSValueKeywords.in \
914         Source/WebCore/css/tokenizer.flex \
915         Source/WebCore/css/view-source.css \
916         Source/WebCore/css/WebKitFontFamilyNames.in \
917         Source/WebCore/dom/EventFactory.in \
918         Source/WebCore/dom/EventTargetFactory.in \
919         Source/WebCore/dom/make_dom_exceptions.pl \
920         Source/WebCore/dom/make_event_factory.pl \
921         Source/WebCore/dom/make_names.pl \
922         Source/WebCore/html/HTMLAttributeNames.in \
923         Source/WebCore/html/HTMLTagNames.in \
924         Source/WebCore/html/parser/create-html-entity-table \
925         Source/WebCore/html/parser/HTMLEntityNames.in \
926         Source/WebCore/icu/LICENSE \
927         Source/WebCore/inspector/CodeGeneratorInspector.py \
928         Source/WebCore/inspector/InjectedScriptSource.js \
929         Source/WebCore/inspector/Inspector.json \
930         Source/WebCore/inspector/Inspector-0.1.json \
931         Source/WebCore/inspector/generate-inspector-protocol-version \
932         Source/WebCore/inspector/xxd.pl \
933         Source/WebCore/LICENSE-APPLE \
934         Source/WebCore/LICENSE-LGPL-2 \
935         Source/WebCore/LICENSE-LGPL-2.1 \
936         Source/WebCore/make-hash-tools.pl \
937         Source/WebCore/mathml/mathattrs.in \
938         Source/WebCore/mathml/mathtags.in \
939         Source/WebCore/platform/ColorData.gperf \
940         Source/WebCore/platform/text/mac/make-charset-table.pl \
941         Source/WebCore/svg/svgattrs.in \
942         Source/WebCore/svg/svgtags.in \
943         Source/WebCore/svg/xlinkattrs.in \
944         Source/WebCore/xml/xmlattrs.in \
945         Source/WebCore/xml/xmlnsattrs.in \
946         Source/WebCore/xml/XMLViewer.css \
947         Source/WebCore/xml/XMLViewer.js \
948         Source/WebCore/xml/XPathGrammar.y
949
950 # Installing web inspector files
951 webinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector
952 dist_webinspector_DATA = \
953         $(WebCore)/English.lproj/localizedStrings.js \
954         DerivedSources/WebCore/InspectorBackendStub.js \
955         $(shell ls $(WebCore)/inspector/front-end/*.js) \
956         $(shell ls $(WebCore)/inspector/front-end/*.html) \
957         $(shell ls $(WebCore)/inspector/front-end/*.css)
958
959 webinspectoruglifyjsdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/UglifyJS
960 dist_webinspectoruglifyjs_DATA = \
961         $(shell ls $(WebCore)/inspector/front-end/UglifyJS/*.js)
962
963 webinspectorimagesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/Images
964 dist_webinspectorimages_DATA = \
965         $(shell ls $(WebCore)/inspector/front-end/Images/*.gif) \
966         $(shell ls $(WebCore)/inspector/front-end/Images/*.png)
967
968 # It seems that $(shell) does not expand when it is a rule dependency, so
969 # we must redefine this list of copied files with traditional dependency wildcards.
970 noinst_DATA = ${GENSOURCES_INSPECTOR}/inspector.html
971 ${GENSOURCES_INSPECTOR}/inspector.html: $(WebCore)/inspector/front-end/*.html \
972                 $(WebCore)/inspector/front-end/*.js \
973                 $(WebCore)/inspector/front-end/UglifyJS/*.js \
974                 $(WebCore)/inspector/front-end/*.css \
975                 $(WebCore)/inspector/front-end/Images/* \
976                 DerivedSources/WebCore/InspectorBackendStub.js \
977                 $(WebCore)/English.lproj/localizedStrings.js
978         $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/UglifyJS
979         $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/images
980         $(AM_V_at)cp ${dist_webinspector_DATA} ${GENSOURCES_INSPECTOR}
981         $(AM_V_at)cp ${dist_webinspectoruglifyjs_DATA} ${GENSOURCES_INSPECTOR}/UglifyJS
982         $(AM_V_at)cp ${dist_webinspectorimages_DATA} ${GENSOURCES_INSPECTOR}/images
983
984 webresourcesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/images
985 dist_webresources_DATA = \
986         $(WebCore)/Resources/textAreaResizeCorner.png \
987         $(WebCore)/Resources/nullPlugin.png \
988         $(WebCore)/Resources/urlIcon.png \
989         $(WebCore)/Resources/missingImage.png \
990         $(WebCore)/Resources/panIcon.png \
991         $(WebCore)/Resources/deleteButton.png \
992         $(WebCore)/Resources/inputSpeech.png