Merge branch '16-libraries-as-features' into 'master'
build: Add -Dui option to Meson Closes #16 See merge request pwithnall/malcontent!38
This commit is contained in:
commit
5054ba2bfb
17
meson.build
17
meson.build
|
@ -126,10 +126,21 @@ test_env = [
|
||||||
]
|
]
|
||||||
|
|
||||||
subdir('accounts-service')
|
subdir('accounts-service')
|
||||||
subdir('libmalcontent')
|
if not get_option('use_system_libmalcontent')
|
||||||
subdir('libmalcontent-ui')
|
subdir('libmalcontent')
|
||||||
|
else
|
||||||
|
libmalcontent_api_version = '0'
|
||||||
|
libmalcontent_dep = dependency('malcontent-' + libmalcontent_api_version, version: meson.project_version())
|
||||||
|
libmalcontent_gir = ['Malcontent-' + libmalcontent_api_version,
|
||||||
|
'Malcontent-' + libmalcontent_api_version + '.typelib']
|
||||||
|
endif
|
||||||
|
if get_option('ui').enabled()
|
||||||
|
subdir('libmalcontent-ui')
|
||||||
|
endif
|
||||||
subdir('malcontent-client')
|
subdir('malcontent-client')
|
||||||
subdir('malcontent-control')
|
if get_option('ui').enabled()
|
||||||
|
subdir('malcontent-control')
|
||||||
|
endif
|
||||||
subdir('pam')
|
subdir('pam')
|
||||||
subdir('po')
|
subdir('po')
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,15 @@ option(
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'directory for PAM modules'
|
description: 'directory for PAM modules'
|
||||||
)
|
)
|
||||||
|
option(
|
||||||
|
'ui',
|
||||||
|
type: 'feature',
|
||||||
|
value: 'enabled',
|
||||||
|
description: 'enable UI library'
|
||||||
|
)
|
||||||
|
option(
|
||||||
|
'use_system_libmalcontent',
|
||||||
|
type: 'boolean',
|
||||||
|
value: false,
|
||||||
|
description: 'use installed libmalcontent rather than building it; used in distros to break a dependency cycle'
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue