diff --git a/meson.build b/meson.build index 43493a7f..54a2c4c0 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')