summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/webkit/files/GNUmakefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/webkit/files/GNUmakefile.am')
-rw-r--r--meta/recipes-sato/webkit/files/GNUmakefile.am107
1 files changed, 52 insertions, 55 deletions
diff --git a/meta/recipes-sato/webkit/files/GNUmakefile.am b/meta/recipes-sato/webkit/files/GNUmakefile.am
index 8884fcb6f9..fb10790b1e 100644
--- a/meta/recipes-sato/webkit/files/GNUmakefile.am
+++ b/meta/recipes-sato/webkit/files/GNUmakefile.am
@@ -34,10 +34,12 @@ GENSOURCES := $(top_builddir)/DerivedSources
34GENSOURCES_JAVASCRIPTCORE := $(top_builddir)/DerivedSources/JavaScriptCore 34GENSOURCES_JAVASCRIPTCORE := $(top_builddir)/DerivedSources/JavaScriptCore
35GENSOURCES_WEBCORE := $(top_builddir)/DerivedSources/WebCore 35GENSOURCES_WEBCORE := $(top_builddir)/DerivedSources/WebCore
36GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit 36GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit
37GENSOURCES_WEBKIT2 := $(top_builddir)/DerivedSources/WebKit2
37GENPROGRAMS := $(top_builddir)/Programs 38GENPROGRAMS := $(top_builddir)/Programs
38GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector 39GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector
39WebCore := $(srcdir)/WebCore 40WebCore := $(srcdir)/Source/WebCore
40WebKit := $(srcdir)/WebKit/gtk 41WebKit := $(srcdir)/Source/WebKit/gtk
42WebKit2 := $(srcdir)/Source/WebKit2
41 43
42# Libraries and support components 44# Libraries and support components
43bin_PROGRAMS := 45bin_PROGRAMS :=
@@ -51,6 +53,7 @@ POFILES :=
51MOFILES := 53MOFILES :=
52javascriptcore_h_api := 54javascriptcore_h_api :=
53javascriptcore_cppflags:= 55javascriptcore_cppflags:=
56javascriptcore_cflags :=
54javascriptcore_sources := 57javascriptcore_sources :=
55javascriptcore_built_sources := 58javascriptcore_built_sources :=
56javascriptcore_built_nosources := 59javascriptcore_built_nosources :=
@@ -69,6 +72,8 @@ webkitgtk_cppflags :=
69webkitgtk_gdom_built_sources := 72webkitgtk_gdom_built_sources :=
70webkitgtk_built_sources := 73webkitgtk_built_sources :=
71webkitgtk_built_nosources := 74webkitgtk_built_nosources :=
75webkit2_built_sources :=
76libwebcoreinternals_built_sources :=
72global_cppflags := 77global_cppflags :=
73global_cflags := 78global_cflags :=
74global_cxxflags := 79global_cxxflags :=
@@ -83,6 +88,21 @@ CLEANFILES :=
83DISTCLEANFILES := 88DISTCLEANFILES :=
84MAINTAINERCLEANFILES := 89MAINTAINERCLEANFILES :=
85 90
91# We do not care at all about this implicit built-in make rules,
92# disable them to save some build time
93%: %.c
94%: %.cpp
95%: %.o
96(%): %
97%.out: %
98%.c: %.w %.ch
99%.tex: %.w %.ch
100%:: %,v
101%:: RCS/%,v
102%:: RCS/%
103%:: s.%
104%:: SCCS/s.%
105
86global_cppflags += \ 106global_cppflags += \
87 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \ 107 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
88 -Wformat -Wformat-security -Wno-format-y2k -Wundef \ 108 -Wformat -Wformat-security -Wno-format-y2k -Wundef \
@@ -92,7 +112,6 @@ global_cppflags += \
92 112
93 113
94global_cxxflags += \ 114global_cxxflags += \
95 $(SYMBOL_VISIBILITY_INLINES) \
96 -fno-rtti 115 -fno-rtti
97 116
98# -no-undefined required for building DLLs on Windows 117# -no-undefined required for building DLLs on Windows
@@ -103,51 +122,21 @@ version_script = -export-symbols-regex "^(webkit_|k?JS).*"
103endif 122endif
104 123
105if OS_GNU 124if OS_GNU
106version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter 125version_script = -Wl,--version-script,$(srcdir)/Source/autotools/symbols.filter
107endif 126endif
108 127
109# Convenience libraries
110noinst_LTLIBRARIES += \
111 libJavaScriptCore.la
112
113nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
114 $(javascriptcore_built_nosources)
115
116nodist_libJavaScriptCore_la_SOURCES = \
117 $(javascriptcore_built_sources)
118
119libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
120libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
121
122libJavaScriptCore_la_SOURCES = \
123 $(javascriptcore_sources)
124
125libJavaScriptCore_la_LIBADD = \
126 $(UNICODE_LIBS) \
127 $(GLIB_LIBS) \
128 -lpthread
129
130libJavaScriptCore_la_CXXFLAGS = \
131 $(global_cxxflags) \
132 $(libJavaScriptCore_la_CFLAGS)
133
134libJavaScriptCore_la_CFLAGS = \
135 -fstrict-aliasing \
136 -O3 \
137 $(global_cflags) \
138 $(GLIB_CFLAGS) \
139 $(UNICODE_CFLAGS)
140
141libJavaScriptCore_la_CPPFLAGS = \
142 $(global_cppflags) \
143 $(javascriptcore_cppflags)
144
145# Extra checks and flags 128# Extra checks and flags
146global_cppflags += \ 129global_cppflags += \
147 -DBUILDING_CAIRO__=1 \ 130 -DBUILDING_CAIRO__=1 \
148 -DBUILDING_GTK__=1 \ 131 -DBUILDING_GTK__=1 \
149 -DWTF_CHANGES 132 -DWTF_CHANGES
150 133
134# For the Gtk port we want to use XP_UNIX both in X11 and Mac
135if !TARGET_WIN32
136global_cppflags += \
137 -DXP_UNIX
138endif
139
151if USE_ICU_UNICODE 140if USE_ICU_UNICODE
152global_cppflags += \ 141global_cppflags += \
153 -DWTF_USE_ICU_UNICODE=1 142 -DWTF_USE_ICU_UNICODE=1
@@ -178,7 +167,6 @@ endif
178 167
179if !ENABLE_DEBUG 168if !ENABLE_DEBUG
180global_cppflags += -DNDEBUG 169global_cppflags += -DNDEBUG
181global_cflags += $(SYMBOL_VISIBILITY)
182else 170else
183global_cppflags += \ 171global_cppflags += \
184 -DG_DISABLE_DEPRECATED \ 172 -DG_DISABLE_DEPRECATED \
@@ -198,17 +186,26 @@ global_cppflags += \
198endif 186endif
199 187
200EXTRA_DIST += \ 188EXTRA_DIST += \
201 $(srcdir)/autotools/symbols.filter \ 189 $(srcdir)/Source/autotools/symbols.filter \
202 $(srcdir)/gtk-doc.make \ 190 $(srcdir)/gtk-doc.make \
203 $(srcdir)/WebKit/LICENSE 191 $(srcdir)/Source/WebKit/LICENSE
204 192
205# Include module makefiles 193# Include module makefiles
206include JavaScriptCore/GNUmakefile.am 194include Source/JavaScriptCore/GNUmakefile.am
207include WebCore/GNUmakefile.am 195include Source/WebCore/GNUmakefile.am
208include WebKit/gtk/GNUmakefile.am 196include Source/WebKit/gtk/GNUmakefile.am
209include WebCore/bindings/gobject/GNUmakefile.am 197include Source/WebCore/bindings/gobject/GNUmakefile.am
210include WebKitTools/GNUmakefile.am 198include Tools/GNUmakefile.am
211include WebKit/gtk/po/GNUmakefile.am 199include Source/WebKit/gtk/po/GNUmakefile.am
200include Tools/DumpRenderTree/gtk/GNUmakefile.ImageDiff.am
201
202if ENABLE_WEBKIT2
203include Source/WebKit2/GNUmakefile.am
204include Tools/MiniBrowser/gtk/GNUmakefile.am
205include Tools/WebKitTestRunner/GNUmakefile.am
206# [GTK] Refactor the translations now that we have webkit2
207# https://bugs.webkit.org/show_bug.cgi?id=55153
208endif
212 209
213# Autogenerated sources 210# Autogenerated sources
214BUILT_SOURCES += \ 211BUILT_SOURCES += \
@@ -229,11 +226,11 @@ MAINTAINERCLEANFILES += \
229 $(builddir)/doltcompile \ 226 $(builddir)/doltcompile \
230 $(builddir)/doltlibtool \ 227 $(builddir)/doltlibtool \
231 $(srcdir)/aconfig.h.in \ 228 $(srcdir)/aconfig.h.in \
232 $(srcdir)/autotools/config.* \ 229 $(srcdir)/Source/autotools/config.* \
233 $(srcdir)/autotools/compile \ 230 $(srcdir)/Source/autotools/compile \
234 $(srcdir)/autotools/depcomp \ 231 $(srcdir)/Source/autotools/depcomp \
235 $(srcdir)/autotools/install-sh \ 232 $(srcdir)/Source/autotools/install-sh \
236 $(srcdir)/autotools/missing \ 233 $(srcdir)/Source/autotools/missing \
237 $(srcdir)/configure \ 234 $(srcdir)/configure \
238 $(srcdir)/GNUmakefile.in \ 235 $(srcdir)/GNUmakefile.in \
239 $(srcdir)/INSTALL \ 236 $(srcdir)/INSTALL \
@@ -242,7 +239,7 @@ MAINTAINERCLEANFILES += \
242 239
243# Older automake versions (1.7) place Plo files in a different place so we need 240# Older automake versions (1.7) place Plo files in a different place so we need
244# to create the output directory manually. 241# to create the output directory manually.
245all-local: 242all-local: stamp-po
246 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources 243 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
247 244
248# remove built sources and program directories 245# remove built sources and program directories