mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-23 04:46:29 +00:00
b3c42bb9d7
Hook rutabaga_gfx/vulkano into a new top-level feature of the same name, so that it can be detected for conditional compilation of gpu device creation details. Also moves the `vulkano` dependency out of windows-specific list and into generic list for all platforms. (Note: the existing rutabaga_gfx/Cargo.toml hacks must still be locally applied and rust-toolchain channel must be manually set to 1.70 or greater to successfully build with --feature=vulkano) BUG=b:246334944 BUG=b:244591751 Test=tools/dev_container tools/presubmit Change-Id: Ic1938f3d8599de1414539abf5a4b57a9fe1764dd Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5264226 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Ryan Neph <ryanneph@google.com>
40 lines
1.2 KiB
TOML
40 lines
1.2 KiB
TOML
[package]
|
|
name = "rutabaga_gfx"
|
|
version = "0.1.2"
|
|
authors = ["The ChromiumOS Authors + Android Open Source Project"]
|
|
edition = "2021"
|
|
description = "[highly unstable] Handling virtio-gpu protocols"
|
|
license-file = "LICENSE"
|
|
|
|
[features]
|
|
gfxstream = []
|
|
gfxstream_stub = []
|
|
virgl_renderer = []
|
|
minigbm = []
|
|
# To try out Vulkano, delete the following line and uncomment the line in "dependencies". Vulkano
|
|
# features are just a prototype and not integrated yet into the ChromeOS build system.
|
|
vulkano = []
|
|
x = []
|
|
|
|
[dependencies]
|
|
cfg-if = "1.0.0"
|
|
libc = "0.2.116"
|
|
remain = "0.2"
|
|
thiserror = "1.0.23"
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
|
|
|
log = "0.4"
|
|
|
|
# To build latest Vulkano, change version to git = "https://github.com/vulkano-rs/vulkano.git"
|
|
# vulkano = { version = "0.31.0", optional = true }
|
|
|
|
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
|
|
nix = { version = "0.27.1", features = ["event", "feature", "fs", "mman", "socket", "uio", "ioctl"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = {version = "0.3", features = ["winnt", "handleapi", "processthreadsapi", "winbase"]}
|
|
|
|
[build-dependencies]
|
|
pkg-config = "0.3"
|
|
anyhow = "1.0.57"
|