# (c) 2025 by Stephan Menzel # Licensed under the Apache License, Version 2.0. # See attached file LICENSE for full details from pathlib import Path from build_functions.build_utils import print_banner from common.azure import write_package_version_batch from common.git_helpers import clone_git_tag from common.headers_only import headers_install from package.package_info import get_package_info def build_tclap(prefix: Path | str, sbom: dict): print_banner("Building Tclap") package_info = get_package_info("tclap") package_info.add_to_sbom(sbom) # This is what happens when you don't include boost. You end up with tons of small # and eventually unmaintained libraries for every little thing even though # Boost.ProgramOptions exists. # This doesn't seem to be needing build, judging by its Conanfile tclap_dir = clone_git_tag(package_info, recursive=True) install_dir = headers_install(tclap_dir, package_info, subdir=Path("include")) write_package_version_batch(package_info.version) return install_dir