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