4e2535bff8bf322ed5c9d08049f1618fdbaab4bd
[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         $(global_cppflags) \
14         $(javascriptcore_cppflags) \
15         $(FREETYPE_CFLAGS) \
16         $(GLIB_CFLAGS) \
17         $(GTK_CFLAGS) \
18         $(LIBSOUP_CFLAGS)
19
20 Programs_MiniBrowser_SOURCES = \
21         Tools/MiniBrowser/gtk/BrowserCellRendererVariant.h \
22         Tools/MiniBrowser/gtk/BrowserCellRendererVariant.c \
23         Tools/MiniBrowser/gtk/BrowserDownloadsBar.h \
24         Tools/MiniBrowser/gtk/BrowserDownloadsBar.c \
25         Tools/MiniBrowser/gtk/BrowserSettingsDialog.h \
26         Tools/MiniBrowser/gtk/BrowserSettingsDialog.c \
27         Tools/MiniBrowser/gtk/BrowserWindow.h \
28         Tools/MiniBrowser/gtk/BrowserWindow.c \
29         Tools/MiniBrowser/gtk/main.c
30
31 minibrowser_built_sources += \
32         DerivedSources/WebKit2/BrowserMarshal.h \
33         DerivedSources/WebKit2/BrowserMarshal.c
34 nodist_Programs_MiniBrowser_SOURCES = \
35         $(minibrowser_built_sources)
36
37 Programs_MiniBrowser_LDADD = \
38         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
39         $(FREETYPE_LIBS) \
40         $(GLIB_LIBS) \
41         $(GTK_LIBS) \
42         $(LIBXSLT_LIBS) \
43         $(LIBSOUP_LIBS)
44
45 Programs_MiniBrowser_LDFLAGS = \
46         -no-fast-install \
47         -no-install
48
49 CLEANFILES += \
50         $(top_builddir)/Programs/MiniBrowser \
51         $(minibrowser_built_sources) \
52         $(top_builddir)/stamp-mini-browser-marshal.h \
53         $(top_builddir)/stamp-mini-browser-marshal.c
54
55 BUILT_SOURCES += $(minibrowser_built_sources)
56
57 minibrowser_marshal_list = $(srcdir)/Tools/MiniBrowser/gtk/browser-marshal.list
58
59 $(GENSOURCES_WEBKIT2)/BrowserMarshal.h: stamp-mini-browser-marshal.h
60         @true
61 $(GENSOURCES_WEBKIT2)/BrowserMarshal.c: stamp-mini-browser-marshal.c
62         @true
63
64 stamp-mini-browser-marshal.c: $(minibrowser_marshal_list)
65         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=browser_marshal $(minibrowser_marshal_list) --body > $(GENSOURCES_WEBKIT2)/BrowserMarshal.c && \
66         echo timestamp > $(@F)
67
68 stamp-mini-browser-marshal.h: $(MiniBrowser_marshal_list)
69         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=browser_marshal $(minibrowser_marshal_list) --header > $(GENSOURCES_WEBKIT2)/BrowserMarshal.h && \
70         echo timestamp > $(@F)
71
72 EXTRA_DIST += \
73         $(srcdir)/Tools/MiniBrowser/gtk/browser-marshal.list
74