Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Requirements: Visual Studio 2022 (C++ workload), CMake, 7-Zip.
.\scripts\Build-QuantLibDLL.ps1 -PackageZip
```

By default the working directory is `build/` and the install directory is `install/` inside the repo, so you can inspect the patched QuantLib sources at `build\QuantLib-<version>\` after the build.

With custom versions and install location:

```powershell
Expand Down
8 changes: 5 additions & 3 deletions scripts/Build-QuantLibDLL.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@

.PARAMETER InstallDir
Where to install QuantLib (cmake --install prefix).
Default: install/ in the repository root.

.PARAMETER TempDir
Temporary directory for source downloads and build artifacts.
Working directory for source downloads and build artifacts.
Default: build/ in the repository root so you can inspect patched sources.

.PARAMETER Jobs
Number of parallel build jobs. 0 = auto-detect (default).
Expand All @@ -50,8 +52,8 @@
param(
[string]$QuantLibVersion = "1.41",
[string]$BoostVersion = "1.87.0",
[string]$InstallDir = "C:\quantlib-build\install",
[string]$TempDir = "$env:TEMP\quantlib-dll-build",
[string]$InstallDir = (Join-Path (Split-Path $PSScriptRoot) "install"),
[string]$TempDir = (Join-Path (Split-Path $PSScriptRoot) "build"),
[int]$Jobs = 0,
[switch]$BuildTests,
[switch]$PackageZip,
Expand Down
Loading