1[package] 2name = "gpu_display" 3version = "0.1.0" 4authors = ["The ChromiumOS Authors"] 5edition = "2021" 6 7[features] 8x = [] 9kiwi = [] 10vulkan_display = [ "vulkano", "ash", "rand", "protos", "protobuf", "euclid", "smallvec"] 11# Enables the GPU display backend for Android. The backend uses Android surface as the backing 12# store. 13android_display = [] 14# Stub implementation of the Android display backend. This is only used for building and testing the 15# Android display backend on a non-Android target 16android_display_stub = [] 17 18[dependencies] 19anyhow = "*" 20libc = "*" 21base = { path = "../base" } 22linux_input_sys = { path = "../linux_input_sys" } 23remain = "*" 24thiserror = "*" 25cfg-if = "*" 26serde = { version = "1", features = [ "derive" ] } 27vm_control = { path = "../vm_control", features = ["gpu"] } 28zerocopy = { version = "0.7", features = ["derive"] } 29vulkano = { version = "0.31.1", optional = true } 30ash = { version = "0.37.0", optional = true } 31rand = { version = "0.8.5", optional = true } 32protos = { path = "../protos", optional = true } 33protobuf = { version = "3.2", optional = true } 34euclid = { version = "*", optional = true } 35smallvec = { version = "*", optional = true } 36sync = { path = "../common/sync" } 37 38[target.'cfg(windows)'.dependencies] 39cros_tracing = { path = "../cros_tracing" } 40metrics = { path = "../metrics" } 41num-traits = "*" 42winapi = "*" 43win_util = { path = "../win_util" } 44smallvec = "*" 45sync = { path = "../common/sync" } 46euclid = "*" 47 48[build-dependencies] 49cc = "1.0.25" 50pkg-config = "0.3.11" 51cfg-if = "1.0.0" 52which = "4" 53 54[[example]] 55name = "simple" 56path = "examples/simple.rs" 57 58[[example]] 59name = "simple_open" 60path = "examples/simple_open.rs" 61required-features = ["x"] 62