From a1c4b9bb0cc82959abaf2e17b579adebb0b183c0 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Fri, 26 Oct 2018 23:20:18 -0700 Subject: [PATCH] meson: make extra output directory configurable --- meson.build | 2 +- meson_options.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 07f6fce0..da159f4a 100644 --- a/meson.build +++ b/meson.build @@ -109,7 +109,7 @@ executable( install_data( './resources/config', './resources/style.css', - install_dir: '/etc/xdg/waybar', + install_dir: join_paths(get_option('out'), 'etc/xdg/waybar') ) clangtidy = find_program('clang-tidy', required: false) diff --git a/meson_options.txt b/meson_options.txt index 754dcab5..67fa5472 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,4 @@ option('libnl', type: 'feature', value: 'auto', description: 'Enable libnl support for network related features') option('pulseaudio', type: 'feature', value: 'auto', description: 'Enable support for pulseaudio') -option('dbusmenu-gtk', type: 'feature', value: 'auto', description: 'Enable support for tray') \ No newline at end of file +option('dbusmenu-gtk', type: 'feature', value: 'auto', description: 'Enable support for tray') +option('out', type: 'string', value : '/', description: 'output prefix directory')