diff options
author | 2018-05-05 20:09:34 +0100 | |
---|---|---|
committer | 2018-05-05 20:09:34 +0100 | |
commit | c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de (patch) | |
tree | 80579da473fb095b61a4693a1ab009d2fb6ea595 /meson.build | |
parent | Merge pull request #1924 from nbraud/spelling (diff) | |
parent | Merge branch 'master' into usr-lib (diff) | |
download | sway-c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de.tar.gz sway-c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de.tar.zst sway-c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de.zip |
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') | |||
19 | datadir = get_option('datadir') | 19 | datadir = get_option('datadir') |
20 | sysconfdir = get_option('sysconfdir') | 20 | sysconfdir = get_option('sysconfdir') |
21 | prefix = get_option('prefix') | 21 | prefix = get_option('prefix') |
22 | libexecdir = get_option('libexecdir') | ||
23 | |||
24 | if libexecdir == '' | ||
25 | libexecdir = 'lib' | ||
26 | endif | ||
27 | sway_libexecdir = join_paths(prefix, libexecdir, 'sway') | ||
28 | add_project_arguments('-DSWAY_LIBEXECDIR="/@0@"'.format(sway_libexecdir), language : 'c') | ||
29 | |||
22 | 30 | ||
23 | jsonc = dependency('json-c', version: '>=0.13') | 31 | jsonc = dependency('json-c', version: '>=0.13') |
24 | pcre = dependency('libpcre') | 32 | pcre = dependency('libpcre') |
@@ -113,6 +121,7 @@ config = configuration_data() | |||
113 | config.set('sysconfdir', join_paths(prefix, sysconfdir)) | 121 | config.set('sysconfdir', join_paths(prefix, sysconfdir)) |
114 | config.set('datadir', join_paths(prefix, datadir)) | 122 | config.set('datadir', join_paths(prefix, datadir)) |
115 | config.set('prefix', prefix) | 123 | config.set('prefix', prefix) |
124 | config.set('sway_libexecdir', sway_libexecdir) | ||
116 | 125 | ||
117 | configure_file( | 126 | configure_file( |
118 | configuration: config, | 127 | configuration: config, |