install session files conditionally based on the available session types
This commit is contained in:
parent
d2a7a1ece7
commit
0921b8859a
|
@ -1,5 +1,11 @@
|
|||
if ! HAVE_WAYLAND_ONLY
|
||||
xsessionfilesdir = $(datadir)/xsessions
|
||||
xsessionfiles_DATA = data/session/enlightenment.desktop
|
||||
endif
|
||||
|
||||
if HAVE_WAYLAND
|
||||
wlsessionfilesdir = $(datadir)/wayland-sessions
|
||||
wlsessionfiles_DATA = data/session/enlightenment.desktop
|
||||
endif
|
||||
|
||||
EXTRA_DIST += data/session/enlightenment.desktop.in
|
||||
|
|
|
@ -5,8 +5,12 @@ e_desktop = configure_file(input : 'enlightenment.desktop.in',
|
|||
configuration: desktop_config
|
||||
)
|
||||
|
||||
if config_h.has('HAVE_WAYLAND_ONLY') == false
|
||||
install_data(e_desktop,
|
||||
install_dir : join_paths(dir_data, 'xsessions'))
|
||||
endif
|
||||
|
||||
if config_h.has('HAVE_WAYLAND') == false
|
||||
install_data(e_desktop,
|
||||
install_dir : join_paths(dir_data, 'wayland-sessions'))
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue