diff options
author | René Meusel <[email protected]> | 2019-10-09 15:28:04 +0200 |
---|---|---|
committer | Rene Meusel <[email protected]> | 2019-10-09 22:33:43 +0200 |
commit | e1817426474ef55736c973135b09411c7cbbd122 (patch) | |
tree | c575849a2000b4657859dc438a6f14dcf96fc4bf /configure.py | |
parent | f789d82bae4b00b9a6d1c840fe16a2367e745a6d (diff) |
dynamically decide on required install targets
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 8 |
1 files changed, 8 insertions, 0 deletions
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, |