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