diff options
| author | Nicolas Braud-Santoni <nicolas@braud-santoni.eu> | 2018-05-01 16:49:15 +0200 |
|---|---|---|
| committer | Nicolas Braud-Santoni <nicolas@braud-santoni.eu> | 2018-05-05 17:22:46 +0200 |
| commit | 1670b46bf6e56d37e69ab0fa32c6799e83397020 (patch) | |
| tree | 28f4420e4658765f8f6693ff9bda32468962f7d2 /meson.build | |
| parent | 7709340727fe2834f87b43aeeaef878694d5acd6 (diff) | |
Make the LIBDIR path configurable
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build index bf266e5f..57dbea02 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,13 @@ is_freebsd = host_machine.system().startswith('freebsd') datadir = get_option('datadir') sysconfdir = get_option('sysconfdir') prefix = get_option('prefix') +instlibdir = get_option('instlibdir') + +if instlibdir == '' + instlibdir = join_paths(prefix, 'lib/sway') +endif +add_project_arguments('-DINSTLIBDIR="/@0@"'.format(instlibdir), language : 'c') + jsonc = dependency('json-c', version: '>=0.13') pcre = dependency('libpcre') |
