player: enable x11 on Unix/Vulkan

This commit is contained in:
Dzmitry Malyshau
2020-06-01 16:54:26 -04:00
parent 3a6cdeec94
commit e648516ff9
2 changed files with 15 additions and 0 deletions

12
Cargo.lock generated
View File

@@ -473,6 +473,7 @@ dependencies = [
"raw-window-handle",
"smallvec",
"winapi 0.3.8",
"x11",
]
[[package]]
@@ -898,6 +899,7 @@ name = "player"
version = "0.1.0"
dependencies = [
"env_logger",
"gfx-backend-vulkan",
"log",
"raw-window-handle",
"renderdoc",
@@ -1509,6 +1511,16 @@ dependencies = [
"winapi-build",
]
[[package]]
name = "x11"
version = "2.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ecd092546cb16f25783a5451538e73afc8d32e242648d54f4ae5459ba1e773"
dependencies = [
"libc",
"pkg-config",
]
[[package]]
name = "x11-dl"
version = "2.18.5"

View File

@@ -33,3 +33,6 @@ path = "../wgpu-core"
package = "wgpu-core"
version = "0.5"
features = ["replay", "raw-window-handle"]
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
gfx-backend-vulkan = { version = "0.5", features = ["x11"] }