18 lines
881 B
TOML
18 lines
881 B
TOML
[env]
|
|
# audiopus_sys builds the bundled libopus with CMake. Its CMakeLists.txt declares a minimum
|
|
# version below 3.5, which CMake >= 4.0 refuses unless this policy floor is given.
|
|
CMAKE_POLICY_VERSION_MINIMUM = "3.5"
|
|
# Always build and statically link the bundled libopus (also on Linux, where audiopus_sys would
|
|
# otherwise link a system libopus found via pkg-config dynamically). Keeps release binaries
|
|
# self-contained and the shipped libopus version known for the notices file.
|
|
LIBOPUS_STATIC = "1"
|
|
LIBOPUS_NO_PKG = "1"
|
|
|
|
# Windows x64: link the MSVC C runtime statically so the binary imports only DLLs that ship
|
|
# with Windows 10+ (no VCRUNTIME140.dll). cc/cmake-rs see `crt-static` and build libopus with /MT.
|
|
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|