metainfo: add notification plugin
[claws.git] / src / plugins / notification / Makefile.am
1 # Makefile.am for "src/plugins/notification" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_files = claws-mail-notification.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
8
9 if BUILD_HOTKEYS
10 hotkey_lib = libcmnpgtkhotkey.la
11 hotkey_lib_path = $(top_builddir)/src/plugins/notification/gtkhotkey/libcmnpgtkhotkey.la
12 else
13 hotkey_lib =
14 hotkey_lib_path =
15 endif
16
17 SUBDIRS=gtkhotkey
18 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_files)
19 CFLAGS += "-Wall"
20
21 IFLAGS = \
22         -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
23         -I$(top_srcdir)/src \
24         -I$(top_srcdir)/src/common \
25         -I$(top_builddir)/src/common \
26         -I$(top_srcdir)/src/gtk
27
28 if OS_WIN32
29
30 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
31      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
32      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
33
34 %.lo : %.rc
35         $(LTRCCOMPILE) -i $< -o $@
36
37 plugin_res = version.lo
38 plugin_res_ldflag = -Wl,.libs/version.o
39
40 export_symbols = -export-symbols $(srcdir)/plugin.def
41
42 plugin_deps = libclaws.a $(plugin_res) plugin.def $(hotkey_lib) 
43
44 libclaws.a: claws.def
45         $(DLLTOOL) --output-lib $@ --def $<
46
47 plugin_ldadd = -L. -lclaws
48
49 else
50 plugin_res =
51 plugin_res_ldflag =
52 export_symbols =
53 plugin_deps =
54 plugin_ldadd =
55 endif
56
57 if PLATFORM_WIN32
58 no_undefined = -no-undefined
59 else
60 no_undefined =
61 endif
62
63 if CYGWIN
64 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
65 else
66 cygwin_export_lib = 
67 endif
68
69 plugindir = $(pkglibdir)/plugins
70
71 if BUILD_NOTIFICATION_PLUGIN
72 plugin_LTLIBRARIES = notification.la
73 endif
74
75 notification_la_SOURCES = \
76         notification_plugin.c notification_plugin.h \
77         notification_core.c notification_core.h \
78         notification_popup.c notification_popup.h \
79         notification_banner.c notification_banner.h \
80         notification_command.c notification_command.h \
81         notification_lcdproc.c notification_lcdproc.h \
82         notification_trayicon.c notification_trayicon.h \
83         notification_indicator.c notification_indicator.h \
84         notification_hotkeys.c notification_hotkeys.h \
85         notification_prefs.c notification_prefs.h \
86         notification_foldercheck.c notification_foldercheck.h \
87         notification_pixbuf.c notification_pixbuf.h \
88         raw_claws_mail_logo_64x64.h
89
90 notification_la_LDFLAGS = \
91         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
92         -avoid-version -module
93
94 notification_la_DEPENDENCIES = $(plugin_deps) \
95         $(hotkey_lib_path)
96
97 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
98         $(GTK_LIBS)  \
99         $(libnotify_LIBS) \
100         $(libindicate_LIBS) \
101         $(libcanberra_gtk_LIBS) \
102         $(hotkey_lib_path)
103
104 notification_la_CPPFLAGS = \
105         $(IFLAGS) \
106         $(NOTIFY_CFLAGS) \
107         $(GLIB_CFLAGS) \
108         $(GTK_CFLAGS) \
109         $(libnotify_CFLAGS) \
110         $(libindicate_CFLAGS) \
111         $(libcanberra_gtk_CFLAGS)
112
113 clean-local:
114         rm -f libclaws.a