[GTK] Silence MiniBrowser compile warnings due to recent GTK+ deprecations
[WebKit-https.git] / Tools / MiniBrowser / gtk / GNUmakefile.am
1 if ENABLE_WEBKIT2
2 noinst_PROGRAMS += \
3         Programs/MiniBrowser
4 endif
5
6 Programs_MiniBrowser_CPPFLAGS = \
7         -I$(srcdir)/Source \
8         -I$(top_builddir)/DerivedSources/WebKit2 \
9         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk \
10         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/include \
11         -DWEBKIT_EXEC_PATH=\"${shell pwd}/$(top_builddir)/Programs/\" \
12         -DWEBKIT_INJECTED_BUNDLE_PATH=\"${shell pwd}/$(top_builddir)/.libs\" \
13         -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 \
14         $(global_cppflags) \
15         $(javascriptcore_cppflags) \
16         $(FREETYPE_CFLAGS) \
17         $(GLIB_CFLAGS) \
18         $(GTK_CFLAGS) \
19         $(LIBSOUP_CFLAGS)
20
21 Programs_MiniBrowser_SOURCES = \
22         Tools/MiniBrowser/gtk/BrowserCellRendererVariant.h \
23         Tools/MiniBrowser/gtk/BrowserCellRendererVariant.c \
24         Tools/MiniBrowser/gtk/BrowserDownloadsBar.h \
25         Tools/MiniBrowser/gtk/BrowserDownloadsBar.c \
26         Tools/MiniBrowser/gtk/BrowserSettingsDialog.h \
27         Tools/MiniBrowser/gtk/BrowserSettingsDialog.c \
28         Tools/MiniBrowser/gtk/BrowserWindow.h \
29         Tools/MiniBrowser/gtk/BrowserWindow.c \
30         Tools/MiniBrowser/gtk/main.c
31
32 minibrowser_built_sources += \
33         DerivedSources/WebKit2/BrowserMarshal.h \
34         DerivedSources/WebKit2/BrowserMarshal.c
35 nodist_Programs_MiniBrowser_SOURCES = \
36         $(minibrowser_built_sources)
37
38 Programs_MiniBrowser_LDADD = \
39         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
40         $(FREETYPE_LIBS) \
41         $(GLIB_LIBS) \
42         $(GTK_LIBS) \
43         $(LIBXSLT_LIBS) \
44         $(LIBSOUP_LIBS)
45
46 Programs_MiniBrowser_LDFLAGS = \
47         -no-fast-install \
48         -no-install
49
50 CLEANFILES += \
51         $(top_builddir)/Programs/MiniBrowser \
52         $(minibrowser_built_sources) \
53         $(top_builddir)/stamp-mini-browser-marshal.h \
54         $(top_builddir)/stamp-mini-browser-marshal.c
55
56 BUILT_SOURCES += $(minibrowser_built_sources)
57
58 minibrowser_marshal_list = $(srcdir)/Tools/MiniBrowser/gtk/browser-marshal.list
59
60 $(GENSOURCES_WEBKIT2)/BrowserMarshal.h: stamp-mini-browser-marshal.h
61         @true
62 $(GENSOURCES_WEBKIT2)/BrowserMarshal.c: stamp-mini-browser-marshal.c
63         @true
64
65 stamp-mini-browser-marshal.c: $(minibrowser_marshal_list)
66         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=browser_marshal $(minibrowser_marshal_list) --body > $(GENSOURCES_WEBKIT2)/BrowserMarshal.c && \
67         echo timestamp > $(@F)
68
69 stamp-mini-browser-marshal.h: $(MiniBrowser_marshal_list)
70         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=browser_marshal $(minibrowser_marshal_list) --header > $(GENSOURCES_WEBKIT2)/BrowserMarshal.h && \
71         echo timestamp > $(@F)
72
73 EXTRA_DIST += \
74         $(srcdir)/Tools/MiniBrowser/gtk/browser-marshal.list
75