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