From e1817426474ef55736c973135b09411c7cbbd122 Mon Sep 17 00:00:00 2001 From: René Meusel Date: Wed, 9 Oct 2019 15:28:04 +0200 Subject: dynamically decide on required install targets --- configure.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 1fa19688a..b9241f39c 100755 --- a/configure.py +++ b/configure.py @@ -1964,6 +1964,13 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, yield 'bogo_shim' yield 'docs' + def install_targets(options): + yield 'libs' + if 'cli' in options.build_targets: + yield 'cli' + if options.with_documentation: + yield 'docs' + def absolute_install_dir(p): if os.path.isabs(p): return p @@ -1986,6 +1993,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, 'macos_so_current_ver': '%s.%s.%s' % (Version.packed(), Version.so_rev(), Version.patch()), 'all_targets': ' '.join(all_targets(options)), + 'install_targets': ' '.join(install_targets(options)), 'base_dir': source_paths.base_dir, 'src_dir': source_paths.src_dir, -- cgit v1.2.3