ab27a95d47348fa45056b8c49a1cfab62741de98
[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 if USE_ACCELERATED_COMPOSITING
568 webcore_cppflags += \
569         -I$(srcdir)/Source/WebCore/platform/graphics/texmap
570 endif  # USE_ACCELERATED_COMPOSITING
571
572 # ---
573 # MHTML support
574 # ---
575 if ENABLE_MHTML
576 FEATURE_DEFINES += ENABLE_MHTML=1
577 webcore_cppflags += -DENABLE_MHTML=1
578 endif  # END ENABLE_MHTML
579
580 # ---
581 # HTML5 Microdata support
582 # ---
583 if ENABLE_MICRODATA
584 FEATURE_DEFINES += ENABLE_MICRODATA=1
585 webcore_cppflags += -DENABLE_MICRODATA=1
586 endif  # END ENABLE_MICRODATA
587
588 # ---
589 # Register Protocol Handler support
590 # ---
591 if ENABLE_REGISTER_PROTOCOL_HANDLER
592 FEATURE_DEFINES += ENABLE_REGISTER_PROTOCOL_HANDLER=1
593 webcore_cppflags += -DENABLE_REGISTER_PROTOCOL_HANDLER=1
594 endif  # END ENABLE_REGISTER_PROTOCOL_HANDLER
595
596 # ---
597 # DeviceOrientation support
598 # ---
599 if ENABLE_DEVICE_ORIENTATION
600 FEATURE_DEFINES += ENABLE_DEVICE_ORIENTATION=1
601 webcore_cppflags += -DENABLE_DEVICE_ORIENTATION=1
602 endif  # END ENABLE_DEVICE_ORIENTATION
603
604 DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
605 DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
606         cat $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
607         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
608         mv CSSPropertyNames* $(GENSOURCES_WEBCORE)
609
610 # Lower case all the values, as CSS values are case-insensitive
611 DerivedSources/WebCore/CSSValueKeywords.cpp: DerivedSources/WebCore/CSSValueKeywords.h
612 DerivedSources/WebCore/CSSValueKeywords.h: $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/makevalues.pl
613         cat $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
614         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
615         mv CSSValueKeywords* $(GENSOURCES_WEBCORE)
616
617 # XML Viewer CSS
618 DerivedSources/WebCore/XMLViewerCSS.h: $(WebCore)/xml/XMLViewer.css
619         $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_css $(WebCore)/xml/XMLViewer.css $(GENSOURCES_WEBCORE)/XMLViewerCSS.h
620
621 # XML Viewer JS
622 DerivedSources/WebCore/XMLViewerJS.h: $(WebCore)/xml/XMLViewer.js
623         $(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_js $(WebCore)/xml/XMLViewer.js $(GENSOURCES_WEBCORE)/XMLViewerJS.h
624
625 # HTML entity names
626 DerivedSources/WebCore/HTMLEntityTable.cpp: $(WebCore)/html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
627         $(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o $(GENSOURCES_WEBCORE)/HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
628
629 # color names
630 DerivedSources/WebCore/ColorData.cpp: $(WebCore)/platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
631         $(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/platform/ColorData.gperf
632
633 # CSS tokenizer
634 DerivedSources/WebCore/tokenizer.cpp : $(WebCore)/css/tokenizer.flex $(WebCore)/css/maketokenizer
635         $(AM_V_GEN)$(FLEX) -t $< | $(PERL) $(WebCore)/css/maketokenizer > $@
636
637 # CSS grammar
638
639 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
640 DerivedSources/WebCore/CSSGrammar.h: $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
641 DerivedSources/WebCore/CSSGrammar.cpp: $(WebCore)/css/CSSGrammar.y
642         rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
643         $(BISON) -d -p cssyy $< -o $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
644         touch $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
645         echo '#ifndef CSSGrammar_h' > $(GENSOURCES_WEBCORE)/CSSGrammar.h
646         echo '#define CSSGrammar_h' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
647         cat $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
648         echo '#endif' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
649         rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
650
651 # user agent style sheets
652 USER_AGENT_STYLE_SHEETS = \
653         $(WebCore)/css/html.css \
654         $(WebCore)/css/mathml.css \
655         $(WebCore)/css/quirks.css \
656         $(WebCore)/css/view-source.css \
657         $(WebCore)/css/svg.css \
658         $(WebCore)/css/mediaControls.css \
659         $(WebCore)/css/mediaControlsGtk.css \
660         $(WebCore)/css/fullscreen.css \
661         $(WebCore)/css/fullscreenQuickTime.css
662
663 # new-style JavaScript bindings
664 SCRIPTS_BINDINGS = \
665         $(WebCore)/bindings/scripts/CodeGenerator.pm \
666         $(WebCore)/bindings/scripts/IDLParser.pm \
667         $(WebCore)/bindings/scripts/IDLStructure.pm \
668         $(WebCore)/bindings/scripts/InFilesCompiler.pm \
669         $(WebCore)/bindings/scripts/InFilesParser.pm \
670         $(WebCore)/bindings/scripts/generate-bindings.pl \
671         $(WebCore)/bindings/scripts/preprocessor.pm
672
673 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp: DerivedSources/WebCore/UserAgentStyleSheets.h
674 DerivedSources/WebCore/UserAgentStyleSheets.h: $(WebCore)/css/make-css-file-arrays.pl $(WebCore)/bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS)
675         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $<  --defines "$(FEATURE_DEFINES)" $@ DerivedSources/WebCore/UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
676
677 DerivedSources/WebCore/WebKitFontFamilyNames.cpp: DerivedSources/WebCore/WebKitFontFamilyNames.h
678 DerivedSources/WebCore/WebKitFontFamilyNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/css/WebKitFontFamilyNames.in
679         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in --outputDir "$(GENSOURCES_WEBCORE)"
680
681
682 # HTML tag and attribute names
683 DerivedSources/WebCore/JSHTMLElementWrapperFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.cpp
684 DerivedSources/WebCore/HTMLElementFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.h
685 DerivedSources/WebCore/HTMLElementFactory.h: DerivedSources/WebCore/HTMLNames.cpp
686 DerivedSources/WebCore/HTMLNames.cpp: DerivedSources/WebCore/HTMLNames.h
687 if HTML_FLAGS
688 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
689         $(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)"
690 else
691 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
692         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
693 endif # HTML_FLAGS
694
695
696 DerivedSources/WebCore/XMLNSNames.cpp DerivedSources/WebCore/XMLNSNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlnsattrs.in
697         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
698
699 DerivedSources/WebCore/XMLNames.cpp DerivedSources/WebCore/XMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlattrs.in
700         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
701
702 DerivedSources/WebCore/EventFactory.cpp DerivedSources/WebCore/EventHeaders.h DerivedSources/WebCore/EventInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventFactory.in
703         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventFactory.in --outputDir "$(GENSOURCES_WEBCORE)"
704
705 DerivedSources/WebCore/EventTargetHeaders.h DerivedSources/WebCore/EventTargetInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventTargetFactory.in
706         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in --outputDir "$(GENSOURCES_WEBCORE)"
707
708 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
709         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in --outputDir "$(GENSOURCES_WEBCORE)"
710
711 # All Web Inspector generated files are created with this one call to CodeGeneratorInspector.py
712 DerivedSources/WebCore/InspectorProtocolVersion.h : $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/generate-inspector-protocol-version
713         $(PYTHON) $(WebCore)/inspector/generate-inspector-protocol-version -o $(GENSOURCES_WEBCORE)/InspectorProtocolVersion.h $(WebCore)/inspector/Inspector.json
714
715 DerivedSources/WebCore/InspectorBackendDispatcher.cpp: $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/CodeGeneratorInspector.py
716         $(PYTHON) $(WebCore)/inspector/CodeGeneratorInspector.py $< --output_h_dir $(GENSOURCES_WEBCORE) --output_cpp_dir $(GENSOURCES_WEBCORE) --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)"
717 DerivedSources/WebCore/InspectorFrontend.h: DerivedSources/WebCore/InspectorFrontend.cpp
718 DerivedSources/WebCore/InspectorFrontend.cpp: DerivedSources/WebCore/InspectorBackendStub.js
719 DerivedSources/WebCore/InspectorBackendStub.js: DerivedSources/WebCore/InspectorBackendDispatcher.h
720 DerivedSources/WebCore/InspectorBackendDispatcher.h: DerivedSources/WebCore/InspectorBackendDispatcher.cpp
721 DerivedSources/WebCore/InjectedScriptSource.h: $(WebCore)/inspector/InjectedScriptSource.js
722         perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js $(GENSOURCES_WEBCORE)/InjectedScriptSource.h
723
724 if ENABLE_WEB_AUDIO
725 # Installing HRTF database wav files
726 audiodir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/resources/audio/
727 audio_DATA = $(WebCore)/platform/audio/resources/Composite.wav
728 dist_audio_DATA = $(audio_DATA)
729 endif  # END ENABLE_WEB_AUDIO
730
731 # ANGLE tokenizer & parser
732 DerivedSources/ANGLE/glslang.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.l
733         $(AM_V_GEN)$(FLEX) --noline --nounistd --outfile="$@" "$<"
734
735 DerivedSources/ANGLE/glslang_tab.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.y
736         $(AM_V_GEN)$(BISON) --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c --output="$@" $<
737 DerivedSources/ANGLE/glslang_tab.h: DerivedSources/ANGLE/glslang_tab.cpp
738
739 IDL_PATH := \
740     $(WebCore)/bindings/js \
741     $(WebCore)/css \
742     $(WebCore)/dom \
743     $(WebCore)/fileapi \
744     $(WebCore)/html \
745     $(WebCore)/html/canvas \
746     $(WebCore)/html/track \
747     $(WebCore)/inspector \
748     $(WebCore)/loader/appcache \
749     $(WebCore)/mediastream \
750     $(WebCore)/notifications \
751     $(WebCore)/page \
752     $(WebCore)/plugins \
753     $(WebCore)/storage \
754     $(WebCore)/svg \
755     $(WebCore)/testing \
756     $(WebCore)/webaudio \
757     $(WebCore)/websockets \
758     $(WebCore)/workers \
759     $(WebCore)/xml
760
761 vpath %.idl $(IDL_PATH)
762
763 # This does not appear to work correctly with gnumake unless
764 # it includes an empty command list (the semicolon).
765 DerivedSources/WebCore/JS%.cpp: DerivedSources/WebCore/JS%.h;
766
767 .SECONDARY:
768 DerivedSources/WebCore/JS%.h: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorJS.pm
769         $(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 $<
770
771 noinst_LTLIBRARIES += \
772         libWebCore.la
773
774 nodist_EXTRA_libWebCore_la_SOURCES = \
775         $(webcore_built_nosources)
776
777 nodist_libWebCore_la_SOURCES = \
778         $(webcore_built_sources)
779
780 libWebCore_la_SOURCES = \
781         $(webcore_sources)
782
783 libWebCore_la_CXXFLAGS = \
784         $(SYMBOL_VISIBILITY_INLINES) \
785         $(global_cxxflags)
786
787 libWebCore_la_CFLAGS = \
788         $(SYMBOL_VISIBILITY) \
789         $(global_cflags)
790
791 libWebCore_la_CPPFLAGS = \
792         -DBUILDING_WEBKIT \
793         $(global_cppflags) \
794         $(webcore_cppflags) \
795         $(webcoregtk_cppflags) \
796         $(javascriptcore_cppflags) \
797         -fno-strict-aliasing \
798         $(CAIRO_CFLAGS) \
799         $(COVERAGE_CFLAGS) \
800         $(ENCHANT_CFLAGS) \
801         $(GEOCLUE_CFLAGS) \
802         $(GLIB_CFLAGS) \
803         $(GSTREAMER_CFLAGS) \
804         $(LIBSOUP_CFLAGS) \
805         $(LIBXML_CFLAGS) \
806         $(LIBXSLT_CFLAGS) \
807         $(SQLITE3_CFLAGS) \
808         $(UNICODE_CFLAGS) \
809         $(XRENDER_CFLAGS) \
810         $(XT_CFLAGS)
811
812 # We have a different library with only the files that require GTK+. It allows us
813 # to build a common WebCore lib and two different gtk WebCore libs depending on
814 # the gtk version. In WeKit2 gtk2 is not supported, but the plugin process needs to
815 # be built using gtk2 because plugins like flash still use gtk2. For WebKit2, we build
816 # the common libWebCore and two libWebCoreGtk, one using gtk3 and the other one using gtk2.
817 noinst_LTLIBRARIES += \
818         libWebCoreGtk.la
819
820 libWebCoreGtk_la_SOURCES = \
821         $(webcoregtk_sources)
822
823 libWebCoreGtk_la_CXXFLAGS = \
824         $(SYMBOL_VISIBILITY_INLINES) \
825         $(global_cxxflags)
826
827 libWebCoreGtk_la_CFLAGS = \
828         $(SYMBOL_VISIBILITY) \
829         $(global_cflags)
830
831 libWebCoreGtk_la_CPPFLAGS = \
832         -DBUILDING_WEBKIT \
833         $(global_cppflags) \
834         $(webcore_cppflags) \
835         $(webcoregtk_cppflags) \
836         $(javascriptcore_cppflags) \
837         -fno-strict-aliasing \
838         $(HILDON_CPPFLAGS) \
839         $(COVERAGE_CFLAGS) \
840         $(ENCHANT_CFLAGS) \
841         $(GAIL_CFLAGS) \
842         $(GEOCLUE_CFLAGS) \
843         $(GLIB_CFLAGS) \
844         $(GSTREAMER_CFLAGS) \
845         $(GTK_CFLAGS) \
846         $(HILDON_CFLAGS) \
847         $(LIBFFTW_CFLAGS) \
848         $(LIBSOUP_CFLAGS) \
849         $(LIBXML_CFLAGS) \
850         $(LIBXSLT_CFLAGS) \
851         $(SQLITE3_CFLAGS) \
852         $(UNICODE_CFLAGS) \
853         $(XRENDER_CFLAGS) \
854         $(XT_CFLAGS)
855
856 EXTRA_DIST += \
857         $(shell ls $(srcdir)/Source/WebCore/css/*.idl) \
858         $(shell ls $(srcdir)/Source/WebCore/dom/*.idl) \
859         $(shell ls $(srcdir)/Source/WebCore/fileapi/*.idl) \
860         $(shell ls $(srcdir)/Source/WebCore/html/canvas/*.idl) \
861         $(shell ls $(srcdir)/Source/WebCore/html/track/*.idl) \
862         $(shell ls $(srcdir)/Source/WebCore/html/*.idl) \
863         $(shell ls $(srcdir)/Source/WebCore/inspector/*.idl) \
864         $(shell ls $(srcdir)/Source/WebCore/loader/appcache/*.idl) \
865         $(shell ls $(srcdir)/Source/WebCore/mediastream/*.idl) \
866         $(shell ls $(srcdir)/Source/WebCore/notifications/*.idl) \
867         $(shell ls $(srcdir)/Source/WebCore/page/*.idl) \
868         $(shell ls $(srcdir)/Source/WebCore/plugins/*.idl) \
869         $(shell ls $(srcdir)/Source/WebCore/storage/*.idl) \
870         $(shell ls $(srcdir)/Source/WebCore/svg/*.idl) \
871         $(shell ls $(srcdir)/Source/WebCore/testing/*.idl) \
872         $(shell ls $(srcdir)/Source/WebCore/webaudio/*.idl) \
873         $(shell ls $(srcdir)/Source/WebCore/websockets/*.idl) \
874         $(shell ls $(srcdir)/Source/WebCore/workers/*.idl) \
875         $(shell ls $(srcdir)/Source/WebCore/xml/*.idl) \
876         Source/ThirdParty/ANGLE/src/compiler/glslang.l \
877         Source/ThirdParty/ANGLE/src/compiler/glslang.y \
878         Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm \
879         Source/WebCore/bindings/scripts/CodeGeneratorJS.pm \
880         Source/WebCore/bindings/scripts/CodeGenerator.pm \
881         Source/WebCore/bindings/scripts/IDLParser.pm \
882         Source/WebCore/bindings/scripts/IDLStructure.pm \
883         Source/WebCore/bindings/scripts/InFilesCompiler.pm \
884         Source/WebCore/bindings/scripts/InFilesParser.pm \
885         Source/WebCore/bindings/scripts/generate-bindings.pl \
886         Source/WebCore/bindings/scripts/gobject-generate-headers.pl \
887         Source/WebCore/bindings/scripts/preprocessor.pm \
888         Source/WebCore/ChangeLog \
889         Source/WebCore/css/CSSGrammar.y \
890         Source/WebCore/css/CSSPropertyNames.in \
891         Source/WebCore/css/CSSValueKeywords.in \
892         Source/WebCore/dom/DOMExceptions.in \
893         Source/WebCore/css/fullscreen.css \
894         Source/WebCore/css/fullscreenQuickTime.css \
895         Source/WebCore/css/html.css \
896         Source/WebCore/css/make-css-file-arrays.pl \
897         Source/WebCore/css/makegrammar.pl \
898         Source/WebCore/css/makeprop.pl \
899         Source/WebCore/css/maketokenizer \
900         Source/WebCore/css/makevalues.pl \
901         Source/WebCore/css/mathml.css \
902         Source/WebCore/css/mediaControls.css \
903         Source/WebCore/css/mediaControlsGtk.css \
904         Source/WebCore/css/quirks.css \
905         Source/WebCore/css/svg.css \
906         Source/WebCore/css/SVGCSSPropertyNames.in \
907         Source/WebCore/css/SVGCSSValueKeywords.in \
908         Source/WebCore/css/tokenizer.flex \
909         Source/WebCore/css/view-source.css \
910         Source/WebCore/css/WebKitFontFamilyNames.in \
911         Source/WebCore/dom/EventFactory.in \
912         Source/WebCore/dom/EventTargetFactory.in \
913         Source/WebCore/dom/make_dom_exceptions.pl \
914         Source/WebCore/dom/make_event_factory.pl \
915         Source/WebCore/dom/make_names.pl \
916         Source/WebCore/html/HTMLAttributeNames.in \
917         Source/WebCore/html/HTMLTagNames.in \
918         Source/WebCore/html/parser/create-html-entity-table \
919         Source/WebCore/html/parser/HTMLEntityNames.in \
920         Source/WebCore/icu/LICENSE \
921         Source/WebCore/inspector/CodeGeneratorInspector.py \
922         Source/WebCore/inspector/InjectedScriptSource.js \
923         Source/WebCore/inspector/Inspector.json \
924         Source/WebCore/inspector/Inspector-0.1.json \
925         Source/WebCore/inspector/generate-inspector-protocol-version \
926         Source/WebCore/inspector/xxd.pl \
927         Source/WebCore/LICENSE-APPLE \
928         Source/WebCore/LICENSE-LGPL-2 \
929         Source/WebCore/LICENSE-LGPL-2.1 \
930         Source/WebCore/make-hash-tools.pl \
931         Source/WebCore/mathml/mathattrs.in \
932         Source/WebCore/mathml/mathtags.in \
933         Source/WebCore/platform/ColorData.gperf \
934         Source/WebCore/platform/text/mac/make-charset-table.pl \
935         Source/WebCore/svg/svgattrs.in \
936         Source/WebCore/svg/svgtags.in \
937         Source/WebCore/svg/xlinkattrs.in \
938         Source/WebCore/xml/xmlattrs.in \
939         Source/WebCore/xml/xmlnsattrs.in \
940         Source/WebCore/xml/XMLViewer.css \
941         Source/WebCore/xml/XMLViewer.js \
942         Source/WebCore/xml/XPathGrammar.y
943
944 # Installing web inspector files
945 webinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector
946 dist_webinspector_DATA = \
947         $(WebCore)/English.lproj/localizedStrings.js \
948         DerivedSources/WebCore/InspectorBackendStub.js \
949         $(shell ls $(WebCore)/inspector/front-end/*.js) \
950         $(shell ls $(WebCore)/inspector/front-end/*.html) \
951         $(shell ls $(WebCore)/inspector/front-end/*.css)
952
953 webinspectoruglifyjsdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/UglifyJS
954 dist_webinspectoruglifyjs_DATA = \
955         $(shell ls $(WebCore)/inspector/front-end/UglifyJS/*.js)
956
957 webinspectorimagesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/Images
958 dist_webinspectorimages_DATA = \
959         $(shell ls $(WebCore)/inspector/front-end/Images/*.gif) \
960         $(shell ls $(WebCore)/inspector/front-end/Images/*.png)
961
962 # It seems that $(shell) does not expand when it is a rule dependency, so
963 # we must redefine this list of copied files with traditional dependency wildcards.
964 noinst_DATA = ${GENSOURCES_INSPECTOR}/inspector.html
965 ${GENSOURCES_INSPECTOR}/inspector.html: $(WebCore)/inspector/front-end/*.html \
966                 $(WebCore)/inspector/front-end/*.js \
967                 $(WebCore)/inspector/front-end/UglifyJS/*.js \
968                 $(WebCore)/inspector/front-end/*.css \
969                 $(WebCore)/inspector/front-end/Images/* \
970                 DerivedSources/WebCore/InspectorBackendStub.js \
971                 $(WebCore)/English.lproj/localizedStrings.js
972         $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/UglifyJS
973         $(AM_V_GEN)mkdir -p ${GENSOURCES_INSPECTOR}/images
974         $(AM_V_at)cp ${dist_webinspector_DATA} ${GENSOURCES_INSPECTOR}
975         $(AM_V_at)cp ${dist_webinspectoruglifyjs_DATA} ${GENSOURCES_INSPECTOR}/UglifyJS
976         $(AM_V_at)cp ${dist_webinspectorimages_DATA} ${GENSOURCES_INSPECTOR}/images
977
978 webresourcesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/images
979 dist_webresources_DATA = \
980         $(WebCore)/Resources/textAreaResizeCorner.png \
981         $(WebCore)/Resources/nullPlugin.png \
982         $(WebCore)/Resources/urlIcon.png \
983         $(WebCore)/Resources/missingImage.png \
984         $(WebCore)/Resources/panIcon.png \
985         $(WebCore)/Resources/deleteButton.png \
986         $(WebCore)/Resources/inputSpeech.png