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