From b0a4a85db4521a22af6d87222262562942b2340f Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Wed, 16 Jan 2019 17:58:42 +0700 Subject: [PATCH] meson: Add running-from-build-tree option Signed-off-by: Arnaud Rebillout --- meson.build | 5 +++++ meson_options.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/meson.build b/meson.build index 4b3b3e8c5..c50382c7e 100644 --- a/meson.build +++ b/meson.build @@ -318,6 +318,10 @@ if get_option('legacy-database-entry-format') cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1) 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')) if alsa_dep.found() cdata.set('HAVE_ALSA', 1) @@ -618,6 +622,7 @@ summary = [ '', 'Database: @0@'.format(get_option('database')), '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 Group: @0@'.format(cdata.get_unquoted('PA_SYSTEM_GROUP')), 'Access Group: @0@'.format(cdata.get_unquoted('PA_ACCESS_GROUP')), diff --git a/meson_options.txt b/meson_options.txt index 5e79ffb9a..82c8ca32e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,6 +24,9 @@ option('database', option('legacy-database-entry-format', type : 'boolean', 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