diff options
author | René Meusel <[email protected]> | 2019-10-09 15:28:24 +0200 |
---|---|---|
committer | Rene Meusel <[email protected]> | 2019-10-09 22:33:44 +0200 |
commit | 34f6e5266b3713965d8a2bdbada5fae18d3833f5 (patch) | |
tree | 767cc3e96f231e34bb6d601d9a750a93c68cad40 /src | |
parent | e1817426474ef55736c973135b09411c7cbbd122 (diff) |
install CLI only when it was built
Diffstat (limited to 'src')
-rwxr-xr-x | src/scripts/install.py | 6 |
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', |