summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-09-13 12:00:56 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-09-13 11:52:41 -0400
commit0921b8859a1a0175f311250519351538930792df (patch)
treeabcd5e05f3dc881f17a8fa118ac9d9dfbab12420 /data
parentd2a7a1ece76a9aa8346648d99db2d693a676792d (diff)
install session files conditionally based on the available session types
Diffstat (limited to 'data')
-rw-r--r--data/session/Makefile.mk6
-rw-r--r--data/session/meson.build12
2 files changed, 14 insertions, 4 deletions
diff --git a/data/session/Makefile.mk b/data/session/Makefile.mk
index 6cd7d06f3..8e6b23b8d 100644
--- a/data/session/Makefile.mk
+++ b/data/session/Makefile.mk
@@ -1,5 +1,11 @@
1if ! HAVE_WAYLAND_ONLY
1xsessionfilesdir = $(datadir)/xsessions 2xsessionfilesdir = $(datadir)/xsessions
2xsessionfiles_DATA = data/session/enlightenment.desktop 3xsessionfiles_DATA = data/session/enlightenment.desktop
4endif
5
6if HAVE_WAYLAND
3wlsessionfilesdir = $(datadir)/wayland-sessions 7wlsessionfilesdir = $(datadir)/wayland-sessions
4wlsessionfiles_DATA = data/session/enlightenment.desktop 8wlsessionfiles_DATA = data/session/enlightenment.desktop
9endif
10
5EXTRA_DIST += data/session/enlightenment.desktop.in 11EXTRA_DIST += data/session/enlightenment.desktop.in
diff --git a/data/session/meson.build b/data/session/meson.build
index cf0af91b5..fbe1849cf 100644
--- a/data/session/meson.build
+++ b/data/session/meson.build
@@ -5,8 +5,12 @@ e_desktop = configure_file(input : 'enlightenment.desktop.in',
5 configuration: desktop_config 5 configuration: desktop_config
6 ) 6 )
7 7
8install_data(e_desktop, 8if config_h.has('HAVE_WAYLAND_ONLY') == false
9 install_dir : join_paths(dir_data, 'xsessions')) 9 install_data(e_desktop,
10 install_dir : join_paths(dir_data, 'xsessions'))
11endif
10 12
11install_data(e_desktop, 13if config_h.has('HAVE_WAYLAND') == false
12 install_dir : join_paths(dir_data, 'wayland-sessions')) 14 install_data(e_desktop,
15 install_dir : join_paths(dir_data, 'wayland-sessions'))
16endif