blob: 2201da089132a410b18c8d6b68bc55c97a5e09b1 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
EXTRA_DIST =
libexec_PROGRAMS = \
indicator-session-service
if BUILD_GTKLOGOUTHELPER
libexec_PROGRAMS += \
gtk-logout-helper
endif
###################
# Indicator Stuff
###################
sessionlibdir = $(INDICATORDIR)
sessionlib_LTLIBRARIES = libsession.la
libsession_la_SOURCES = \
indicator-session.c \
gen-session-dbus.xml.h \
dbus-shared-names.h \
dbusmenu-shared.h \
user-widget.c \
user-widget.h \
accounts-service-client.h \
accounts-service-user-client.h
libsession_la_CFLAGS = \
$(APPLET_CFLAGS) \
-Wall -Werror \
-DG_LOG_DOMAIN=\"Indicator-Session\"
libsession_la_LIBADD = $(APPLET_LIBS)
libsession_la_LDFLAGS = -module -avoid-version
consolekit-manager-client.h: $(srcdir)/org.freedesktop.ConsoleKit.Manager.xml
dbus-binding-tool \
--prefix=_consolekit_manager_client \
--mode=glib-client \
--output=consolekit-manager-client.h \
$(srcdir)/org.freedesktop.ConsoleKit.Manager.xml
consolekit-seat-client.h: $(srcdir)/org.freedesktop.ConsoleKit.Seat.xml
dbus-binding-tool \
--prefix=_consolekit_seat_client \
--mode=glib-client \
--output=consolekit-seat-client.h \
$(srcdir)/org.freedesktop.ConsoleKit.Seat.xml
consolekit-session-client.h: $(srcdir)/org.freedesktop.ConsoleKit.Session.xml
dbus-binding-tool \
--prefix=_consolekit_session_client \
--mode=glib-client \
--output=consolekit-session-client.h \
$(srcdir)/org.freedesktop.ConsoleKit.Session.xml
display-manager-client.h: $(srcdir)/display-manager.xml
dbus-binding-tool \
--prefix=_gdm_local_display_factory_client \
--mode=glib-client \
--output=display-manager-client.h \
$(srcdir)/display-manager.xml
accounts-service-client.h: $(srcdir)/accounts-service.xml
dbus-binding-tool \
--prefix=_accounts_service_client \
--mode=glib-client \
--output=accounts-service-client.h \
$(srcdir)/accounts-service.xml
accounts-service-user-client.h: $(srcdir)/accounts-service-user.xml
dbus-binding-tool \
--prefix=_accounts_service_user_client \
--mode=glib-client \
--output=accounts-service-user-client.h \
$(srcdir)/accounts-service-user.xml
upower-client.h: $(srcdir)/upower.xml
dbus-binding-tool \
--prefix=_upower_client \
--mode=glib-client \
--output=upower-client.h \
$(srcdir)/upower.xml
gen-%.xml.c: %.xml
@echo "Building $@ from $<"
@echo "const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<)))) = " > $@
@sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
@echo ";" >> $@
gen-%.xml.h: %.xml
@echo "Building $@ from $<"
@echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<))));" > $@
#################
# Session Stuff
#################
indicator_session_service_SOURCES = \
lock-helper.c \
lock-helper.h \
session-service.c \
session-dbus.c \
session-dbus.h \
gen-session-dbus.xml.c \
dbusmenu-shared.h \
settings-helper.c \
users-service-dbus.h \
users-service-dbus.c \
user-menu-mgr.h \
user-menu-mgr.c \
device-menu-mgr.h \
device-menu-mgr.c \
sane-rules.h \
webcredentials-mgr.c \
webcredentials-mgr.h
if BUILD_APT
indicator_session_service_SOURCES += \
apt-watcher.h \
apt-watcher.c
else
EXTRA_DIST += \
apt-watcher.h \
apt-watcher.c
endif
if HAS_GUDEV
indicator_session_service_SOURCES += \
udev-mgr.h \
udev-mgr.c
else
EXTRA_DIST += \
udev-mgr.h \
udev-mgr.c
endif
indicator_session_service_CFLAGS = \
$(SESSIONSERVICE_CFLAGS) \
$(GCONF_CFLAGS) \
-DLIBEXECDIR=\"$(libexecdir)\" \
-Wall -Werror \
-DG_LOG_DOMAIN=\"Indicator-Session\" \
$(GUDEV_CFLAGS)
indicator_session_service_LDADD = \
$(SESSIONSERVICE_LIBS) \
$(GCONF_LIBS) \
$(GUDEV_LIBS)
#################
# GTK Logout Stuff
#################
if BUILD_GTKLOGOUTHELPER
gtk_logout_helper_SOURCES = \
gtk-logout-helper.c \
settings-helper.c \
settings-helper.h \
dialog.c \
dialog.h
gtk_logout_helper_CFLAGS = \
$(SESSIONSERVICE_CFLAGS) \
$(GTKLOGOUTHELPER_CFLAGS) \
$(GCONF_CFLAGS) \
-Wall -Werror \
-DINDICATOR_ICONS_DIR="\"$(INDICATORICONSDIR)\""
gtk_logout_helper_LDADD = \
$(SESSIONSERVICE_LIBS) \
$(GTKLOGOUTHELPER_LIBS) \
$(GCONF_LIBS)
endif
###############
# Other Stuff
###############
BUILT_SOURCES = \
consolekit-manager-client.h \
consolekit-seat-client.h \
consolekit-session-client.h \
display-manager-client.h \
gen-session-dbus.xml.c \
gen-session-dbus.xml.h \
upower-client.h \
accounts-service-client.h \
accounts-service-user-client.h
EXTRA_DIST += \
org.freedesktop.ConsoleKit.Manager.xml \
org.freedesktop.ConsoleKit.Seat.xml \
org.freedesktop.ConsoleKit.Session.xml \
display-manager.xml \
session-dbus.xml \
upower.xml \
accounts-service.xml \
accounts-service-user.xml
CLEANFILES = \
$(BUILT_SOURCES)
|