-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Windows libsndfile dynamically, but dependencies statically
this used to work, but I broke it on accident. This commit also adds support for arm64 builds, which were not previously available.
- Loading branch information
Bastian Bechtold
committed
Dec 30, 2024
1 parent
a9a4f7f
commit 1ac5f94
Showing
8 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Custom triplets for Vcpkg. | ||
VCPKG allows either, static builds, or dynamic builds. However, we need to | ||
build libsndfile as a dynamic library, but its dependencies should be | ||
statically linked. | ||
|
||
https://vcpkg.readthedocs.io/en/latest/users/triplets/ | ||
https://vcpkg.readthedocs.io/en/latest/examples/overlay-triplets-linux-dynamic/ | ||
These custom triplets accomplish this. They are a copy of the official | ||
{arm64,x64,x86}-windows triplets at https://github.com/microsoft/vcpkg/tree/master/triplets, | ||
but with all libraries except libsndfile configured for static linkage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE arm64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
|
||
if (PORT MATCHES "libsndfile") | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters