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