diff options
| author | emersion <contact@emersion.fr> | 2018-05-05 20:09:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-05 20:09:34 +0100 |
| commit | c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de (patch) | |
| tree | 80579da473fb095b61a4693a1ab009d2fb6ea595 /meson.build | |
| parent | 967b14c2279b6a09830912b09d54668119045967 (diff) | |
| parent | 786727d8bbd00f44f1b29368a3579cbe6899ba16 (diff) | |
Merge pull request #1881 from nbraud/usr-lib
Install swaybar and swaybg under /usr/lib/sway
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build index bf266e5f..e40dc33c 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,14 @@ is_freebsd = host_machine.system().startswith('freebsd') datadir = get_option('datadir') sysconfdir = get_option('sysconfdir') prefix = get_option('prefix') +libexecdir = get_option('libexecdir') + +if libexecdir == '' + libexecdir = 'lib' +endif +sway_libexecdir = join_paths(prefix, libexecdir, 'sway') +add_project_arguments('-DSWAY_LIBEXECDIR="/@0@"'.format(sway_libexecdir), language : 'c') + jsonc = dependency('json-c', version: '>=0.13') pcre = dependency('libpcre') @@ -113,6 +121,7 @@ config = configuration_data() config.set('sysconfdir', join_paths(prefix, sysconfdir)) config.set('datadir', join_paths(prefix, datadir)) config.set('prefix', prefix) +config.set('sway_libexecdir', sway_libexecdir) configure_file( configuration: config, |
