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