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