Added "Copy" context menu in case that selected node has imageURL.
[framework/web/webkit-efl.git] / GNUmakefile.am
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 # _built_sources    = files that will be autogenerated by the build system and
9 #                     will be part of the _SOURCES primary
10 # _built_nosources  = files that are autogenerated but are not part of the
11 #                     _SOURCES primary
12 # _cleanfiles       = files that will be removed by the clean target
13 #
14 # Sources, headers, flags, etc... should be added to the respective variables
15 # with the above suffix, e.g, webcore-specific sources should go to
16 # webcore_sources, gtk port API and WebCoreSupport parts to webkitgtk_sources,
17 # etc... The only exceptions are the global variables. See Global Variables
18 # below.
19
20 # Global Variables Reference
21 # global_cppflags   = CPPFLAGS that apply to all C/C++ files that are built for any project.
22 # global_cflags     = CFLAGS that apply to all C files that are built for any project.
23 # global_cxxflags   = CXXFLAGS that apply to all C++ files that are bult for any project.
24
25 srcdir = @srcdir@
26 VPATH = @srcdir@
27
28 DISTCHECK_CONFIGURE_FLAGS = \
29         --enable-introspection  \
30         --enable-gtk-doc \
31         --enable-webkit2
32
33 # Directory for autogenerated sources
34 GENSOURCES := $(top_builddir)/DerivedSources
35 GENSOURCES_JAVASCRIPTCORE := $(top_builddir)/DerivedSources/JavaScriptCore
36 GENSOURCES_WEBCORE := $(top_builddir)/DerivedSources/WebCore
37 GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit
38 GENSOURCES_WEBKIT2 := $(top_builddir)/DerivedSources/WebKit2
39 GENPROGRAMS := $(top_builddir)/Programs
40 GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector
41 WebCore := $(srcdir)/Source/WebCore
42 WebKit := $(srcdir)/Source/WebKit/gtk
43 WebKit2 := $(srcdir)/Source/WebKit2
44 pkgconfigdir := $(libdir)/pkgconfig
45 libwebkitgtkincludedir := $(prefix)/include/webkitgtk-@WEBKITGTK_API_VERSION@
46
47 # Libraries and support components
48 bin_PROGRAMS :=
49 noinst_PROGRAMS :=
50 libexec_PROGRAMS :=
51 noinst_HEADERS :=
52 noinst_LTLIBRARIES :=
53 lib_LTLIBRARIES :=
54 IDL_BINDINGS :=
55 TEST_PROGS :=
56 POFILES :=
57 PO_LINGUAS :=
58 USER_LINGUAS :=
59 USE_LINGUAS :=
60 MOFILES :=
61 ALL_MOFILES :=
62 dom_binding_idls :=
63 wtf_sources :=
64 javascriptcore_h_api :=
65 javascriptcore_cppflags:=
66 javascriptcore_cflags :=
67 javascriptcore_sources :=
68 javascriptcore_built_sources :=
69 javascriptcore_built_nosources :=
70 llint_nosources :=
71 offlineasm_nosources :=
72 webcore_cppflags :=
73 webcore_modules_sources :=
74 webcore_sources :=
75 webcore_libadd :=
76 webcore_built_sources :=
77 webcore_built_nosources :=
78 webcoregtk_sources :=
79 webcoregtk_cppflags :=
80 webkitgtk_built_h_api :=
81 webkitgtk_static_h_api :=
82 webkitgtk_h_api :=
83 webkitgtk_sources :=
84 webkitgtk_cppflags :=
85 webkitgtk_gdom_built_sources :=
86 webkitgtk_built_sources :=
87 webkitgtk_built_nosources :=
88 webkit2_h_api :=
89 webkit2_sources :=
90 webkit2_built_sources :=
91 webkit2gtk_h_api :=
92 webkit2gtk_built_sources :=
93 webkit2_plugin_process_sources :=
94 webkit2_plugin_process_built_sources :=
95 webkittestrunner_built_sources :=
96 libwebcoreinternals_built_sources :=
97 minibrowser_built_sources :=
98 global_cppflags :=
99 global_cflags :=
100 global_cxxflags :=
101 JSCORE_GIRSOURCES :=
102 WEBKIT_GIRSOURCES :=
103 FEATURE_DEFINES :=
104 typelibsdir :=
105 typelibs_DATA :=
106 EXTRA_DIST :=
107 BUILT_SOURCES :=
108 CLEANFILES :=
109 DOMAIN :=
110 DISTCLEANFILES :=
111 MAINTAINERCLEANFILES :=
112 pkgconfig_DATA :=
113
114 # We do not care at all about this implicit built-in make rules,
115 # disable them to save some build time
116 %: %.c
117 %: %.cpp
118 %: %.o
119 (%): %
120 %.out: %
121 %.c: %.w %.ch
122 %.tex: %.w %.ch
123 %:: %,v
124 %:: RCS/%,v
125 %:: RCS/%
126 %:: s.%
127 %:: SCCS/s.%
128
129 global_cppflags += \
130         -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
131         -Wformat -Wformat-security -Wno-format-y2k -Wundef \
132         -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
133         -Wno-unused-parameter -Wno-parentheses \
134         -fno-exceptions -DENABLE_GLIB_SUPPORT=1
135
136 global_cxxflags += \
137         -fno-rtti
138
139 # -no-undefined required for building DLLs on Windows
140 # It breaks the build on other platforms, so we use it conditionally
141 if OS_WIN32
142 no_undefined = -no-undefined
143 version_script = -export-symbols-regex "^(webkit_|k?JS).*"
144 endif
145
146 if OS_GNU
147 version_script = -Wl,--version-script,$(srcdir)/Source/autotools/symbols.filter
148 endif
149
150 # Extra checks and flags
151 global_cppflags += \
152         -DBUILDING_CAIRO__=1 \
153         -DBUILDING_GTK__=1 \
154         -DBUILDING_SOUP__=1 \
155         -DWTF_CHANGES
156
157 if ENABLE_WEBKIT2
158 global_cppflags += \
159         -DBUILDING_WEBKIT2__=1
160 endif
161
162 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
163 if TARGET_WIN32
164 global_cppflags += \
165         -DXP_WIN
166 else
167 global_cppflags += \
168         -DXP_UNIX
169 endif
170
171 # Add MOZ_X11 for X11 targets only
172 if TARGET_X11
173 global_cppflags += \
174         -DMOZ_X11
175 endif
176
177 # Use the wide character version of win32 API by default
178 if TARGET_WIN32
179 global_cppflags += \
180         -DUNICODE \
181         -D_UNICODE
182 endif
183
184 if USE_ICU_UNICODE
185 global_cppflags += \
186         -DWTF_USE_ICU_UNICODE=1
187 endif
188
189 if USE_GLIB_UNICODE
190 global_cppflags += \
191         -DWTF_USE_GLIB_UNICODE=1
192 endif
193
194 if !ENABLE_FAST_MALLOC
195 global_cppflags += \
196         -DUSE_SYSTEM_MALLOC
197 endif
198
199 if USE_GSTREAMER
200 global_cppflags += \
201         -DWTF_USE_GSTREAMER=1
202 endif
203
204 if USE_ACCELERATED_COMPOSITING
205 global_cppflags += \
206         -DWTF_USE_ACCELERATED_COMPOSITING=1 \
207         -DENABLE_3D_RENDERING=1
208 endif
209
210 if USE_TEXTURE_MAPPER_CAIRO
211 global_cppflags += \
212         -DWTF_USE_TEXTURE_MAPPER=1 \
213         -DWTF_USE_TEXTURE_MAPPER_CAIRO=1
214 endif
215
216 if USE_TEXTURE_MAPPER_GL
217 global_cppflags += \
218         -DWTF_USE_TEXTURE_MAPPER=1 \
219         -DWTF_USE_TEXTURE_MAPPER_GL=1
220 endif
221
222 if USE_CLUTTER
223 global_cppflags += \
224         -DWTF_USE_CLUTTER=1
225 endif
226
227 if USE_GLX
228 global_cppflags += \
229         -DWTF_USE_GLX=1
230 endif
231
232 if USE_OPENGL
233 global_cppflags += \
234         -DWTF_USE_OPENGL=1
235 endif
236
237 # ----
238 # GTK+ 2.x/3.x support
239 # ----
240 if GTK_API_VERSION_2
241 global_cppflags += \
242         -DGTK_API_VERSION_2=1
243 endif
244
245 if !ENABLE_DEBUG
246 global_cppflags += -DNDEBUG
247 else
248 global_cppflags += \
249         -DGDK_PIXBUF_DISABLE_DEPRECATED \
250         -DGDK_DISABLE_DEPRECATED \
251         -DGTK_DISABLE_DEPRECATED \
252         -DPANGO_DISABLE_DEPRECATED
253 # Might be useful in the future
254 #       -DGDK_MULTIHEAD_SAFE \
255 #       -DGTK_MULTIHEAD_SAFE
256 endif
257
258 if ENABLE_COVERAGE
259 global_cppflags += \
260         -DGCC_GENERATE_TEST_COVERAGE_FILES \
261         -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
262 endif
263
264 EXTRA_DIST += \
265         $(srcdir)/Source/autotools/symbols.filter \
266         $(srcdir)/Source/WebKit/LICENSE
267
268 # Include module makefiles
269 include Source/WTF/GNUmakefile.am
270 include Source/JavaScriptCore/GNUmakefile.am
271 include Source/WebCore/GNUmakefile.am
272 include Source/WebKit/gtk/GNUmakefile.am
273 include Source/WebCore/bindings/gobject/GNUmakefile.am
274 include Tools/GNUmakefile.am
275 include Source/WebKit/gtk/po/GNUmakefile.am
276 include Tools/DumpRenderTree/gtk/GNUmakefile.ImageDiff.am
277
278 include Source/WebKit2/GNUmakefile.am
279 include Source/WebKit2/UIProcess/API/gtk/tests/GNUmakefile.am
280 include Tools/MiniBrowser/gtk/GNUmakefile.am
281 include Tools/WebKitTestRunner/GNUmakefile.am
282 include Source/ThirdParty/gtest/GNUmakefile.am
283 include Tools/TestWebKitAPI/GNUmakefile.am
284 # [GTK] Refactor the translations now that we have webkit2
285 # https://bugs.webkit.org/show_bug.cgi?id=55153
286
287 # Autogenerated sources
288 BUILT_SOURCES += \
289         $(javascriptcore_built_sources) \
290         $(javascriptcore_built_nosources) \
291         $(webcore_built_sources) \
292         $(webcore_built_nosources) \
293         $(webkitgtk_built_sources) \
294         $(webkitgtk_built_nosources) \
295         $(webkit2_built_sources) \
296         $(webkit2gtk_built_sources) \
297         $(webkit2_plugin_process_built_sources)
298
299 DISTCLEANFILES += \
300         $(CLEANFILES) \
301         $(builddir)/doltcompile \
302         $(builddir)/doltlibtool
303
304 MAINTAINERCLEANFILES += \
305         $(CLEANFILES) \
306         $(builddir)/doltcompile \
307         $(builddir)/doltlibtool \
308         $(srcdir)/aconfig.h.in \
309         $(srcdir)/Source/autotools/config.* \
310         $(srcdir)/Source/autotools/compile \
311         $(srcdir)/Source/autotools/depcomp \
312         $(srcdir)/Source/autotools/install-sh \
313         $(srcdir)/Source/autotools/missing \
314         $(srcdir)/configure \
315         $(srcdir)/GNUmakefile.in \
316         $(srcdir)/INSTALL \
317         $(srcdir)/README \
318         $(top_builddir)/config.*
319
320 # Older automake versions (1.7) place Plo files in a different place so we need
321 # to create the output directory manually.
322 all-local: stamp-po
323         $(MKDIR_P) $(top_builddir)/$(DEPDIR)/DerivedSources
324
325 # remove built sources and program directories
326 clean-local:
327         -rm -rf $(GENPROGRAMS)
328
329 maintainer-clean-local: distclean-local
330 distclean-local:
331         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
332
333 dist-hook: doc-dist-hook
334 doc-dist-hook: docs-build.stamp
335         cp $(WebKit)/NEWS $(distdir)
336         @mkdir -p $(distdir)/Documentation/webkitgtk/html
337         @mkdir -p $(distdir)/Documentation/webkitgtk/tmpl
338         @-cp ./Documentation/webkitgtk/tmpl/*.sgml $(distdir)/Documentation/webkitgtk/tmpl
339         @cp ./Documentation/webkitgtk/html/* $(distdir)/Documentation/webkitgtk/html
340 if ENABLE_WEBKIT2
341         @mkdir -p $(distdir)/Documentation/webkit2gtk/html
342         @mkdir -p $(distdir)/Documentation/webkit2gtk/tmpl
343         @-cp ./Documentation/webkit2gtk/tmpl/*.sgml $(distdir)/Documentation/webkit2gtk/tmpl
344         @cp ./Documentation/webkit2gtk/html/* $(distdir)/Documentation/webkit2gtk/html
345 endif