Add qt platform configuration settings, to not always override the current settings
[lxde/lxsession.git] / Makefile.am
CommitLineData
3ba2ea5c 1ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
c8c24ef1 2AUTOMAKE_OPTIONS = subdir-objects
3ba2ea5c 3
f8d2bceb
HJYP
4NULL=
5
06a5a9be 6SUBDIRS= data \
c8c24ef1
JL
7 man \
8 po \
9 $(NULL)
10
11bin_PROGRAMS = \
e8e40847
AG
12 lxsettings-daemon/lxsettings-daemon \
13 xdg-autostart/lxsession-xdg-autostart \
14 lxsession/lxsession \
c8c24ef1
JL
15 $(NULL)
16
17scripts= \
e8e40847
AG
18 lxlock/lxlock \
19 lxsession-default/lxsession-default \
20 lxsession-default/lxsession-default-terminal \
21 lxsession-utils/lxsession-xsettings \
c8c24ef1
JL
22 $(NULL)
23
24bin_SCRIPTS= $(scripts)
25
26noinst_DATA = \
27 vapi/config.vapi \
28 vapi/lxclipboard.vapi \
29 vapi/lxpolkit.vapi \
30 vapi/lxsession-edit.vapi \
31 vapi/lxsettings-daemon.vapi \
32 vapi/xdg-autostart.vapi \
33 $(NULL)
34
35CLEANFILES = \
36 $(NULL)
531c3a39 37
de6fe696 38EXTRA_DIST = \
c8c24ef1
JL
39 $(noinst_DATA) \
40 $(scripts) \
41 $(NULL)
42
43if USE_GTK
44bin_PROGRAMS += \
e8e40847
AG
45 lxpolkit/lxpolkit \
46 lxsession-db/lxsession-db \
47 lxsession-edit/lxsession-edit \
48 lxsession-logout/lxsession-logout \
49 lxsession-default-apps/lxsession-default-apps \
50 lxclipboard/lxclipboard \
c8c24ef1
JL
51 $(NULL)
52
e8e40847
AG
53lxclipboard_lxclipboard_vala_SOURCES = \
54 lxclipboard/main.vala \
0da3c09b
JL
55 $(NULL)
56
f7162be0 57CLEANFILES += lxclipboard/main.c \
58e4f413 58 lxclipboard_lxclipboard_vala.stamp \
f7162be0
JL
59 $(NULL)
60
e8e40847
AG
61lxclipboard_lxclipboard_SOURCES = \
62 $(lxclipboard_lxclipboard_vala_SOURCES) \
63 lxclipboard/clipboard.c \
c8c24ef1
JL
64 $(NULL)
65
e8e40847 66lxclipboard_lxclipboard_VALAFLAGS = \
c8c24ef1 67 --vapidir=$(srcdir)/vapi \
1c659108 68 --pkg @VALA_GTK_LIBS@ \
c8c24ef1
JL
69 --pkg lxclipboard \
70 $(NULL)
71
33b4ef7b 72lxclipboard_lxclipboard_CPPFLAGS = \
c8c24ef1
JL
73 $(GTK_CFLAGS) \
74 $(GLIB_CFLAGS) \
75 $(ADDITIONAL_FLAGS) \
76 -include config.h -w \
77 $(NULL)
78
e8e40847 79lxclipboard_lxclipboard_LDADD = \
c8c24ef1
JL
80 $(GTK_LIBS) \
81 $(GLIB_LIBS) \
82 $(X11_LIBS) \
83 $(NULL)
84
1c659108 85if USE_GTK3
22ae726c 86lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK3
1c659108 87else
22ae726c 88lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK2
1c659108 89lxclipboard_lxclipboard_VALAFLAGS += --pkg unique-1.0
33b4ef7b 90lxclipboard_lxclipboard_CPPFLAGS += $(UNIQUE_CFLAGS)
1c659108
JL
91lxclipboard_lxclipboard_LDADD += $(UNIQUE_LIBS)
92endif
93
e8e40847
AG
94lxpolkit_lxpolkit_vala_SOURCES = \
95 lxpolkit/main.vala \
0da3c09b
JL
96 $(NULL)
97
f7162be0 98CLEANFILES += lxpolkit/main.c \
58e4f413 99 lxpolkit_lxpolkit_vala.stamp \
f7162be0
JL
100 $(NULL)
101
e8e40847
AG
102lxpolkit_lxpolkit_SOURCES = \
103 $(lxpolkit_lxpolkit_vala_SOURCES) \
104 lxpolkit/lxpolkit.c \
105 lxpolkit/lxpolkit-listener.c \
c8c24ef1
JL
106 $(NULL)
107
e8e40847 108lxpolkit_lxpolkit_VALAFLAGS = \
c8c24ef1 109 --vapidir=$(srcdir)/vapi \
1c659108 110 --pkg @VALA_GTK_LIBS@ \
c8c24ef1
JL
111 --pkg lxpolkit \
112 $(NULL)
113
33b4ef7b 114lxpolkit_lxpolkit_CPPFLAGS = \
c8c24ef1
JL
115 $(GTK_CFLAGS) \
116 $(GLIB_CFLAGS) \
117 $(POLKIT_CFLAGS) \
118 $(ADDITIONAL_FLAGS) \
119 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
120 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
121 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
122 -include config.h -w \
123 $(NULL)
124
e8e40847 125lxpolkit_lxpolkit_LDADD = \
c8c24ef1
JL
126 $(GTK_LIBS) \
127 $(GLIB_LIBS) \
128 $(POLKIT_LIBS) \
129 $(X11_LIBS) \
130 $(NULL)
131
1c659108 132if USE_GTK3
22ae726c 133lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK3
1c659108 134else
22ae726c 135lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK2
1c659108 136lxpolkit_lxpolkit_VALAFLAGS += --pkg unique-1.0
33b4ef7b 137lxpolkit_lxpolkit_CPPFLAGS += $(UNIQUE_CFLAGS)
1c659108
JL
138lxpolkit_lxpolkit_LDADD += $(UNIQUE_LIBS)
139endif
140
e8e40847
AG
141lxsession_db_lxsession_db_SOURCES = \
142 lxsession-db/main.vala \
143 lxsession-db/desktop-files-backend.vala \
c8c24ef1
JL
144 $(NULL)
145
f7162be0
JL
146CLEANFILES += \
147 lxsession-db/main.c \
148 lxsession-db/desktop-files-backend.c \
58e4f413 149 lxsession_db_lxsession_db_vala.stamp \
f7162be0
JL
150 $(NULL)
151
e8e40847 152lxsession_db_lxsession_db_VALAFLAGS = \
c8c24ef1 153 --vapidir=$(srcdir)/vapi \
1c659108 154 --pkg @VALA_GTK_LIBS@ \
c8c24ef1
JL
155 $(NULL)
156
33b4ef7b 157lxsession_db_lxsession_db_CPPFLAGS = \
c8c24ef1
JL
158 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
159 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
160 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
161 $(GTK_CFLAGS) \
c8c24ef1
JL
162 $(GLIB_CFLAGS) \
163 $(ADDITIONAL_FLAGS) \
164 -include config.h -w \
165 $(NULL)
166
e8e40847 167lxsession_db_lxsession_db_LDADD = \
c8c24ef1 168 $(GTK_LIBS) \
c8c24ef1
JL
169 $(GLIB_LIBS) \
170 $(X11_LIBS) \
171 $(NULL)
172
33b4ef7b 173lxsession_edit_lxsession_edit_CPPFLAGS = \
c8c24ef1
JL
174 -I$(top_srcdir) \
175 $(GTK_CFLAGS) \
176 $(ADDITIONAL_FLAGS) \
177 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
178 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
179 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
180 -Werror-implicit-function-declaration \
181 $(NULL)
182
e8e40847 183lxsession_edit_lxsession_edit_LDADD = \
c8c24ef1
JL
184 $(GTK_LIBS) \
185 $(INTLLIBS) \
186 $(NULL)
187
e8e40847
AG
188lxsession_edit_lxsession_edit_common_SOURCES = \
189 lxsession-edit/lxsession-edit-common.c \
c8c24ef1
JL
190 $(NULL)
191
e8e40847
AG
192lxsession_edit_lxsession_edit_SOURCES = \
193 lxsession-edit/lxsession-edit.c \
194 $(lxsession_edit_lxsession_edit_common_SOURCES) \
c8c24ef1
JL
195 $(NULL)
196
e8e40847
AG
197lxsession_default_apps_lxsession_default_apps_vala_SOURCES = \
198 lxsession-default-apps/autostart.vala \
199 lxsession-default-apps/main.vala \
200 lxsession-default-apps/combobox.vala \
201 lxsession-default-apps/dbus-backend.vala \
202 lxsession-default-apps/utils.vala \
0da3c09b
JL
203 $(NULL)
204
f7162be0
JL
205CLEANFILES += \
206 lxsession-default-apps/autostart.c \
207 lxsession-default-apps/main.c \
208 lxsession-default-apps/combobox.c \
209 lxsession-default-apps/dbus-backend.c \
210 lxsession-default-apps/utils.c \
58e4f413 211 lxsession_default_apps_lxsession_default_apps_vala.stamp \
f7162be0
JL
212 $(NULL)
213
e8e40847
AG
214lxsession_default_apps_lxsession_default_apps_SOURCES = \
215 $(lxsession_default_apps_lxsession_default_apps_vala_SOURCES) \
216 $(lxsession_edit_lxsession_edit_common_SOURCES) \
c8c24ef1
JL
217 $(NULL)
218
e8e40847 219lxsession_default_apps_lxsession_default_apps_VALAFLAGS = \
c8c24ef1 220 --vapidir=$(srcdir)/vapi \
1c659108 221 --pkg @VALA_GTK_LIBS@ \
c8c24ef1
JL
222 --pkg gio-2.0 \
223 --pkg posix \
224 --pkg lxsession-edit \
225 --pkg config \
226 $(NULL)
227
33b4ef7b 228lxsession_default_apps_lxsession_default_apps_CPPFLAGS = \
c8c24ef1
JL
229 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
230 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
231 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
232 $(GTK_CFLAGS) \
233 $(GLIB_CFLAGS) \
234 $(GIO_CFLAGS) \
235 $(DBUSGLIB_CFLAGS) \
236 $(ADDITIONAL_FLAGS) \
237 -include config.h -w \
238 $(NULL)
239
e8e40847 240lxsession_default_apps_lxsession_default_apps_LDADD = \
c8c24ef1
JL
241 $(GTK_LIBS) \
242 $(GLIB_LIBS) \
243 $(GIO_LIBS) \
244 $(DBUSGLIB_LIBS) \
245 $(X11_LIBS) \
246 $(NULL)
247
248if USE_BUILDIN_CLIPBOARD
249buildinclip_SOURCES = \
e8e40847 250 lxclipboard/clipboard.c \
c8c24ef1
JL
251 $(NULL)
252
253buildinclip_VALAFLAGS = \
254 --pkg lxclipboard \
c8c24ef1
JL
255 -D BUILDIN_CLIPBOARD \
256 $(NULL)
c8c24ef1
JL
257endif
258
259if USE_BUILDIN_POLKIT
260buildinpolkit_SOURCES = \
e8e40847
AG
261 lxpolkit/lxpolkit.c \
262 lxpolkit/lxpolkit-listener.c \
c8c24ef1
JL
263 $(NULL)
264
265buildinpolkit_VALAFLAGS = \
266 --pkg lxpolkit \
267 -D BUILDIN_POLKIT \
268 $(NULL)
269
270buildinpolkit_CFLAGS = \
c8c24ef1
JL
271 $(POLKIT_CFLAGS) \
272 $(NULL)
273
274buildinpolkit_LDADD = \
c8c24ef1
JL
275 $(POLKIT_LIBS) \
276 $(NULL)
277endif
278
33b4ef7b 279lxsession_logout_lxsession_logout_CPPFLAGS = \
c8c24ef1
JL
280 $(GTK_CFLAGS) \
281 $(SM_CFLAGS) \
282 $(DBUS_CFLAGS) \
283 $(ADDITIONAL_FLAGS) \
284 -DPACKAGE_LOCALE_DIR=\"$(datadir)/locale\" \
285 -DPACKAGE_DATA_DIR=\"$(datadir)\"
286
e8e40847 287lxsession_logout_lxsession_logout_LDADD = \
c8c24ef1
JL
288 $(GTK_LIBS) \
289 $(SM_LIBS) \
290 $(DBUS_LIBS) \
291 $(X11_LIBS)
292
e8e40847
AG
293lxsession_logout_lxsession_logout_SOURCES= \
294 lxsession-logout/lxsession-logout-dbus-interface.c \
295 lxsession-logout/lxsession-logout.c
296
297CLEANFILES += \
298 $(NULL)
299
300EXTRA_DIST += \
301 $(NULL)
c8c24ef1
JL
302
303endif
304
e8e40847
AG
305lxsettings_daemon_lxsettings_daemon_SOURCES = \
306 lxsettings-daemon/main.vala \
307 $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
c8c24ef1
JL
308 $(NULL)
309
f7162be0
JL
310CLEANFILES += \
311 lxsettings-daemon/main.c \
58e4f413 312 lxsettings_daemon_lxsettings_daemon_vala.stamp \
f7162be0
JL
313 $(NULL)
314
e8e40847
AG
315lxsettings_daemon_lxsettings_daemon_commun_SOURCES = \
316 lxsettings-daemon/settings-daemon.c \
317 lxsettings-daemon/xevent.c \
318 lxsettings-daemon/xsettings-common.c \
319 lxsettings-daemon/xsettings-manager.c \
320 lxsettings-daemon/xutils.c \
c8c24ef1
JL
321 $(NULL)
322
e8e40847 323lxsettings_daemon_lxsettings_daemon_VALAFLAGS = \
c8c24ef1
JL
324 --vapidir=$(srcdir)/vapi \
325 --pkg lxsettings-daemon \
326 $(NULL)
327
33b4ef7b 328lxsettings_daemon_lxsettings_daemon_CPPFLAGS = \
c8c24ef1
JL
329 $(GLIB_CFLAGS) \
330 $(GIO_CFLAGS) \
331 $(ADDITIONAL_FLAGS) \
332 -include config.h -w \
333 $(NULL)
334
e8e40847 335lxsettings_daemon_lxsettings_daemon_LDADD = \
c8c24ef1
JL
336 $(GLIB_LIBS) \
337 $(GIO_LIBS) \
338 $(X11_LIBS) \
339 $(NULL)
340
e8e40847 341xdg_autostart_lxsession_xdg_autostart_vala_SOURCES = \
0da3c09b
JL
342 xdg-autostart/main.vala \
343 $(NULL)
344
f7162be0
JL
345CLEANFILES += \
346 xdg-autostart/main.c \
58e4f413 347 xdg_autostart_lxsession_xdg_autostart_vala.stamp \
f7162be0
JL
348 $(NULL)
349
e8e40847
AG
350xdg_autostart_lxsession_xdg_autostart_SOURCES = \
351 $(xdg_autostart_lxsession_xdg_autostart_vala_SOURCES) \
c8c24ef1 352 xdg-autostart/xdg-autostart.c \
c8c24ef1
JL
353 $(NULL)
354
e8e40847 355xdg_autostart_lxsession_xdg_autostart_VALAFLAGS = \
c8c24ef1
JL
356 --vapidir=$(srcdir)/vapi \
357 --pkg xdg-autostart \
358 $(NULL)
359
33b4ef7b 360xdg_autostart_lxsession_xdg_autostart_CPPFLAGS = \
c8c24ef1
JL
361 $(GLIB_CFLAGS) \
362 $(GIO_CFLAGS) \
363 $(ADDITIONAL_FLAGS) \
364 -include config.h -w \
365 $(NULL)
366
e8e40847 367xdg_autostart_lxsession_xdg_autostart_LDADD = \
c8c24ef1
JL
368 $(GLIB_LIBS) \
369 $(GIO_LIBS) \
370 $(X11_LIBS) \
371 $(NULL)
372
e8e40847
AG
373lxsession_lxsession_vala_SOURCES = \
374 lxsession/main.vala \
375 lxsession/app.vala \
376 lxsession/autostart.vala \
377 lxsession/conffiles.vala \
378 lxsession/control.vala \
379 lxsession/dbus-common.vala \
380 lxsession/dbus-gnome-session.vala \
381 lxsession/dbus-lxde-session.vala \
382 lxsession/environement.vala \
560f1f64 383 lxsession/notifications.vala \
e8e40847
AG
384 lxsession/options.vala \
385 lxsession/process.vala \
386 lxsession/settings.vala \
387 lxsession/utils.vala \
388 $(NULL)
389
f7162be0
JL
390CLEANFILES += \
391 lxsession/main.c \
392 lxsession/app.c \
393 lxsession/autostart.c \
394 lxsession/conffiles.c \
395 lxsession/control.c \
396 lxsession/dbus-common.c \
397 lxsession/dbus-gnome-session.c \
398 lxsession/dbus-lxde-session.c \
399 lxsession/environement.c \
d87f09f5 400 lxsession/notifications.c \
f7162be0
JL
401 lxsession/options.c \
402 lxsession/process.c \
403 lxsession/settings.c \
404 lxsession/utils.c \
58e4f413 405 lxsession_lxsession_vala.stamp \
f7162be0
JL
406 $(NULL)
407
e8e40847
AG
408lxsession_lxsession_SOURCES = \
409 $(lxsession_lxsession_vala_SOURCES) \
410 $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
c8c24ef1
JL
411 $(buildinclip_SOURCES) \
412 $(buildinpolkit_SOURCES) \
413 $(NULL)
414
e8e40847 415lxsession_lxsession_VALAFLAGS = \
c8c24ef1
JL
416 --vapidir=$(srcdir)/vapi \
417 --pkg dbus-glib-1 \
418 --pkg gio-2.0 \
419 --pkg posix \
420 --pkg lxsettings-daemon \
421 $(buildinclip_VALAFLAGS) \
422 $(buildinpolkit_VALAFLAGS) \
560f1f64 423 $(lxsession_gtk_lxsession_VALAFLAGS) \
c8c24ef1
JL
424 $(NULL)
425
33b4ef7b 426lxsession_lxsession_CPPFLAGS = \
c8c24ef1
JL
427 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
428 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
429 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
e8e40847 430 -I$(srcdir)/lxsettings-daemon \
c8c24ef1
JL
431 -I$(srcdir)/xdg-autostart \
432 $(GLIB_CFLAGS) \
433 $(GIO_CFLAGS) \
434 $(DBUSGLIB_CFLAGS) \
435 $(ADDITIONAL_FLAGS) \
436 $(buildinclip_CFLAGS) \
437 $(buildinpolkit_CFLAGS) \
560f1f64 438 $(lxsession_gtk_lxsession_CFLAGS) \
c8c24ef1
JL
439 -include config.h -w \
440 $(NULL)
441
e8e40847 442lxsession_lxsession_LDADD = \
c8c24ef1
JL
443 $(GLIB_LIBS) \
444 $(GIO_LIBS) \
445 $(DBUSGLIB_LIBS) \
446 $(X11_LIBS) \
447 $(buildinclip_LDADD) \
448 $(buildinpolkit_LDADD) \
560f1f64 449 $(lxsession_gtk_lxsession_LDADD) \
c8c24ef1
JL
450 $(NULL)
451
560f1f64
JL
452if USE_GTK
453lxsession_lxsession_VALAFLAGS += \
454 --pkg @VALA_GTK_LIBS@ \
455 --pkg appindicator-0.1 \
d87f09f5 456 --pkg libnotify \
560f1f64
JL
457 -D USE_GTK
458
459lxsession_lxsession_CPPFLAGS += \
460 $(GTK_CFLAGS) \
d87f09f5 461 $(LIBNOTIFY_CFLAGS) \
560f1f64
JL
462 $(INDICATORS_CFLAGS)
463
464lxsession_lxsession_LDADD += \
465 $(GTK_LIBS) \
d87f09f5 466 $(LIBNOTIFY_LIBS) \
560f1f64
JL
467 $(INDICATORS_LIBS)
468endif
469
c8c24ef1 470EXTRA_DIST += \
f0288ebe 471 autogen.sh \
e8e40847
AG
472 lxclipboard/clipboard.h \
473 lxpolkit/lxpolkit.h \
474 lxpolkit/lxpolkit-listener.h \
475 lxsettings-daemon/settings-daemon.h \
476 lxsettings-daemon/xevent.h \
477 lxsettings-daemon/xsettings-common.h \
478 lxsettings-daemon/xsettings-manager.h \
479 lxsettings-daemon/xutils.h \
480 lxsession-edit/lxsession-edit-common.h \
481 lxsession-logout/lxsession-logout-dbus-interface.h \
c8c24ef1
JL
482 xdg-autostart/xdg-autostart.h \
483 $(NULL)