From 1895fbf217b676103a1dc37fb1d79ce0d2a88e16 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Feb 2026 13:47:02 +0000 Subject: [PATCH] Package only Boost headers, not the full source distribution The packaging step was copying the entire extracted Boost source tree (libs/, tools/, doc/, status/, etc.) into the distribution zip. Only the boost/ headers subdirectory is needed for compiling against QuantLib. This eliminates the majority of files from the downloadable. https://claude.ai/code/session_01BHkqy2bRJgJdgTNNeHNVHt --- scripts/Build-QuantLibDLL.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/Build-QuantLibDLL.ps1 b/scripts/Build-QuantLibDLL.ps1 index dba81e7..574cf51 100644 --- a/scripts/Build-QuantLibDLL.ps1 +++ b/scripts/Build-QuantLibDLL.ps1 @@ -616,8 +616,11 @@ if ($PackageZip) { } } - # Copy Boost headers - Copy-Item -Recurse "$BoostIncludeDir" "$StagingDir\boost_$BoostVersionU" + # Copy only the boost/ headers subdirectory (not libs/, tools/, doc/, etc. + # from the full Boost source distribution) + $BoostStagingDir = "$StagingDir\boost_$BoostVersionU" + New-Item -ItemType Directory -Path $BoostStagingDir -Force | Out-Null + Copy-Item -Recurse "$BoostIncludeDir\boost" "$BoostStagingDir\boost" # Copy license files $ScriptRoot = Split-Path -Parent $PSScriptRoot # repo root