From e648516ff9892595ba2cf8b2d184deb1b91bf7f1 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Mon, 1 Jun 2020 16:54:26 -0400 Subject: [PATCH] player: enable x11 on Unix/Vulkan --- Cargo.lock | 12 ++++++++++++ player/Cargo.toml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index fd595b66cc..f0cc689bdb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/player/Cargo.toml b/player/Cargo.toml index cb165438ba..f744e5cbd6 100644 --- a/player/Cargo.toml +++ b/player/Cargo.toml @@ -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"] }