Make the LIBDIR path configurable

This commit is contained in:
Nicolas Braud-Santoni 2018-05-01 16:49:15 +02:00
parent 7709340727
commit 1670b46bf6
5 changed files with 12 additions and 4 deletions

View file

@ -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')