Skip to content
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/build-release-dll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
set(VCPKG_TARGET_ARCHITECTURE $arch)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)

if(PORT STREQUAL "curl")
set(VCPKG_LIBRARY_LINKAGE dynamic)
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
$target_dir = "$staging_dir\$arch\Release"
New-Item -ItemType Directory -Force -Path $target_dir | Out-Null

# Copy all DLLs (libcurl.dll + runtime dependencies like zlib1.dll) into the Release folder
# Copy all DLLs (only libcurl.dll since we are building standalone) into the Release folder
if (Test-Path "$vcpkg_dir\installed\$vcpkg_triplet\bin\*.dll") {
Copy-Item -Path "$vcpkg_dir\installed\$vcpkg_triplet\bin\*.dll" -Destination "$target_dir\" -Force
}
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Automated builds of **libcurl** using vcpkg.

Compiled as completely standalone Dynamic Libraries (.dll) with the Static C Runtime (`/MT`) with Control Flow Guard enabled.
Compiled as completely standalone dynamic libraries (.dll) using the Static C Runtime (/MT) with Control Flow Guard (CFG) enabled.

Releases contain `libcurl.dll` formatted in a `$arch\Release\` directory structure.

Expand All @@ -9,6 +9,6 @@ To obtain the latest release in a build environment:
```
cd path\to\libcurl
del libcurl.zip
curl -LJO https://github.com/cjee21/libcurl-Windows/releases/latest/download/libcurl.zip
curl -LJO https://github.com/MediaArea/libcurl-Windows/releases/latest/download/libcurl.zip
tar -xf libcurl.zip
```