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