mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Add running-from-build-tree option
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
0e1cfdc523
commit
b0a4a85db4
2 changed files with 8 additions and 0 deletions
|
|
@ -318,6 +318,10 @@ if get_option('legacy-database-entry-format')
|
||||||
cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
|
cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('running-from-build-tree')
|
||||||
|
cdata.set('HAVE_RUNNING_FROM_BUILD_TREE', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
alsa_dep = dependency('alsa', version : '>= 1.0.24', required : get_option('alsa'))
|
alsa_dep = dependency('alsa', version : '>= 1.0.24', required : get_option('alsa'))
|
||||||
if alsa_dep.found()
|
if alsa_dep.found()
|
||||||
cdata.set('HAVE_ALSA', 1)
|
cdata.set('HAVE_ALSA', 1)
|
||||||
|
|
@ -618,6 +622,7 @@ summary = [
|
||||||
'',
|
'',
|
||||||
'Database: @0@'.format(get_option('database')),
|
'Database: @0@'.format(get_option('database')),
|
||||||
'Legacy Database Entry Support: @0@'.format(get_option('legacy-database-entry-format')),
|
'Legacy Database Entry Support: @0@'.format(get_option('legacy-database-entry-format')),
|
||||||
|
'Running from build tree: @0@'.format(get_option('running-from-build-tree')),
|
||||||
'System User: @0@'.format(cdata.get_unquoted('PA_SYSTEM_USER')),
|
'System User: @0@'.format(cdata.get_unquoted('PA_SYSTEM_USER')),
|
||||||
'System Group: @0@'.format(cdata.get_unquoted('PA_SYSTEM_GROUP')),
|
'System Group: @0@'.format(cdata.get_unquoted('PA_SYSTEM_GROUP')),
|
||||||
'Access Group: @0@'.format(cdata.get_unquoted('PA_ACCESS_GROUP')),
|
'Access Group: @0@'.format(cdata.get_unquoted('PA_ACCESS_GROUP')),
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ option('database',
|
||||||
option('legacy-database-entry-format',
|
option('legacy-database-entry-format',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
description : 'Try to load legacy (< 1.0) database files (card, device and volume restore)')
|
description : 'Try to load legacy (< 1.0) database files (card, device and volume restore)')
|
||||||
|
option('running-from-build-tree',
|
||||||
|
type : 'boolean',
|
||||||
|
description : 'Enable running from build tree')
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue