Skip to content

Commit 38ff047

Browse files
claudefumitoh
authored andcommitted
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
1 parent bd130ee commit 38ff047

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/Build-QuantLibDLL.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,11 @@ if ($PackageZip) {
616616
}
617617
}
618618

619-
# Copy Boost headers
620-
Copy-Item -Recurse "$BoostIncludeDir" "$StagingDir\boost_$BoostVersionU"
619+
# Copy only the boost/ headers subdirectory (not libs/, tools/, doc/, etc.
620+
# from the full Boost source distribution)
621+
$BoostStagingDir = "$StagingDir\boost_$BoostVersionU"
622+
New-Item -ItemType Directory -Path $BoostStagingDir -Force | Out-Null
623+
Copy-Item -Recurse "$BoostIncludeDir\boost" "$BoostStagingDir\boost"
621624

622625
# Copy license files
623626
$ScriptRoot = Split-Path -Parent $PSScriptRoot # repo root

0 commit comments

Comments
 (0)