mirror of
https://github.com/projectatomic/bubblewrap.git
synced 2026-02-05 15:45:22 +01:00
Merge pull request #493 from smcv/bwrapdir
meson: Allow installation directory to be set explicitly
This commit is contained in:
12
meson.build
12
meson.build
@@ -101,12 +101,14 @@ configure_file(
|
||||
configuration : cdata,
|
||||
)
|
||||
|
||||
if meson.is_subproject()
|
||||
bwrapdir = get_option('libexecdir')
|
||||
if meson.is_subproject() and get_option('program_prefix') == ''
|
||||
error('program_prefix option must be set when bwrap is a subproject')
|
||||
endif
|
||||
|
||||
if get_option('program_prefix') == ''
|
||||
error('program_prefix option must be set when bwrap is a subproject')
|
||||
endif
|
||||
if get_option('bwrapdir') != ''
|
||||
bwrapdir = get_option('bwrapdir')
|
||||
elif meson.is_subproject()
|
||||
bwrapdir = get_option('libexecdir')
|
||||
else
|
||||
bwrapdir = get_option('bindir')
|
||||
endif
|
||||
|
||||
@@ -10,6 +10,11 @@ option(
|
||||
description : 'install bash completion script in this directory',
|
||||
value : '',
|
||||
)
|
||||
option(
|
||||
'bwrapdir',
|
||||
type : 'string',
|
||||
description : 'install bwrap in this directory [default: bindir, or libexecdir in subprojects]',
|
||||
)
|
||||
option(
|
||||
'man',
|
||||
type : 'feature',
|
||||
|
||||
Reference in New Issue
Block a user