blob: 55262a1b501933f39f3e210ebca379cb156abc50 (
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
CLEANFILES =
EXTRA_DIST =
libexec_PROGRAMS = \
indicator-session-service
if BUILD_GTKLOGOUTHELPER
libexec_PROGRAMS += \
gtk-logout-helper
endif
###################
# Indicator Stuff
###################
CLEANFILES += .libs/*.gcda .libs/*.gcno *.gcda *.gcno
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
libsession_la_CFLAGS = \
$(APPLET_CFLAGS) \
$(COVERAGE_CFLAGS) \
-Wall -Wunused \
-DG_LOG_DOMAIN=\"Indicator-Session\"
libsession_la_LIBADD = $(APPLET_LIBS)
libsession_la_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-module -avoid-version
dbus_display_manager_sources = \
dbus-display-manager.c \
dbus-display-manager.h
$(dbus_display_manager_sources): display-manager.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-display-manager \
$^
dbus_consolekit_manager_sources = \
dbus-consolekit-manager.c \
dbus-consolekit-manager.h
$(dbus_consolekit_manager_sources): org.freedesktop.ConsoleKit.Manager.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-consolekit-manager \
$^
dbus_consolekit_seat_sources = \
dbus-consolekit-seat.c \
dbus-consolekit-seat.h
$(dbus_consolekit_seat_sources): org.freedesktop.ConsoleKit.Seat.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-consolekit-seat \
$^
dbus_consolekit_session_sources = \
dbus-consolekit-session.c \
dbus-consolekit-session.h
$(dbus_consolekit_session_sources): org.freedesktop.ConsoleKit.Session.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-consolekit-session \
$^
dbus_accounts_sources = \
dbus-accounts.c \
dbus-accounts.h
$(dbus_accounts_sources): org.freedesktop.Accounts.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-accounts \
$^
dbus_user_sources = \
dbus-user.c \
dbus-user.h
$(dbus_user_sources): org.freedesktop.Accounts.User.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--generate-c-code dbus-user \
$^
dbus_upower_sources = \
dbus-upower.c \
dbus-upower.h
$(dbus_upower_sources): upower.xml
gdbus-codegen \
--interface-prefix org.freedesktop \
--c-namespace IndicatorSession \
--generate-c-code dbus-upower \
$^
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 = \
$(dbus_accounts_sources) \
$(dbus_consolekit_manager_sources) \
$(dbus_consolekit_seat_sources) \
$(dbus_consolekit_session_sources) \
$(dbus_display_manager_sources) \
$(dbus_upower_sources) \
$(dbus_user_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
indicator_session_service_CFLAGS = \
$(SESSIONSERVICE_CFLAGS) \
$(GCONF_CFLAGS) \
-DLIBEXECDIR=\"$(libexecdir)\" \
-Wall \
-DG_LOG_DOMAIN=\"Indicator-Session\" \
$(COVERAGE_CFLAGS)
indicator_session_service_LDADD = \
$(SESSIONSERVICE_LIBS) \
$(GCONF_LIBS)
indicator_session_service_LDFLAGS = \
$(COVERAGE_LDFLAGS)
#################
# GTK Logout Stuff
#################
if BUILD_GTKLOGOUTHELPER
gtk_logout_helper_SOURCES = \
$(dbus_consolekit_manager_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) \
$(COVERAGE_CFLAGS) \
-Wall \
-DINDICATOR_ICONS_DIR="\"$(INDICATORICONSDIR)\""
gtk_logout_helper_LDADD = \
$(SESSIONSERVICE_LIBS) \
$(GTKLOGOUTHELPER_LIBS) \
$(GCONF_LIBS)
gtk_logout_helper_LDFLAGS = \
$(COVERAGE_LDFLAGS)
endif
###############
# Other Stuff
###############
BUILT_SOURCES = \
$(dbus_accounts_sources) \
$(dbus_consolekit_manager_sources) \
$(dbus_consolekit_seat_sources) \
$(dbus_consolekit_session_sources) \
$(dbus_display_manager_sources) \
$(dbus_upower_sources) \
$(dbus_user_sources) \
gen-session-dbus.xml.c \
gen-session-dbus.xml.h
EXTRA_DIST += \
display-manager.xml \
org.freedesktop.Accounts.User.xml \
org.freedesktop.Accounts.xml \
org.freedesktop.ConsoleKit.Manager.xml \
org.freedesktop.ConsoleKit.Seat.xml \
org.freedesktop.ConsoleKit.Session.xml \
session-dbus.xml \
upower.xml
CLEANFILES += $(BUILT_SOURCES)
|