aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2019-10-09 15:28:24 +0200
committerRene Meusel <[email protected]>2019-10-09 22:33:44 +0200
commit34f6e5266b3713965d8a2bdbada5fae18d3833f5 (patch)
tree767cc3e96f231e34bb6d601d9a750a93c68cad40 /src
parente1817426474ef55736c973135b09411c7cbbd122 (diff)
install CLI only when it was built
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/install.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scripts/install.py b/src/scripts/install.py
index 68256423f..4cbce5a8e 100755
--- a/src/scripts/install.py
+++ b/src/scripts/install.py
@@ -154,6 +154,7 @@ def main(args):
target_os = cfg['os']
build_shared_lib = bool(cfg['build_shared_lib'])
build_static_lib = bool(cfg['build_static_lib'])
+ build_cli = bool(cfg['build_cli_exe'])
out_dir = cfg['out_dir']
bin_dir = options.bindir
@@ -208,14 +209,15 @@ def main(args):
finally:
os.chdir(prev_cwd)
- copy_executable(cfg['cli_exe'], prepend_destdir(os.path.join(bin_dir, cfg['cli_exe_name'])))
+ if build_cli:
+ copy_executable(cfg['cli_exe'], prepend_destdir(os.path.join(bin_dir, cfg['cli_exe_name'])))
# On MacOS, if we are using shared libraries and we install, we should fix
# up the library name, otherwise the botan command won't work; ironically
# we only need to do this because we previously changed it from a setting
# that would be correct for installation to one that lets us run it from
# the build directory
- if target_os == 'macos' and build_shared_lib:
+ if target_os == 'macos' and build_shared_lib and build_cli:
soname_abi = cfg['soname_abi']
subprocess.check_call(['install_name_tool',