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