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