aboutsummaryrefslogtreecommitdiffstats
path: root/data/desktop/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'data/desktop/meson.build')
-rw-r--r--data/desktop/meson.build13
1 files changed, 7 insertions, 6 deletions
diff --git a/data/desktop/meson.build b/data/desktop/meson.build
index 80289ac..fce7eef 100644
--- a/data/desktop/meson.build
+++ b/data/desktop/meson.build
@@ -12,9 +12,10 @@ if host_os == 'linux'
host_os = 'linux-gnu'
endif
endif
-dep_e = dependency('enlightenment')
-release = dep_e.get_pkgconfig_variable('release')
-module_arch = '@0@-@1@-@2@'.format(host_os, host_machine.cpu_family(), release)
-dir_gadgets = join_paths([dir_lib, 'enlightenment/gadgets', module_arch])
-install_data('slideshow.desktop',
- install_dir: join_paths([dir_gadgets, 'slideshow']))
+if (build_gadget == true)
+ release = depe.get_pkgconfig_variable('release')
+ module_arch = '@0@-@1@-@2@'.format(host_os, host_machine.cpu_family(), release)
+ dir_gadgets = join_paths([dir_lib, 'enlightenment/gadgets', module_arch])
+ install_data('slideshow.desktop',
+ install_dir: join_paths([dir_gadgets, 'slideshow']))
+endif