aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2019-10-09 15:28:04 +0200
committerRene Meusel <[email protected]>2019-10-09 22:33:43 +0200
commite1817426474ef55736c973135b09411c7cbbd122 (patch)
treec575849a2000b4657859dc438a6f14dcf96fc4bf /configure.py
parentf789d82bae4b00b9a6d1c840fe16a2367e745a6d (diff)
dynamically decide on required install targets
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py8
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,