vcpkg:允许在Cargo构建过程中通过vcpkg管理系统查找和使用C/C++库。 built:收集当前构建的元数据如版本号、构建时间,可以嵌入到Rust项目中。 cargo-platform:提供工具和库用于解析和使用Cargo关于目标平台的specifications。 mc-sgx-sdk-tools:提供辅助工具用于构建运行在Intel SGX安全隔离区的Rust应用。 cargo:Rust的官方...
install development libraries withvcpkg. Instructions to generate a static binary on Linux and other operating systems using vcpkg arehere macOS Homebrew On macOS, it's a good idea to install these viahomebrew. brew install sdl2 In recent versions of Homebrew, the installed libraries are usually ...
use the featureuse-pkgconfigso that rustc knows where to look for your SDL2 libraries and its dependencies for static linking. This is required because there is no built-in way to find the resources needed to link statically SDL2 from your system install development libraries withvcpkg. Instru...
"vcpkg", ] [[package]] name = "opencv-binding-generator" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b3db96e062ec0454cda1d05fb1404864a7566589aa78a0b17311805063ad704" dependencies = [ "clang", "clang-sys", "dunc...
vcpkg] dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"] git = "https://github.com/microsoft/vcpkg" rev = "a0518036077baa4" rev = "a267ab118c09f56f3dae96c9a4b3410820ad2f0b" [package.metadata.vcpkg.target] x86_64-pc-...
[macos-latest, ubuntu-latest, windows-latest] fail-fast: false steps: - uses: actions/checkout@v2 - name: Install cargo-vcpkg run: cargo install cargo-vcpkg - name: Install dependencies run: cargo vcpkg -v build - name: Build SDL2 shell: bash env: CI_BUILD_FEATURES: "use-v...
-name:Install cargo-vcpkg run:cargo install cargo-vcpkg -name:Install dependencies run:cargo vcpkg build run:cargo vcpkg-vbuild -name:Build SDL2 shell:bash env: Expand Down 5 changes: 3 additions & 2 deletions5Cargo.toml Original file line numberDiff line numberDiff line change ...
(feature = "use-vcpkg") == false) { println!("cargo:rustc-link-lib=static=SDL2main{}", debug_postfix); println!("cargo:rustc-link-lib=static=SDL2{}", debug_postfix); println!("cargo:rustc-link-lib=static=SDL2main"); println!("cargo:rustc-link-lib=static=SDL2");...
build an sdl3 static library yourself and copy it to your toolchain'slibdirectory; or also enable thebundledfeature, which will build a static library for you; or use a static sdl3 library from vcpkg as described below. Windows (MinGW) ...
build an SDL2 static library yourself and copy it to your toolchain'slibdirectory; or also enable thebundledfeature, which will build a static library for you; or use a static SDL2 library from vcpkg as described below. Windows (MinGW) ...