Correction of macro naming for Docomo bug 1339
[framework/web/webkit-efl.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/Modules/filesystem \
15         -I$(srcdir)/Source/WebCore/Modules/gamepad \
16         -I$(srcdir)/Source/WebCore/Modules/geolocation \
17         -I$(srcdir)/Source/WebCore/Modules/indexeddb \
18         -I$(srcdir)/Source/WebCore/Modules/mediasource \
19         -I$(srcdir)/Source/WebCore/Modules/mediastream \
20         -I$(srcdir)/Source/WebCore/Modules/notifications \
21         -I$(srcdir)/Source/WebCore/Modules/protocolhandler \
22         -I$(srcdir)/Source/WebCore/Modules/webaudio \
23         -I$(srcdir)/Source/WebCore/Modules/webdatabase \
24         -I$(srcdir)/Source/WebCore/Modules/websockets \
25         -I$(srcdir)/Source/WebCore/accessibility \
26         -I$(srcdir)/Source/WebCore/bindings \
27         -I$(srcdir)/Source/WebCore/bindings/generic \
28         -I$(srcdir)/Source/WebCore/bindings/js \
29         -I$(srcdir)/Source/WebCore/bindings/js/specialization \
30         -I$(srcdir)/Source/WebCore/bridge \
31         -I$(srcdir)/Source/WebCore/bridge/c \
32         -I$(srcdir)/Source/WebCore/bridge/jni/jsc \
33         -I$(srcdir)/Source/WebCore/bridge/jsc \
34         -I$(srcdir)/Source/WebCore/css \
35         -I$(srcdir)/Source/WebCore/dom \
36         -I$(srcdir)/Source/WebCore/dom/default \
37         -I$(srcdir)/Source/WebCore/editing \
38         -I$(srcdir)/Source/WebCore/fileapi \
39         -I$(srcdir)/Source/WebCore/history \
40         -I$(srcdir)/Source/WebCore/html \
41         -I$(srcdir)/Source/WebCore/html/canvas \
42         -I$(srcdir)/Source/WebCore/html/parser \
43         -I$(srcdir)/Source/WebCore/html/shadow \
44         -I$(srcdir)/Source/WebCore/html/track \
45         -I$(srcdir)/Source/WebCore/inspector \
46         -I$(srcdir)/Source/WebCore/loader \
47         -I$(srcdir)/Source/WebCore/loader/appcache \
48         -I$(srcdir)/Source/WebCore/loader/archive \
49         -I$(srcdir)/Source/WebCore/loader/cache \
50         -I$(srcdir)/Source/WebCore/loader/icon \
51         -I$(srcdir)/Source/WebCore/mathml \
52         -I$(srcdir)/Source/WebCore/page \
53         -I$(srcdir)/Source/WebCore/page/animation \
54         -I$(srcdir)/Source/WebCore/page/scrolling \
55         -I$(srcdir)/Source/WebCore/platform \
56         -I$(srcdir)/Source/WebCore/platform/animation \
57         -I$(srcdir)/Source/WebCore/platform/audio \
58         -I$(srcdir)/Source/WebCore/platform/graphics \
59         -I$(srcdir)/Source/WebCore/platform/graphics/filters \
60         -I$(srcdir)/Source/WebCore/platform/graphics/filters/arm \
61         -I$(srcdir)/Source/WebCore/platform/graphics/gpu \
62         -I$(srcdir)/Source/WebCore/platform/graphics/opengl \
63         -I$(srcdir)/Source/WebCore/platform/graphics/opentype \
64         -I$(srcdir)/Source/WebCore/platform/graphics/transforms \
65         -I$(srcdir)/Source/WebCore/platform/image-decoders \
66         -I$(srcdir)/Source/WebCore/platform/image-decoders/bmp \
67         -I$(srcdir)/Source/WebCore/platform/image-decoders/gif \
68         -I$(srcdir)/Source/WebCore/platform/image-decoders/ico \
69         -I$(srcdir)/Source/WebCore/platform/image-decoders/jpeg \
70         -I$(srcdir)/Source/WebCore/platform/image-decoders/webp \
71         -I$(srcdir)/Source/WebCore/platform/image-decoders/png \
72         -I$(srcdir)/Source/WebCore/platform/leveldb \
73         -I$(srcdir)/Source/WebCore/platform/linux \
74         -I$(srcdir)/Source/WebCore/platform/mediastream \
75         -I$(srcdir)/Source/WebCore/platform/mediastream/gstreamer \
76         -I$(srcdir)/Source/WebCore/platform/mock \
77         -I$(srcdir)/Source/WebCore/platform/network \
78         -I$(srcdir)/Source/WebCore/platform/sql \
79         -I$(srcdir)/Source/WebCore/platform/text \
80         -I$(srcdir)/Source/WebCore/platform/text/transcoder \
81         -I$(srcdir)/Source/WebCore/platform/win \
82         -I$(srcdir)/Source/WebCore/plugins \
83         -I$(srcdir)/Source/WebCore/plugins/win \
84         -I$(srcdir)/Source/WebCore/rendering \
85         -I$(srcdir)/Source/WebCore/rendering/mathml \
86         -I$(srcdir)/Source/WebCore/rendering/style \
87         -I$(srcdir)/Source/WebCore/rendering/svg \
88         -I$(srcdir)/Source/WebCore/storage \
89         -I$(srcdir)/Source/WebCore/svg \
90         -I$(srcdir)/Source/WebCore/svg/animation \
91         -I$(srcdir)/Source/WebCore/svg/graphics \
92         -I$(srcdir)/Source/WebCore/svg/graphics/filters \
93         -I$(srcdir)/Source/WebCore/svg/properties \
94         -I$(srcdir)/Source/WebCore/testing \
95         -I$(srcdir)/Source/WebCore/testing/js \
96         -I$(srcdir)/Source/WebCore/websockets \
97         -I$(srcdir)/Source/WebCore/workers \
98         -I$(srcdir)/Source/WebCore/xml \
99         -I$(srcdir)/Source/WebCore/xml/parser \
100         -I$(top_builddir)/WebCore/bindings/js \
101         -I$(top_builddir)/DerivedSources/WebCore \
102         -I$(top_builddir)/DerivedSources \
103         -I$(top_builddir)/DerivedSources/JavaScriptCore \
104         -DDATA_DIR=\"${datadir}\"
105
106 webcoregtk_cppflags += \
107         -DWEBKITGTK_API_VERSION_STRING=\"@WEBKITGTK_API_VERSION@\" \
108         -DWTF_USE_SOUP=1 \
109         -I$(srcdir)/Source/WebCore/accessibility/gtk \
110         -I$(srcdir)/Source/WebCore/loader/gtk \
111         -I$(srcdir)/Source/WebCore/page/gtk \
112         -I$(srcdir)/Source/WebCore/platform/cairo \
113         -I$(srcdir)/Source/WebCore/platform/audio/gstreamer \
114         -I$(srcdir)/Source/WebCore/platform/geoclue \
115         -I$(srcdir)/Source/WebCore/platform/graphics/cairo \
116         -I$(srcdir)/Source/WebCore/platform/graphics/glx \
117         -I$(srcdir)/Source/WebCore/platform/graphics/gstreamer \
118         -I$(srcdir)/Source/WebCore/platform/graphics/gtk \
119         -I$(srcdir)/Source/WebCore/platform/gtk \
120         -I$(srcdir)/Source/WebCore/platform/network/soup \
121         -I$(srcdir)/Source/WebCore/platform/text/enchant
122
123 # ---
124 # Features enabled by default at compilation time
125 # ---
126 FEATURE_DEFINES += ENABLE_SMOOTH_SCROLLING=1
127 webcore_cppflags += -DENABLE_SMOOTH_SCROLLING=1
128
129 # ---
130 # Channel mesaging support
131 # ---
132 if ENABLE_CHANNEL_MESSAGING
133 FEATURE_DEFINES += ENABLE_CHANNEL_MESSAGING=1
134 webcore_cppflags += -DENABLE_CHANNEL_MESSAGING=1
135 endif # END ENABLE_CHANNEL_MESSAGING
136
137 # ---
138 # Fast Mobile Scrolling
139 # ---
140 if ENABLE_FAST_MOBILE_SCROLLING
141 FEATURE_DEFINES += ENABLE_FAST_MOBILE_SCROLLING=1
142 webcore_cppflags += -DENABLE_FAST_MOBILE_SCROLLING=1
143 endif # END ENABLE_FAST_MOBILE_SCROLLING
144
145 # ---
146 # FreeType font backend
147 # ---
148 if USE_FREETYPE
149 webcoregtk_cppflags += \
150         -DWTF_USE_FREETYPE=1 \
151         -I$(srcdir)/Source/WebCore/platform/graphics/freetype
152 endif # END USE_FREETYPE
153
154 # ---
155 # Pango font backend
156 # ---
157 if USE_PANGO
158 webcoregtk_cppflags += \
159         -DWTF_USE_PANGO=1 \
160         -I$(srcdir)/Source/WebCore/platform/graphics/pango
161 endif # END USE_PANGO
162
163 # ---
164 # Windows plugin support
165 # ---
166 if TARGET_WIN32
167 webcoregtk_cppflags += \
168         -I$(srcdir)/Source/WebCore/platform/graphics/win
169 endif # END TARGET_WIN32
170
171 # ----
172 # HTML Details Element
173 # ----
174 if ENABLE_DETAILS_ELEMENT
175 FEATURE_DEFINES += ENABLE_DETAILS_ELEMENT=1
176 webcore_cppflags += -DENABLE_DETAILS_ELEMENT=1
177 endif # END ENABLE_DETAILS_ELEMENT
178
179 # ----
180 # HTML Meter Element
181 # ----
182 if ENABLE_METER_ELEMENT
183 FEATURE_DEFINES += ENABLE_METER_ELEMENT=1
184 webcore_cppflags += -DENABLE_METER_ELEMENT=1
185 endif # END ENABLE_METER_ELEMENT
186
187 # ----
188 # HTML Progress Element
189 # ----
190 if ENABLE_PROGRESS_ELEMENT
191 FEATURE_DEFINES += ENABLE_PROGRESS_ELEMENT=1
192 webcore_cppflags += -DENABLE_PROGRESS_ELEMENT=1
193 endif # END ENABLE_PROGRESS_ELEMENT
194
195 # ----
196 # JavaScript Debugger/Profiler
197 # ----
198 if ENABLE_JAVASCRIPT_DEBUGGER
199 FEATURE_DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
200 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=1
201 else
202 webcore_cppflags += -DENABLE_JAVASCRIPT_DEBUGGER=0
203 endif # END ENABLE_JAVASCRIPT_DEBUGGER
204
205 # ----
206 # Gamepad support
207 # ---
208 if ENABLE_GAMEPAD
209 FEATURE_DEFINES += ENABLE_GAMEPAD=1
210 webcore_cppflags += -DENABLE_GAMEPAD=1
211 else
212 webcore_cppflags += -DENABLE_GAMEPAD=0
213 endif # END ENABLE_GAMEPAD
214
215 # ----
216 # Database Support
217 # ----
218 if ENABLE_SQL_DATABASE
219 FEATURE_DEFINES += ENABLE_SQL_DATABASE=1
220 webcore_cppflags += -DENABLE_SQL_DATABASE=1
221 else
222 webcore_cppflags += -DENABLE_SQL_DATABASE=0
223 endif # END ENABLE_SQL_DATABASE
224
225 # ----
226 # HTML5 datalist Support
227 # ----
228 if ENABLE_DATALIST_ELEMENT
229 FEATURE_DEFINES += ENABLE_DATALIST_ELEMENT=1
230 HTML_FEATURES += ENABLE_DATALIST_ELEMENT=1
231 webcore_cppflags += -DENABLE_DATALIST_ELEMENT=1
232 endif # END ENABLE_DATALIST_ELEMENT
233
234 # ----
235 # HTML5 data transfer items support
236 # ----
237 if ENABLE_DATA_TRANSFER_ITEMS
238 FEATURE_DEFINES += ENABLE_DATA_TRANSFER_ITEMS=1
239 webcore_cppflags += -DENABLE_DATA_TRANSFER_ITEMS=1
240 endif # END ENABLE_DATA_TRANSFER_ITEMS
241
242 # ----
243 # HTML5 <style scoped> support
244 # ----
245 if ENABLE_STYLE_SCOPED
246 FEATURE_DEFINES += ENABLE_STYLE_SCOPED=1
247 webcore_cppflags += -DENABLE_STYLE_SCOPED=1
248 endif # END ENABLE_STYLE_SCOPED
249
250 # ----
251 # Indexed Database API support
252 # ----
253 if ENABLE_INDEXED_DATABASE
254 FEATURE_DEFINES += ENABLE_INDEXED_DATABASE=1
255 webcore_cppflags += -DENABLE_INDEXED_DATABASE=1
256 endif # END ENABLE_INDEXED_DATABASE
257
258 if USE_LEVELDB
259 webcore_cppflags += -DWTF_USE_LEVELDB
260 endif # END USE_LEVELDB
261
262 # ----
263 # Support for <input type="file" directory>
264 # ----
265 if ENABLE_DIRECTORY_UPLOAD
266 FEATURE_DEFINES += ENABLE_DIRECTORY_UPLOAD=1
267 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=1
268 else
269 webcore_cppflags += -DENABLE_DIRECTORY_UPLOAD=0
270 endif # END ENABLE_DIRECTORY_UPLOAD
271
272 # ----
273 # DOM mutation observer support
274 # ----
275 if ENABLE_MUTATION_OBSERVERS
276 FEATURE_DEFINES += ENABLE_MUTATION_OBSERVERS=1
277 webcore_cppflags += -DENABLE_MUTATION_OBSERVERS=1
278 endif # END ENABLE_MUTATION_OBSERVERS
279
280 # ----
281 # FileSystem API support
282 # ----
283 if ENABLE_FILE_SYSTEM
284 FEATURE_DEFINES += ENABLE_FILE_SYSTEM=1
285 webcore_cppflags += -DENABLE_FILE_SYSTEM=1
286 endif # END ENABLE_FILE_SYSTEM
287
288 # ----
289 # Quota support
290 # ----
291 if ENABLE_QUOTA
292 FEATURE_DEFINES += ENABLE_QUOTA=1
293 webcore_cppflags += -DENABLE_QUOTA=1
294 endif # END ENABLE_QUOTA
295
296 # ----
297 # Touch Icon Loading
298 # ----
299 if ENABLE_TOUCH_ICON_LOADING
300 FEATURE_DEFINES += ENABLE_TOUCH_ICON_LOADING=1
301 webcore_cppflags += -DENABLE_TOUCH_ICON_LOADING=1
302 else
303 webcore_cppflags += -DENABLE_TOUCH_ICON_LOADING=0
304 endif # END ENABLE_TOUCH_ICON_LOADING
305
306 # ----
307 # Color Input API support
308 # ----
309 if ENABLE_INPUT_TYPE_COLOR
310 FEATURE_DEFINES += ENABLE_INPUT_TYPE_COLOR=1
311 webcore_cppflags += -DENABLE_INPUT_TYPE_COLOR=1
312 else
313 webcore_cppflags += -DENABLE_INPUT_TYPE_COLOR=0
314 endif # END ENABLE_INPUT_TYPE_COLOR
315
316 # ----
317 # Speech Input API support
318 # ----
319 if ENABLE_INPUT_SPEECH
320 FEATURE_DEFINES += ENABLE_INPUT_SPEECH=1
321 webcore_cppflags += -DENABLE_INPUT_SPEECH=1
322 else
323 webcore_cppflags += -DENABLE_INPUT_SPEECH=0
324 endif # END ENABLE_INPUT_SPEECH
325
326 # ----
327 # Scripted Speech API support
328 # ----
329 if ENABLE_SCRIPTED_SPEECH
330 FEATURE_DEFINES += ENABLE_SCRIPTED_SPEECH=1
331 webcore_cppflags += -DENABLE_SCRIPTED_SPEECH=1
332 else
333 webcore_cppflags += -DENABLE_SCRIPTED_SPEECH=0
334 endif # END ENABLE_SCRIPTED_SPEECH
335
336 # ----
337 # Icon Database Support
338 # ----
339 if ENABLE_ICONDATABASE
340 webcore_cppflags += -DENABLE_ICONDATABASE=1
341 else
342 webcore_cppflags += -DENABLE_ICONDATABASE=0
343 endif # END ENABLE_ICONDATABASE
344
345 # ----
346 # Orientation Events
347 # ----
348 if ENABLE_ORIENTATION_EVENTS
349 FEATURE_DEFINES += ENABLE_ORIENTATION_EVENTS=1
350 webcore_cppflags += -DENABLE_ORIENTATION_EVENTS=1
351 endif # END ENABLE_ORIENTATION_EVENTS
352
353 # ----
354 # Video Support
355 # ----
356 if ENABLE_VIDEO
357 FEATURE_DEFINES += ENABLE_VIDEO=1
358 HTML_FEATURES += ENABLE_VIDEO=1
359 webcore_cppflags += -DENABLE_VIDEO=1
360
361 if USE_GSTREAMER
362 if ENABLE_DEBUG
363 webcore_cppflags += -DGST_DISABLE_DEPRECATED
364 endif # END ENABLE_DEBUG
365 endif # END USE_GSTREAMER
366 endif # END ENABLE_VIDEO
367
368 # ----
369 # Media Source Support
370 # ----
371 if ENABLE_MEDIA_SOURCE
372 FEATURE_DEFINES += ENABLE_MEDIA_SOURCE=1
373 webcore_cppflags += -DENABLE_MEDIA_SOURCE=1
374 else
375 webcore_cppflags += -DENABLE_MEDIA_SOURCE=0
376 endif # END ENABLE_MEDIA_SOURCE
377
378 # ----
379 # Media Statistics Support
380 # ----
381 if ENABLE_MEDIA_STATISTICS
382 FEATURE_DEFINES += ENABLE_MEDIA_STATISTICS=1
383 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=1
384 else
385 webcore_cppflags += -DENABLE_MEDIA_STATISTICS=0
386 endif # END ENABLE_MEDIA_STATISTICS
387
388 # ----
389 # Javascript Fullscreen Support
390 # ----
391 if ENABLE_FULLSCREEN_API
392 FEATURE_DEFINES += ENABLE_FULLSCREEN_API=1
393 webcore_cppflags += -DENABLE_FULLSCREEN_API=1
394 endif # END ENABLE_FULLSCREEN_API
395
396 # ----
397 # Track Support
398 # ----
399 if ENABLE_VIDEO_TRACK
400 FEATURE_DEFINES += ENABLE_VIDEO_TRACK=1
401 webcore_cppflags += -DENABLE_VIDEO_TRACK=1
402 else
403 webcore_cppflags += -DENABLE_VIDEO_TRACK=0
404 endif # END ENABLE_VIDEO_TRACK
405
406 # ----
407 # Media Stream Support
408 # ----
409 if ENABLE_MEDIA_STREAM
410 FEATURE_DEFINES += ENABLE_MEDIA_STREAM=1
411 webcore_cppflags += -DENABLE_MEDIA_STREAM=1
412 else
413 webcore_cppflags += -DENABLE_MEDIA_STREAM=0
414 endif # END ENABLE_MEDIA_STREAM
415
416 # XPath grammar
417 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
418 $(GENSOURCES_WEBCORE)/XPathGrammar.h: $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
419 $(GENSOURCES_WEBCORE)/XPathGrammar.cpp: $(WebCore)/xml/XPathGrammar.y
420         $(AM_V_GEN)
421         $(AM_V_at)rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
422         $(AM_V_at)$(BISON) -d -p xpathyy $< -o $(GENSOURCES_WEBCORE)/XPathGrammar.cpp
423         $(AM_V_at)touch $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
424         $(AM_V_at)echo '#ifndef XPathGrammar_h' > $(GENSOURCES_WEBCORE)/XPathGrammar.h
425         $(AM_V_at)echo '#define XPathGrammar_h' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
426         $(AM_V_at)cat $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
427         $(AM_V_at)echo '#endif' >> $(GENSOURCES_WEBCORE)/XPathGrammar.h
428         $(AM_V_at)rm -f $(GENSOURCES_WEBCORE)/XPathGrammar.cpp.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp
429
430 # ----
431 # XSLT Support
432 # ----
433 if ENABLE_XSLT
434 FEATURE_DEFINES += ENABLE_XSLT=1
435 webcore_cppflags += -DENABLE_XSLT=1
436 endif # END ENABLE_XSLT
437
438 # ----
439 # Web Workers support
440 # ----
441 if ENABLE_WORKERS
442 FEATURE_DEFINES += ENABLE_WORKERS=1
443 webcore_cppflags += -DENABLE_WORKERS=1
444 endif
445
446 # ---
447 # Shadow DOM support
448 # ---
449 if ENABLE_SHADOW_DOM
450 FEATURE_DEFINES += ENABLE_SHADOW_DOM=1
451 webcore_cppflags += -DENABLE_SHADOW_DOM=1
452 endif
453
454 # ---
455 # SharedWorker support
456 # ---
457 if ENABLE_SHARED_WORKERS
458 FEATURE_DEFINES += ENABLE_SHARED_WORKERS=1
459 webcore_cppflags += -DENABLE_SHARED_WORKERS=1
460 endif
461
462 # ----
463 # Filters
464 # ----
465 if ENABLE_FILTERS
466 FEATURE_DEFINES += ENABLE_FILTERS=1
467 webcore_cppflags += -DENABLE_FILTERS=1
468 if ENABLE_SVG
469 SVG_FEATURES += ENABLE_FILTERS=1
470 endif
471
472 endif # END ENABLE_FILTERS
473
474 # ----
475 # CSS box decoration break
476 # ----
477 if ENABLE_CSS_BOX_DECORATION_BREAK
478 FEATURE_DEFINES += ENABLE_CSS_BOX_DECORATION_BREAK=1
479 webcore_cppflags += -DENABLE_CSS_BOX_DECORATION_BREAK=1
480
481 endif # END ENABLE_CSS_BOX_DECORATION_BREAK
482
483 # ----
484 # Regions
485 # ----
486 if ENABLE_CSS_REGIONS
487 FEATURE_DEFINES += ENABLE_CSS_REGIONS=1
488 webcore_cppflags += -DENABLE_CSS_REGIONS=1
489
490 endif # END ENABLE_CSS_REGIONS
491
492 # ----
493 # Filters
494 # ----
495 if ENABLE_CSS_FILTERS
496 FEATURE_DEFINES += ENABLE_CSS_FILTERS=1
497 webcore_cppflags += -DENABLE_CSS_FILTERS=1
498
499 endif # END ENABLE_CSS_FILTERS
500
501 # ----
502 # Compositing
503 # ----
504 if ENABLE_CSS_COMPOSITING
505 FEATURE_DEFINES += ENABLE_CSS_COMPOSITING=1
506 webcore_cppflags += -DENABLE_CSS_COMPOSITING=1
507 if ENABLE_SVG
508 SVG_FEATURES += ENABLE_CSS_COMPOSITING=1
509 endif
510
511 endif # END ENABLE_CSS_COMPOSITING
512
513 # ----
514 # Exclusions
515 # ----
516 if ENABLE_CSS_EXCLUSIONS
517 FEATURE_DEFINES += ENABLE_CSS_EXCLUSIONS=1
518 webcore_cppflags += -DENABLE_CSS_EXCLUSIONS=1
519
520 endif # END ENABLE_CSS_EXCLUSIONS
521
522 # ----
523 # Geolocation
524 # ----
525 if ENABLE_GEOLOCATION
526
527 FEATURE_DEFINES += ENABLE_GEOLOCATION=1
528 webcore_cppflags += -DENABLE_GEOLOCATION=1
529 endif # END ENABLE_GEOLOCATION
530
531 # ----
532 # MathML support
533 # ----
534 if ENABLE_MATHML
535 FEATURE_DEFINES += ENABLE_MATHML=1
536 webcore_cppflags += -DENABLE_MATHML=1
537 endif # END ENABLE_MATHML
538
539 # MathML tag and attribute names, and element factory
540 DerivedSources/WebCore/MathMLElementFactory.h: DerivedSources/WebCore/MathMLElementFactory.cpp
541 DerivedSources/WebCore/MathMLNames.h: DerivedSources/WebCore/MathMLNames.cpp
542 DerivedSources/WebCore/MathMLElementFactory.cpp DerivedSources/WebCore/MathMLNames.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/mathml/mathtags.in $(WebCore)/mathml/mathattrs.in
543         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
544
545 # ----
546 # Notifications support
547 # ----
548 if ENABLE_NOTIFICATIONS
549 FEATURE_DEFINES += ENABLE_NOTIFICATIONS=1 ENABLE_LEGACY_NOTIFICATIONS=1
550 webcore_cppflags += -DENABLE_NOTIFICATIONS=1 -DENABLE_LEGACY_NOTIFICATIONS=1
551 endif # END ENABLE_NOTIFICATIONS
552
553 # ----
554 # SVG Support
555 #
556 # FIXME: allow a more fine-grained inclusion/generation of sources per SVG feature
557 # ----
558 if ENABLE_SVG
559 FEATURE_DEFINES += ENABLE_SVG=1
560 webcore_cppflags += -DENABLE_SVG=1
561 WEBCORE_CSS_PROPERTY_NAMES += $(WebCore)/css/SVGCSSPropertyNames.in
562 WEBCORE_CSS_VALUE_KEYWORDS += $(WebCore)/css/SVGCSSValueKeywords.in
563
564 # SVG Features
565 if ENABLE_SVG_FONTS
566 FEATURE_DEFINES += ENABLE_SVG_FONTS=1
567 SVG_FEATURES += ENABLE_SVG_FONTS=1
568 webcore_cppflags += -DENABLE_SVG_FONTS=1
569 endif
570
571 endif # END ENABLE_SVG
572
573 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
574 DerivedSources/WebCore/SVGNames.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
575 DerivedSources/WebCore/JSSVGElementWrapperFactory.cpp: DerivedSources/WebCore/SVGElementFactory.cpp
576
577 if SVG_FLAGS
578 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
579         $(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)"
580 else
581 DerivedSources/WebCore/SVGElementFactory.cpp: $(WebCore)/dom/make_names.pl $(WebCore)/svg/svgtags.in $(WebCore)/svg/svgattrs.in
582         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
583 endif # SVG_FLAGS
584
585 # end SVG Features
586
587 DerivedSources/WebCore/XLinkNames.h: DerivedSources/WebCore/XLinkNames.cpp
588 DerivedSources/WebCore/XLinkNames.cpp : $(WebCore)/dom/make_names.pl $(WebCore)/svg/xlinkattrs.in
589         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
590
591 # ----
592 # Web Audio Support
593 # ----
594 if ENABLE_WEB_AUDIO
595 FEATURE_DEFINES += ENABLE_WEB_AUDIO=1
596 webcore_cppflags += -DENABLE_WEB_AUDIO=1
597 endif
598
599 if USE_WEBAUDIO_GSTREAMER
600 webcore_cppflags += -DWTF_USE_WEBAUDIO_GSTREAMER=1
601 endif
602
603 # ----
604 # Web Sockets Support
605 # ----
606 if ENABLE_WEB_SOCKETS
607 FEATURE_DEFINES += ENABLE_WEB_SOCKETS=1
608 webcore_cppflags += -DENABLE_WEB_SOCKETS=1
609 else
610 webcore_cppflags += -DENABLE_WEB_SOCKETS=0
611 endif  # END ENABLE_WEB_SOCKETS
612
613 # ---
614 # Blob support
615 # ---
616 if ENABLE_BLOB
617 FEATURE_DEFINES += ENABLE_BLOB=1
618 webcore_cppflags += -DENABLE_BLOB=1
619 endif  # END ENABLE_BLOB
620
621 # ---
622 # Legacy WebKitBlobBuilder support
623 # ---
624 if ENABLE_LEGACY_WEBKIT_BLOB_BUILDER
625 FEATURE_DEFINES += ENABLE_LEGACY_WEBKIT_BLOB_BUILDER=1
626 webcore_cppflags += -DENABLE_LEGACY_WEBKIT_BLOB_BUILDER=1
627 endif  # END ENABLE_LEGACY_WEBKIT_BLOB_BUILDER
628
629 # ---
630 # Animation API support
631 # ---
632 if ENABLE_ANIMATION_API
633 FEATURE_DEFINES += ENABLE_ANIMATION_API=1
634 webcore_cppflags += -DENABLE_ANIMATION_API=1
635 endif  # END ENABLE_ANIMATION_API
636
637 # ---
638 # RequestAnimationFrame support
639 # ---
640 if ENABLE_REQUEST_ANIMATION_FRAME
641 FEATURE_DEFINES += ENABLE_REQUEST_ANIMATION_FRAME=1
642 webcore_cppflags += -DENABLE_REQUEST_ANIMATION_FRAME=1
643 endif  # END ENABLE_REQUEST_ANIMATION_FRAME
644
645 # ---
646 # 3D canvas (WebGL) support
647 # ---
648 if ENABLE_WEBGL
649 FEATURE_DEFINES += ENABLE_WEBGL=1
650 webcore_cppflags += -DENABLE_WEBGL=1
651 endif  # END ENABLE_WEBGL
652
653 # ---
654 # Accelerated compositing support
655 # ---
656 if USE_ACCELERATED_COMPOSITING
657 FEATURE_DEFINES += \
658         ENABLE_3D_RENDERING=1 \
659         ACCELERATED_COMPOSITING=1
660 endif  # END USE_ACCELERATED_COMPOSITING
661
662 if USE_TEXTURE_MAPPER_CAIRO
663 webcore_cppflags += \
664         -I$(srcdir)/Source/WebCore/platform/graphics/texmap
665 endif  # END USE_TEXTURE_MAPPER_CAIRO
666
667 if USE_TEXTURE_MAPPER_GL
668 webcore_cppflags += \
669         -I$(srcdir)/Source/WebCore/platform/graphics/texmap
670 endif  # END USETEXTURE_MAPPER_GL
671
672 if USE_CLUTTER
673 webcore_cppflags += \
674         -I$(srcdir)/Source/WebCore/platform/clutter \
675         -I$(srcdir)/Source/WebCore/platform/graphics/clutter
676 endif  # END USE_CLUTTER
677
678 # ---
679 # MHTML support
680 # ---
681 if ENABLE_MHTML
682 FEATURE_DEFINES += ENABLE_MHTML=1
683 webcore_cppflags += \
684         -DENABLE_MHTML=1 \
685         -I$(srcdir)/Source/WebCore/loader/archive/mhtml
686 endif  # END ENABLE_MHTML
687
688 # ---
689 # HTML5 Microdata support
690 # ---
691 if ENABLE_MICRODATA
692 FEATURE_DEFINES += ENABLE_MICRODATA=1
693 webcore_cppflags += -DENABLE_MICRODATA=1
694 endif  # END ENABLE_MICRODATA
695
696 # ---
697 # Register Protocol Handler support
698 # ---
699 if ENABLE_REGISTER_PROTOCOL_HANDLER
700 FEATURE_DEFINES += ENABLE_REGISTER_PROTOCOL_HANDLER=1
701 webcore_cppflags += -DENABLE_REGISTER_PROTOCOL_HANDLER=1
702 endif  # END ENABLE_REGISTER_PROTOCOL_HANDLER
703
704 # ---
705 # DeviceOrientation support
706 # ---
707 if ENABLE_DEVICE_ORIENTATION
708 FEATURE_DEFINES += ENABLE_DEVICE_ORIENTATION=1
709 webcore_cppflags += -DENABLE_DEVICE_ORIENTATION=1
710 endif  # END ENABLE_DEVICE_ORIENTATION
711
712 # ---
713 # Text Autosizing support
714 # ---
715 if ENABLE_TEXT_AUTOSIZING
716 FEATURE_DEFINES += ENABLE_TEXT_AUTOSIZING=1
717 webcore_cppflags += -DENABLE_TEXT_AUTOSIZING=1
718 endif  # END ENABLE_TEXT_AUTOSIZING
719
720 # ---
721 # Web Timing support
722 # ---
723 if ENABLE_WEB_TIMING
724 FEATURE_DEFINES += ENABLE_WEB_TIMING=1
725 webcore_cppflags += -DENABLE_WEB_TIMING=1
726 endif  # END ENABLE_WEB_TIMING
727
728 # ---
729 # HTML iframe seamless attribute support
730 # ---
731 if ENABLE_IFRAME_SEAMLESS
732 FEATURE_DEFINES += ENABLE_IFRAME_SEAMLESS=1
733 webcore_cppflags += -DENABLE_IFRAME_SEAMLESS=1
734 endif  # END ENABLE_IFRAME_SEAMLESS
735
736 # ---
737 # CSS3 Flexbox support
738 # ---
739 if ENABLE_CSS3_FLEXBOX
740 FEATURE_DEFINES += ENABLE_CSS3_FLEXBOX=1
741 webcore_cppflags += -DENABLE_CSS3_FLEXBOX=1
742 endif  # END ENABLE_CSS3_FLEXBOX
743
744 # ---
745 # Link prefetch support
746 # ---
747 if ENABLE_LINK_PREFETCH
748 FEATURE_DEFINES += ENABLE_LINK_PREFETCH=1
749 webcore_cppflags += -DENABLE_LINK_PREFETCH=1
750 endif  # END ENABLE_LINK_PREFETCH
751
752 # ---
753 # Spell check support
754 # ---
755 if ENABLE_SPELLCHECK
756 FEATURE_DEFINES += ENABLE_SPELLCHECK=1
757 webcore_cppflags += -DENABLE_SPELLCHECK=1
758 endif  # END ENABLE_SPELLCHECK
759
760 DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
761 DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
762         $(AM_V_GEN)
763         $(AM_V_at)cat $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
764         $(AM_V_at)$(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
765         $(AM_V_at)mv CSSPropertyNames* $(GENSOURCES_WEBCORE)
766
767 # Lower case all the values, as CSS values are case-insensitive
768 DerivedSources/WebCore/CSSValueKeywords.cpp: DerivedSources/WebCore/CSSValueKeywords.h
769 DerivedSources/WebCore/CSSValueKeywords.h: $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/makevalues.pl
770         $(AM_V_GEN)
771         $(AM_V_at)cat $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
772         $(AM_V_at)$(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
773         $(AM_V_at)mv CSSValueKeywords* $(GENSOURCES_WEBCORE)
774
775 # XML Viewer CSS
776 DerivedSources/WebCore/XMLViewerCSS.h: $(WebCore)/xml/XMLViewer.css
777         $(AM_V_GEN)$(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_css $(WebCore)/xml/XMLViewer.css $(GENSOURCES_WEBCORE)/XMLViewerCSS.h
778
779 # XML Viewer JS
780 DerivedSources/WebCore/XMLViewerJS.h: $(WebCore)/xml/XMLViewer.js
781         $(AM_V_GEN)$(PERL) $(WebCore)/inspector/xxd.pl XMLViewer_js $(WebCore)/xml/XMLViewer.js $(GENSOURCES_WEBCORE)/XMLViewerJS.h
782
783 # HTML entity names
784 DerivedSources/WebCore/HTMLEntityTable.cpp: $(WebCore)/html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
785         $(AM_V_GEN)$(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o $(GENSOURCES_WEBCORE)/HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
786
787 # color names
788 DerivedSources/WebCore/ColorData.cpp: $(WebCore)/platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
789         $(AM_V_GEN)$(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_WEBCORE) $(WebCore)/platform/ColorData.gperf
790
791 # CSS grammar
792
793 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
794 DerivedSources/WebCore/CSSGrammar.h: $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
795 DerivedSources/WebCore/CSSGrammar.cpp: $(WebCore)/css/CSSGrammar.y
796         $(AM_V_GEN)
797         $(AM_V_at)rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
798         $(AM_V_at)$(BISON) -d -p cssyy $< -o $(GENSOURCES_WEBCORE)/CSSGrammar.cpp
799         $(AM_V_at)touch $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
800         $(AM_V_at)echo '#ifndef CSSGrammar_h' > $(GENSOURCES_WEBCORE)/CSSGrammar.h
801         $(AM_V_at)echo '#define CSSGrammar_h' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
802         $(AM_V_at)cat $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
803         $(AM_V_at)echo '#endif' >> $(GENSOURCES_WEBCORE)/CSSGrammar.h
804         $(AM_V_at)rm -f $(GENSOURCES_WEBCORE)/CSSGrammar.cpp.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp
805
806 # user agent style sheets
807 USER_AGENT_STYLE_SHEETS = \
808         $(WebCore)/css/html.css \
809         $(WebCore)/css/mathml.css \
810         $(WebCore)/css/quirks.css \
811         $(WebCore)/css/view-source.css \
812         $(WebCore)/css/svg.css \
813         $(WebCore)/css/mediaControls.css \
814         $(WebCore)/css/mediaControlsGtk.css \
815         $(WebCore)/css/fullscreen.css
816
817 # new-style JavaScript bindings
818 SCRIPTS_FOR_GENERATE_BINDINGS = \
819         $(WebCore)/bindings/scripts/CodeGenerator.pm \
820         $(WebCore)/bindings/scripts/IDLParser.pm \
821         $(WebCore)/bindings/scripts/IDLStructure.pm \
822         $(WebCore)/bindings/scripts/InFilesCompiler.pm \
823         $(WebCore)/bindings/scripts/InFilesParser.pm \
824         $(WebCore)/bindings/scripts/generate-bindings.pl \
825         $(WebCore)/bindings/scripts/preprocessor.pm
826
827 SCRIPTS_FOR_PREPROCESS_IDLS = \
828         $(WebCore)/bindings/scripts/IDLParser.pm \
829         $(WebCore)/bindings/scripts/preprocess-idls.pl
830
831 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp: DerivedSources/WebCore/UserAgentStyleSheets.h
832 DerivedSources/WebCore/UserAgentStyleSheets.h: $(WebCore)/css/make-css-file-arrays.pl $(WebCore)/bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS)
833         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $<  --defines "$(FEATURE_DEFINES)" $@ DerivedSources/WebCore/UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
834
835 DerivedSources/WebCore/WebKitFontFamilyNames.cpp: DerivedSources/WebCore/WebKitFontFamilyNames.h
836 DerivedSources/WebCore/WebKitFontFamilyNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/css/WebKitFontFamilyNames.in
837         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in --outputDir "$(GENSOURCES_WEBCORE)"
838
839
840 # HTML tag and attribute names
841 DerivedSources/WebCore/JSHTMLElementWrapperFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.cpp
842 DerivedSources/WebCore/HTMLElementFactory.cpp: DerivedSources/WebCore/HTMLElementFactory.h
843 DerivedSources/WebCore/HTMLElementFactory.h: DerivedSources/WebCore/HTMLNames.cpp
844 DerivedSources/WebCore/HTMLNames.cpp: DerivedSources/WebCore/HTMLNames.h
845 if HTML_FLAGS
846 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
847         $(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)"
848 else
849 DerivedSources/WebCore/HTMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/html/HTMLTagNames.in $(WebCore)/html/HTMLAttributeNames.in
850         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --outputDir "$(GENSOURCES_WEBCORE)"
851 endif # HTML_FLAGS
852
853
854 DerivedSources/WebCore/XMLNSNames.cpp DerivedSources/WebCore/XMLNSNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlnsattrs.in
855         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
856
857 DerivedSources/WebCore/XMLNames.cpp DerivedSources/WebCore/XMLNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/xml/xmlattrs.in
858         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in --outputDir "$(GENSOURCES_WEBCORE)"
859
860 DerivedSources/WebCore/EventFactory.cpp DerivedSources/WebCore/EventHeaders.h DerivedSources/WebCore/EventInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventNames.in
861         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventNames.in --outputDir "$(GENSOURCES_WEBCORE)"
862
863 DerivedSources/WebCore/EventTargetHeaders.h DerivedSources/WebCore/EventTargetInterfaces.h: $(WebCore)/dom/make_event_factory.pl $(WebCore)/dom/EventTargetFactory.in
864         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in --outputDir "$(GENSOURCES_WEBCORE)"
865
866 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
867         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in --outputDir "$(GENSOURCES_WEBCORE)"
868
869 # All Web Inspector generated files are created with this one call to CodeGeneratorInspector.py
870 DerivedSources/WebCore/InspectorProtocolVersion.h : $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/generate-inspector-protocol-version
871         $(AM_V_GEN)$(PYTHON) $(WebCore)/inspector/generate-inspector-protocol-version -o $(GENSOURCES_WEBCORE)/InspectorProtocolVersion.h $(WebCore)/inspector/Inspector.json
872
873 DerivedSources/WebCore/InspectorBackendDispatcher.cpp: $(WebCore)/inspector/Inspector.json $(WebCore)/inspector/CodeGeneratorInspector.py
874         $(AM_V_GEN)$(PYTHON) $(WebCore)/inspector/CodeGeneratorInspector.py $< --output_h_dir $(GENSOURCES_WEBCORE) --output_cpp_dir $(GENSOURCES_WEBCORE)
875 DerivedSources/WebCore/InspectorTypeBuilder.h: DerivedSources/WebCore/InspectorTypeBuilder.cpp
876 DerivedSources/WebCore/InspectorTypeBuilder.cpp: DerivedSources/WebCore/InspectorFrontend.h
877 DerivedSources/WebCore/InspectorFrontend.h: DerivedSources/WebCore/InspectorFrontend.cpp
878 DerivedSources/WebCore/InspectorFrontend.cpp: DerivedSources/WebCore/InspectorBackendCommands.js
879 DerivedSources/WebCore/InspectorBackendCommands.js: DerivedSources/WebCore/InspectorBackendDispatcher.h
880 DerivedSources/WebCore/InspectorBackendDispatcher.h: DerivedSources/WebCore/InspectorBackendDispatcher.cpp
881 DerivedSources/WebCore/InjectedScriptSource.h: $(WebCore)/inspector/InjectedScriptSource.js
882         $(AM_V_GEN)$(PERL) $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js $(GENSOURCES_WEBCORE)/InjectedScriptSource.h
883 DerivedSources/WebCore/InjectedScriptWebGLModuleSource.h: $(WebCore)/inspector/InjectedScriptWebGLModuleSource.js
884         $(AM_V_GEN)$(PERL) $(WebCore)/inspector/xxd.pl InjectedScriptWebGLModuleSource_js $(WebCore)/inspector/InjectedScriptWebGLModuleSource.js $(GENSOURCES_WEBCORE)/InjectedScriptWebGLModuleSource.h
885
886 if ENABLE_WEB_AUDIO
887 # Installing HRTF database wav files
888 audiodir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/resources/audio/
889 audio_DATA = $(WebCore)/platform/audio/resources/Composite.wav
890 dist_audio_DATA = $(audio_DATA)
891 endif  # END ENABLE_WEB_AUDIO
892
893 # ANGLE tokenizer & parser
894 DerivedSources/ANGLE/glslang.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.l
895         $(AM_V_GEN)$(FLEX) --noline --nounistd --outfile="$@" "$<"
896
897 DerivedSources/ANGLE/glslang_tab.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.y
898         $(AM_V_GEN)$(BISON) --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c --output="$@" $<
899 DerivedSources/ANGLE/glslang_tab.h: DerivedSources/ANGLE/glslang_tab.cpp
900
901 IDL_PATH := \
902     $(WebCore)/Modules/filesystem \
903     $(WebCore)/Modules/gamepad \
904     $(WebCore)/Modules/geolocation \
905     $(WebCore)/Modules/indexeddb \
906     $(WebCore)/Modules/mediasource \
907     $(WebCore)/Modules/mediastream \
908     $(WebCore)/Modules/notifications \
909     $(WebCore)/Modules/webaudio \
910     $(WebCore)/Modules/webdatabase \
911     $(WebCore)/Modules/websockets \
912     $(WebCore)/bindings/js \
913     $(WebCore)/css \
914     $(WebCore)/dom \
915     $(WebCore)/editing \
916     $(WebCore)/fileapi \
917     $(WebCore)/html \
918     $(WebCore)/html/canvas \
919     $(WebCore)/html/shadow \
920     $(WebCore)/html/track \
921     $(WebCore)/inspector \
922     $(WebCore)/loader/appcache \
923     $(WebCore)/page \
924     $(WebCore)/plugins \
925     $(WebCore)/storage \
926     $(WebCore)/svg \
927     $(WebCore)/testing \
928     $(WebCore)/workers \
929     $(WebCore)/xml
930
931 vpath %.idl $(IDL_PATH)
932
933 supplemental_dependency_file = $(top_builddir)/DerivedSources/WebCore/idl_supplemental_dependencies
934 idl_files_list = $(top_builddir)/DerivedSources/WebCore/idl_files_list
935 idl_attributes_file = $(WebCore)/bindings/scripts/IDLAttributes.txt
936
937 .SECONDARY:
938 $(supplemental_dependency_file): $(SCRIPTS_FOR_PREPROCESS_IDLS) $(dom_binding_idls) $(idl_attributes_file)
939         $(AM_V_GEN)
940         $(AM_V_at)echo -n > $(idl_files_list)
941         $(AM_V_at)($(foreach idl, $(dom_binding_idls), echo $(idl) &&) echo -n) >> $(idl_files_list)
942         $(AM_V_at)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/preprocess-idls.pl --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)" --idlFilesList $(idl_files_list) --supplementalDependencyFile $@ --idlAttributesFile $(idl_attributes_file)
943
944 # This does not appear to work correctly with gnumake unless
945 # it includes an empty command list (the semicolon).
946 DerivedSources/WebCore/JS%.cpp: DerivedSources/WebCore/JS%.h;
947
948 .SECONDARY:
949 DerivedSources/WebCore/JS%.h: %.idl $(SCRIPTS_FOR_GENERATE_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorJS.pm $(supplemental_dependency_file)
950         $(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 --supplementalDependencyFile $(supplemental_dependency_file) $<
951
952 # See https://bugs.webkit.org/show_bug.cgi?id=76388
953 # We need to introduce a manual dependency to prevent non-generated sources from
954 # trying to build before the generated ones. This can happen if the supplemental
955 # IDL generation takes a long time. The pipe represents an order-only dependency,
956 # which means that GNUmake will only try to build the dependencies first, but
957 # not rebuild all the targets if the dependencies change.
958 $(webkitgtk_sources) $(webkit2_sources) $(webkit2_plugin_process_sources) $(webcore_sources) $(webcoregtk_sources) : | $(supplemental_dependency_file) $(webcore_built_sources)
959
960 noinst_LTLIBRARIES += \
961         libWebCoreModules.la \
962         libWebCore.la
963
964 # Artificial dependency to try to force a relink of the WebCore libraries
965 # When their makefiles change.
966 webcore_lib_for_dep = libWebCore.la
967 $(webcore_lib_for_dep): $(srcdir)/Source/WebCore/GNUmakefile.am $(srcdir)/Source/WebCore/GNUmakefile.list.am
968
969 webcoremodules_lib_for_dep = libWebcoreModules.la
970 $(webcoremodules_lib_for_dep): $(srcdir)/Source/WebCore/GNUmakefile.am $(srcdir)/Source/WebCore/GNUmakefile.list.am
971
972 nodist_EXTRA_libWebCore_la_SOURCES = \
973         $(webcore_built_nosources)
974
975 nodist_libWebCore_la_SOURCES = \
976         $(webcore_built_sources)
977
978 libWebCore_la_SOURCES = \
979         $(webcore_sources)
980
981 libWebCore_la_CXXFLAGS = \
982         $(SYMBOL_VISIBILITY_INLINES) \
983         $(global_cxxflags)
984
985 libWebCore_la_CFLAGS = \
986         $(SYMBOL_VISIBILITY) \
987         $(global_cflags)
988
989 libWebCore_la_CPPFLAGS = \
990         -DBUILDING_WEBKIT \
991         $(global_cppflags) \
992         $(webcore_cppflags) \
993         $(webcoregtk_cppflags) \
994         $(javascriptcore_cppflags) \
995         -fno-strict-aliasing \
996         $(CAIRO_CFLAGS) \
997         $(CLUTTER_CFLAGS) \
998         $(COVERAGE_CFLAGS) \
999         $(ENCHANT_CFLAGS) \
1000         $(GAMEPAD_CFLAGS) \
1001         $(GEOCLUE_CFLAGS) \
1002         $(GLIB_CFLAGS) \
1003         $(GSTREAMER_CFLAGS) \
1004         $(LIBSOUP_CFLAGS) \
1005         $(LIBXML_CFLAGS) \
1006         $(LIBXSLT_CFLAGS) \
1007         $(PANGO_CFLAGS) \
1008         $(SQLITE3_CFLAGS) \
1009         $(UNICODE_CFLAGS) \
1010         $(XRENDER_CFLAGS) \
1011         $(XT_CFLAGS)
1012
1013 if TARGET_WIN32
1014 # PluginPackageWin.cpp needs the symbols from version dll
1015 libWebCore_la_LIBADD = -lversion
1016 endif
1017
1018 libWebCoreModules_la_SOURCES = \
1019         $(webcore_modules_sources)
1020
1021 libWebCoreModules_la_CXXFLAGS = $(libWebCore_la_CXXFLAGS)
1022
1023 libWebCoreModules_la_CFLAGS = $(libWebCore_la_CFLAGS)
1024
1025 libWebCoreModules_la_CPPFLAGS = $(libWebCore_la_CPPFLAGS)
1026
1027 # We have a different library with only the files that require GTK+. It allows us
1028 # to build a common WebCore lib and two different gtk WebCore libs depending on
1029 # the gtk version. In WeKit2 gtk2 is not supported, but the plugin process needs to
1030 # be built using gtk2 because plugins like flash still use gtk2. For WebKit2, we build
1031 # the common libWebCore and two libWebCoreGtk, one using gtk3 and the other one using gtk2.
1032 noinst_LTLIBRARIES += \
1033         libWebCoreGtk.la
1034
1035 libWebCoreGtk_la_SOURCES = \
1036         $(webcoregtk_sources)
1037
1038 libWebCoreGtk_la_CXXFLAGS = \
1039         $(SYMBOL_VISIBILITY_INLINES) \
1040         $(global_cxxflags)
1041
1042 libWebCoreGtk_la_CFLAGS = \
1043         $(SYMBOL_VISIBILITY) \
1044         $(global_cflags)
1045
1046 libWebCoreGtk_la_CPPFLAGS = \
1047         -DBUILDING_WEBKIT \
1048         $(global_cppflags) \
1049         $(webcore_cppflags) \
1050         $(webcoregtk_cppflags) \
1051         $(javascriptcore_cppflags) \
1052         -fno-strict-aliasing \
1053         $(HILDON_CPPFLAGS) \
1054         $(COVERAGE_CFLAGS) \
1055         $(ENCHANT_CFLAGS) \
1056         $(GAIL_CFLAGS) \
1057         $(GEOCLUE_CFLAGS) \
1058         $(GLIB_CFLAGS) \
1059         $(GSTREAMER_CFLAGS) \
1060         $(GTK_CFLAGS) \
1061         $(HILDON_CFLAGS) \
1062         $(LIBSOUP_CFLAGS) \
1063         $(LIBXML_CFLAGS) \
1064         $(LIBXSLT_CFLAGS) \
1065         $(SQLITE3_CFLAGS) \
1066         $(UNICODE_CFLAGS) \
1067         $(XRENDER_CFLAGS) \
1068         $(XT_CFLAGS)
1069
1070 EXTRA_DIST += \
1071         $(shell ls $(srcdir)/Source/WebCore/Modules/filesystem/*.idl) \
1072         $(shell ls $(srcdir)/Source/WebCore/Modules/gamepad/*.idl) \
1073         $(shell ls $(srcdir)/Source/WebCore/Modules/geolocation/*.idl) \
1074         $(shell ls $(srcdir)/Source/WebCore/Modules/indexeddb/*.idl) \
1075         $(shell ls $(srcdir)/Source/WebCore/Modules/mediasource/*.idl) \
1076         $(shell ls $(srcdir)/Source/WebCore/Modules/mediastream/*.idl) \
1077         $(shell ls $(srcdir)/Source/WebCore/Modules/notifications/*.idl) \
1078         $(shell ls $(srcdir)/Source/WebCore/Modules/protocolhandler/*.idl) \
1079         $(shell ls $(srcdir)/Source/WebCore/Modules/webaudio/*.idl) \
1080         $(shell ls $(srcdir)/Source/WebCore/Modules/webdatabase/*.idl) \
1081         $(shell ls $(srcdir)/Source/WebCore/Modules/websockets/*.idl) \
1082         $(shell ls $(srcdir)/Source/WebCore/css/*.idl) \
1083         $(shell ls $(srcdir)/Source/WebCore/dom/*.idl) \
1084         $(shell ls $(srcdir)/Source/WebCore/editing/*.idl) \
1085         $(shell ls $(srcdir)/Source/WebCore/fileapi/*.idl) \
1086         $(shell ls $(srcdir)/Source/WebCore/html/canvas/*.idl) \
1087         $(shell ls $(srcdir)/Source/WebCore/html/shadow/*.idl) \
1088         $(shell ls $(srcdir)/Source/WebCore/html/track/*.idl) \
1089         $(shell ls $(srcdir)/Source/WebCore/html/*.idl) \
1090         $(shell ls $(srcdir)/Source/WebCore/inspector/*.idl) \
1091         $(shell ls $(srcdir)/Source/WebCore/loader/appcache/*.idl) \
1092         $(shell ls $(srcdir)/Source/WebCore/page/*.idl) \
1093         $(shell ls $(srcdir)/Source/WebCore/plugins/*.idl) \
1094         $(shell ls $(srcdir)/Source/WebCore/storage/*.idl) \
1095         $(shell ls $(srcdir)/Source/WebCore/svg/*.idl) \
1096         $(shell ls $(srcdir)/Source/WebCore/testing/*.idl) \
1097         $(shell ls $(srcdir)/Source/WebCore/workers/*.idl) \
1098         $(shell ls $(srcdir)/Source/WebCore/xml/*.idl) \
1099         Source/ThirdParty/ANGLE/src/compiler/glslang.l \
1100         Source/ThirdParty/ANGLE/src/compiler/glslang.y \
1101         Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm \
1102         Source/WebCore/bindings/scripts/CodeGeneratorJS.pm \
1103         Source/WebCore/bindings/scripts/CodeGenerator.pm \
1104         Source/WebCore/bindings/scripts/IDLAttributes.txt \
1105         Source/WebCore/bindings/scripts/IDLParser.pm \
1106         Source/WebCore/bindings/scripts/IDLStructure.pm \
1107         Source/WebCore/bindings/scripts/InFilesCompiler.pm \
1108         Source/WebCore/bindings/scripts/InFilesParser.pm \
1109         Source/WebCore/bindings/scripts/generate-bindings.pl \
1110         Source/WebCore/bindings/scripts/gobject-generate-headers.pl \
1111         Source/WebCore/bindings/scripts/preprocessor.pm \
1112         Source/WebCore/bindings/scripts/preprocess-idls.pl \
1113         Source/WebCore/ChangeLog \
1114         Source/WebCore/css/CSSGrammar.y \
1115         Source/WebCore/css/CSSPropertyNames.in \
1116         Source/WebCore/css/CSSValueKeywords.in \
1117         Source/WebCore/dom/DOMExceptions.in \
1118         Source/WebCore/css/fullscreen.css \
1119         Source/WebCore/css/fullscreenQuickTime.css \
1120         Source/WebCore/css/html.css \
1121         Source/WebCore/css/make-css-file-arrays.pl \
1122         Source/WebCore/css/makegrammar.pl \
1123         Source/WebCore/css/makeprop.pl \
1124         Source/WebCore/css/maketokenizer \
1125         Source/WebCore/css/makevalues.pl \
1126         Source/WebCore/css/mathml.css \
1127         Source/WebCore/css/mediaControls.css \
1128         Source/WebCore/css/mediaControlsGtk.css \
1129         Source/WebCore/css/quirks.css \
1130         Source/WebCore/css/svg.css \
1131         Source/WebCore/css/SVGCSSPropertyNames.in \
1132         Source/WebCore/css/SVGCSSValueKeywords.in \
1133         Source/WebCore/css/view-source.css \
1134         Source/WebCore/css/WebKitFontFamilyNames.in \
1135         Source/WebCore/dom/EventNames.in \
1136         Source/WebCore/dom/EventTargetFactory.in \
1137         Source/WebCore/dom/make_dom_exceptions.pl \
1138         Source/WebCore/dom/make_event_factory.pl \
1139         Source/WebCore/dom/make_names.pl \
1140         Source/WebCore/html/HTMLAttributeNames.in \
1141         Source/WebCore/html/HTMLTagNames.in \
1142         Source/WebCore/html/parser/create-html-entity-table \
1143         Source/WebCore/html/parser/HTMLEntityNames.in \
1144         Source/WebCore/icu/LICENSE \
1145         Source/WebCore/inspector/CodeGeneratorInspector.py \
1146         Source/WebCore/inspector/InjectedScriptSource.js \
1147         Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js \
1148         Source/WebCore/inspector/Inspector.json \
1149         Source/WebCore/inspector/Inspector-1.0.json \
1150         Source/WebCore/inspector/generate-inspector-protocol-version \
1151         Source/WebCore/inspector/xxd.pl \
1152         Source/WebCore/LICENSE-APPLE \
1153         Source/WebCore/LICENSE-LGPL-2 \
1154         Source/WebCore/LICENSE-LGPL-2.1 \
1155         Source/WebCore/make-hash-tools.pl \
1156         Source/WebCore/mathml/mathattrs.in \
1157         Source/WebCore/mathml/mathtags.in \
1158         Source/WebCore/platform/ColorData.gperf \
1159         Source/WebCore/platform/text/mac/make-charset-table.pl \
1160         Source/WebCore/svg/svgattrs.in \
1161         Source/WebCore/svg/svgtags.in \
1162         Source/WebCore/svg/xlinkattrs.in \
1163         Source/WebCore/xml/xmlattrs.in \
1164         Source/WebCore/xml/xmlnsattrs.in \
1165         Source/WebCore/xml/XMLViewer.css \
1166         Source/WebCore/xml/XMLViewer.js \
1167         Source/WebCore/xml/XPathGrammar.y
1168
1169 # Installing web inspector files
1170 webinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector
1171 dist_webinspector_DATA = \
1172         $(WebCore)/English.lproj/localizedStrings.js \
1173         DerivedSources/WebCore/InspectorBackendCommands.js \
1174         $(shell ls $(WebCore)/inspector/front-end/*.js) \
1175         $(shell ls $(WebCore)/inspector/front-end/*.html) \
1176         $(shell ls $(WebCore)/inspector/front-end/*.css)
1177
1178 webinspectoruglifyjsdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/UglifyJS
1179 dist_webinspectoruglifyjs_DATA = \
1180         $(shell ls $(WebCore)/inspector/front-end/UglifyJS/*.js)
1181
1182 webinspectorimagesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector/Images
1183 dist_webinspectorimages_DATA = \
1184         $(shell ls $(WebCore)/inspector/front-end/Images/*.gif) \
1185         $(shell ls $(WebCore)/inspector/front-end/Images/*.png)
1186
1187 # It seems that $(shell) does not expand when it is a rule dependency, so
1188 # we must redefine this list of copied files with traditional dependency wildcards.
1189 noinst_DATA = ${GENSOURCES_INSPECTOR}/inspector.html
1190 ${GENSOURCES_INSPECTOR}/inspector.html: $(WebCore)/inspector/front-end/*.html \
1191                 $(WebCore)/inspector/front-end/*.js \
1192                 $(WebCore)/inspector/front-end/UglifyJS/*.js \
1193                 $(WebCore)/inspector/front-end/*.css \
1194                 $(WebCore)/inspector/front-end/Images/* \
1195                 DerivedSources/WebCore/InspectorBackendCommands.js \
1196                 $(WebCore)/English.lproj/localizedStrings.js
1197         $(AM_V_GEN)
1198         $(AM_V_at)mkdir -p ${GENSOURCES_INSPECTOR}/UglifyJS
1199         $(AM_V_at)mkdir -p ${GENSOURCES_INSPECTOR}/Images
1200         $(AM_V_at)cp ${dist_webinspector_DATA} ${GENSOURCES_INSPECTOR}
1201         $(AM_V_at)cp ${dist_webinspectoruglifyjs_DATA} ${GENSOURCES_INSPECTOR}/UglifyJS
1202         $(AM_V_at)cp ${dist_webinspectorimages_DATA} ${GENSOURCES_INSPECTOR}/Images
1203
1204 webresourcesdir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/images
1205 dist_webresources_DATA = \
1206         $(WebCore)/Resources/textAreaResizeCorner.png \
1207         $(WebCore)/Resources/nullPlugin.png \
1208         $(WebCore)/Resources/urlIcon.png \
1209         $(WebCore)/Resources/missingImage.png \
1210         $(WebCore)/Resources/panIcon.png \
1211         $(WebCore)/Resources/deleteButton.png \
1212         $(WebCore)/Resources/inputSpeech.png