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