summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/Makefile.am
blob: 9bbb41341b3d48a8a2b720b84ec05ae933e4e885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
NULL =

noinst_LTLIBRARIES = libstatus-notifier.la

AM_CPPFLAGS =							\
	$(NOTIFICATION_AREA_CFLAGS)				\
	$(LIBMATE_PANEL_APPLET_CFLAGS)				\
	-I$(srcdir)						\
	-I$(srcdir)/..						\
	-DMATELOCALEDIR=\""$(datadir)/locale"\"			\
	-DG_LOG_DOMAIN=\""notification-area-applet"\"		\
	$(DISABLE_DEPRECATED_CFLAGS)

AM_CFLAGS = $(WARN_CFLAGS)

libstatus_notifier_la_SOURCES =		\
	sn-compat-gtk.h			\
	sn-compat-gtk-3.16.h		\
	sn-compat-gtk-3.20.h		\
	sn-compat-gtk-3.22.h		\
	sn-dbus-menu.c			\
	sn-dbus-menu.h			\
	sn-dbus-menu-item.c		\
	sn-dbus-menu-item.h		\
	sn-host-v0.c			\
	sn-host-v0.h			\
	sn-image-menu-item.c		\
	sn-image-menu-item.h		\
	sn-item.c			\
	sn-item.h			\
	sn-item-v0.c			\
	sn-item-v0.h			\
	$(BUILT_SOURCES)		\
	$(NULL)

libstatus_notifier_la_LIBADD =				\
	$(LIBM)						\
	$(NOTIFICATION_AREA_LIBS)			\
	$(NULL)

sn-dbus-menu-gen.h:
sn-dbus-menu-gen.c: com.canonical.dbusmenu.xml
	$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
		--generate-c-code sn-dbus-menu-gen \
		$(srcdir)/com.canonical.dbusmenu.xml

sn-host-v0-gen.h:
sn-host-v0-gen.c: org.kde.StatusNotifierHost.xml
	$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
		--generate-c-code sn-host-v0-gen \
		$(srcdir)/org.kde.StatusNotifierHost.xml

sn-item-v0-gen.h:
sn-item-v0-gen.c: org.kde.StatusNotifierItem.xml
	$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
		--generate-c-code sn-item-v0-gen \
		$(srcdir)/org.kde.StatusNotifierItem.xml

sn-watcher-v0-gen.h:
sn-watcher-v0-gen.c: org.kde.StatusNotifierWatcher.xml
	$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
		--generate-c-code sn-watcher-v0-gen \
		$(srcdir)/org.kde.StatusNotifierWatcher.xml

BUILT_SOURCES =			\
	sn-dbus-menu-gen.c	\
	sn-dbus-menu-gen.h	\
	sn-host-v0-gen.c	\
	sn-host-v0-gen.h	\
	sn-item-v0-gen.c	\
	sn-item-v0-gen.h	\
	sn-watcher-v0-gen.c	\
	sn-watcher-v0-gen.h	\
	$(NULL)

EXTRA_DIST =					\
	com.canonical.dbusmenu.xml		\
	org.kde.StatusNotifierHost.xml		\
	org.kde.StatusNotifierItem.xml		\
	org.kde.StatusNotifierWatcher.xml	\
	$(NULL)

CLEANFILES =			\
	$(BUILT_SOURCES)	\
	$(NULL)

-include $(top_srcdir)/git.mk