1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
# Top-level Makefile rule for automake
#
# Variable conventions:
#
# _h_api = API headers that will be installed and included in the distribution
# _cppflags = flags that will be passed to the C/CXX Preprocessor
# _sources = sources that will be compiled and included in the distribution
# _headers = header files that will be part of the distribution
# _built_sources = files that will be autogenerated by the build system and
# will be part of the _SOURCES primary
# _built_nosources = files that are autogenerated but are not part of the
# _SOURCES primary
# _cleanfiles = files that will be removed by the clean target
#
# Sources, headers, flags, etc... should be added to the respective variables
# with the above suffix, e.g, webcore-specific sources should go to
# webcore_sources, gtk port-specific flags should go to webkitgtk_cppflags,
# etc... The only exceptions are the global variables. See Global Variables below.
#
# Global Variables
#
# global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any
# specific port
# global_cflags = CFLAGS and CXXFLAGS that apply to JSC, WebCore, and to
# any specific port
srcdir = @srcdir@
VPATH = @srcdir@
# Directory for autogenerated sources
GENSOURCES := $(top_builddir)/DerivedSources
# Script for creating hash tables
CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/kjs/create_hash_table
# Libraries and support components
noinst_LTLIBRARIES :=
noinst_HEADERS :=
noinst_PROGRAMS :=
lib_LIBRARIES :=
IDL_BINDINGS :=
# Files that will be distributed
EXTRA_DIST :=
#
# Global flags to CPP
global_cppflags :=
global_cppflags += \
-I $(srcdir)/JavaScriptCore \
-I $(srcdir)/JavaScriptCore/ForwardingHeaders \
-I $(srcdir)/JavaScriptCore/wtf \
-I $(srcdir)/JavaScriptCore/kjs \
-I $(top_builddir)/DerivedSources
# Default compiler flags
global_cflags := \
-Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
-Wformat -Wformat-security -Wno-format-y2k -Wundef \
-Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
-Wno-unused-parameter -fno-exceptions -fno-strict-aliasing
# Libraries
lib_LTLIBRARIES = libJavaScriptCore.la libWebKitGtk.la
#
# JavaScriptCore
javascriptcore_h_api :=
javascriptcore_cppflags:=
javascriptcore_sources :=
javascriptcore_built_sources :=
javascriptcore_built_nosources :=
# The variables above are already included below so no need to touch
# these variables unless you really have to
libJavaScriptCore_ladir = $(prefix)/include/WebKit/JavaScriptCore
libJavaScriptCore_la_HEADERS := $(javascriptcore_h_api)
libJavaScriptCore_la_SOURCES := \
$(javascriptcore_built_sources) \
$(javascriptcore_sources)
libJavaScriptCore_la_LDFLAGS := -lpthread
libJavaScriptCore_la_CXXFLAGS := $(global_cflags)
libJavaScriptCore_la_CFLAGS := $(global_cflags)
libJavaScriptCore_la_CPPFLAGS := $(global_cppflags) $(javascriptcore_cppflags)
#
# WebCore
webcore_cppflags :=
webcore_sources :=
webcore_headers :=
webcore_built_sources :=
webcore_built_nosources :=
# WebKitGtk
webkitgtk_h_api :=
webkitgtk_headers :=
webkitgtk_sources :=
webkitgtk_cppflags :=
webkitgtk_ldflags :=
webkitgtk_built_sources :=
webkitgtk_built_nosources :=
webkitgtk_cleanfiles :=
# No need to touch the following variables unless you have to. If you need to change the values
# for the following variables, use the "webkitgtk_" variables above
libWebKitGtk_ladir := $(prefix)/include/WebKit
libWebKitGtk_la_HEADERS := $(webkitgtk_h_api)
libWebKitGtk_la_SOURCES := \
$(webcore_built_sources) \
$(webcore_headers) \
$(webcore_sources) \
$(webkitgtk_built_sources) \
$(webkitgtk_headers) \
$(webkitgtk_sources)
libWebKitGtk_la_CXXFLAGS := \
-fno-rtti \
$(global_cflags) \
$(DEPENDENCIES_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \
$(COVERAGE_CFLAGS)
libWebKitGtk_la_CFLAGS := \
$(global_cflags) \
$(DEPENDENCIES_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \
$(COVERAGE_CFLAGS)
libWebKitGtk_la_CPPFLAGS := \
$(global_cppflags) \
$(webcore_cppflags) \
$(webkitgtk_cppflags)
libWebKitGtk_la_LIBADD := @LTLIBOBJS@ libJavaScriptCore.la
libWebKitGtk_la_LDFLAGS := \
$(webkitgtk_ldflags) \
$(DEPENDENCIES_LIBS) \
$(ICU_LIBS) \
$(SQLITE3_LIBS) \
$(GSTREAMER_LIBS) \
$(LIBXSLT_LIBS) \
$(COVERAGE_LDFLAGS) \
-lpthread \
-ljpeg \
-version-info @LIBWEBKITGTK_VERSION@
#
# Extra checks and flags
global_cppflags += \
-DBUILDING_GTK__=1 \
-DUSE_SYSTEM_MALLOC \
-DWTF_CHANGES
if TARGET_X11
global_cppflags += -DXP_UNIX
endif
if !ENABLE_DEBUG
global_cppflags += -DNDEBUG
else
webkitgtk_cppflags += \
-DG_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DPANGO_DISABLE_DEPRECATED \
-DGDK_MULTIHEAD_SAFE \
-DGTK_MULTIHEAD_SAFE
endif
if !ENABLE_DATABASE
global_cppflags += -DENABLE_DATABASE=0
endif
if !ENABLE_ICONDATABASE
global_cppflags += -DENABLE_ICONDATABASE=0
endif
if ENABLE_COVERAGE
global_cppflags += \
-DGCC_GENERATE_TEST_COVERAGE_FILES \
-DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
endif
if ENABLE_VIDEO
webkitgtk_ldflags += -lgstinterfaces-0.10 -lgstvideo-0.10
endif
#
# WEBKIT GTK+
webkitgtk_cppflags += \
-I $(top_builddir)/WebKit/gtk/WebView \
-DBUILDING_CAIRO__=1 \
-DBUILD_WEBKIT
webkitgtk_h_api += \
WebKit/gtk/WebView/webkit.h \
WebKit/gtk/WebView/webkitdefines.h \
WebKit/gtk/WebView/webkitnetworkrequest.h \
WebKit/gtk/WebView/webkitwebframe.h \
WebKit/gtk/WebView/webkitwebview.h
webkitgtk_built_sources += \
WebKit/gtk/WebView/webkit-marshal.h \
WebKit/gtk/WebView/webkit-marshal.cpp
webkitgtk_headers += \
WebKit/gtk/WebView/webkitprivate.h \
WebKit/gtk/WebView/webkitsettings.h \
WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
WebKit/gtk/WebCoreSupport/DragClientGtk.h \
WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h
webkitgtk_sources += \
WebKit/gtk/WebView/webkitnetworkrequest.cpp \
WebKit/gtk/WebView/webkitprivate.cpp \
WebKit/gtk/WebView/webkitsettings.cpp \
WebKit/gtk/WebView/webkitwebframe.cpp \
WebKit/gtk/WebView/webkitwebview.cpp \
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp
webkitgtk_cleanfiles += \
$(top_builddir)/Programs/GtkLauncher \
$(top_builddir)/WebKit/gtk/WebKitGtk.pc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = WebKit/gtk/WebKitGtk.pc
WEBKIT_MARSHAL = $(CURDIR)/WebKit/gtk/WebView/webkit-marshal
WEBKIT_MARSHAL_LIST = $(srcdir)/WebKit/gtk/WebView/webkit-marshal.list
stamp_files := \
stamp-webkit-marshal.cpp \
stamp-webkit-marshal.h
WebKit/gtk/WebView/webkit-marshal.cpp: stamp-webkit-marshal.cpp
@true
WebKit/gtk/WebView/webkit-marshal.h: stamp-webkit-marshal.h
@true
stamp-webkit-marshal.cpp: $(WEBKIT_MARSHAL_LIST)
echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
echo timestamp > $(@F)
stamp-webkit-marshal.h: $(WEBKIT_MARSHAL_LIST)
$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
echo timestamp > $(@F)
# END WEBKIT GTK+
# Files that will be cleaned
MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES)
DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES)
CLEANFILES := $(stamp_files) $(BUILT_SOURCES)
# Include module makefiles
include JavaScriptCore/GNUmakefile.am
include WebCore/GNUmakefile.am
include WebKitTools/GNUmakefile.am
# Autogenerated sources
BUILT_SOURCES := \
$(javascriptcore_built_sources) \
$(javascriptcore_built_nosources) \
$(webcore_built_sources) \
$(webcore_built_nosources) \
$(webkitgtk_built_sources) \
$(webkitgtk_built_nosources)
# Project-wide clean rules
CLEANFILES += \
$(webkitgtk_cleanfiles) \
$(top_builddir)/Programs/DumpRenderTree \
$(top_builddir)/Programs/testkjs \
$(top_builddir)/Programs/dftables \
$(GENSOURCES)
MAINTAINERCLEANFILES += \
$(srcdir)/aconfig.h.in \
configure \
config.* \
GNUmakefile.in \
INSTALL \
README
|