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 = [] 17gfxstream = [] 18 19[dependencies] 20anyhow = "1" 21libc = "0.2" 22base = { path = "../base" } 23linux_input_sys = { path = "../linux_input_sys" } 24remain = "0.2" 25thiserror = "1" 26cfg-if = "1" 27serde = { version = "1", features = [ "derive" ] } 28vm_control = { path = "../vm_control", features = ["gpu"] } 29zerocopy = { version = "0.7", features = ["derive"] } 30vulkano = { version = "0.31.1", optional = true } 31ash = { version = "0.37.0", optional = true } 32rand = { version = "0.8.5", optional = true } 33protos = { path = "../protos", optional = true } 34protobuf = { version = "3.2", optional = true } 35euclid = { version = "0.22", optional = true } 36smallvec = { version = "1", optional = true } 37sync = { path = "../common/sync" } 38 39[target.'cfg(windows)'.dependencies] 40cros_tracing = { path = "../cros_tracing" } 41metrics = { path = "../metrics" } 42num-traits = "0.2" 43winapi = "0.3" 44win_util = { path = "../win_util" } 45smallvec = "1" 46sync = { path = "../common/sync" } 47euclid = "0.22" 48 49[build-dependencies] 50cc = "1.0.25" 51pkg-config = "0.3.11" 52cfg-if = "1.0.0" 53which = "4" 54 55[[example]] 56name = "simple" 57path = "examples/simple.rs" 58 59[[example]] 60name = "simple_open" 61path = "examples/simple_open.rs" 62required-features = ["x"] 63