GNUmakefile.am 2.4 KB

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