From 71623eaab312ee0c33ba8ffa70954e166b564dfb Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 20 Jun 2019 12:34:55 -0700 Subject: [PATCH] Make Metal dependencies in the demo Mac-only --- demo/common/Cargo.toml | 6 +++--- demo/native/Cargo.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/demo/common/Cargo.toml b/demo/common/Cargo.toml index 3d2a88cb..c73270df 100644 --- a/demo/common/Cargo.toml +++ b/demo/common/Cargo.toml @@ -31,9 +31,6 @@ path = "../../gl" [dependencies.pathfinder_gpu] path = "../../gpu" -[dependencies.pathfinder_metal] -path = "../../metal" - [dependencies.pathfinder_renderer] path = "../../renderer" @@ -48,3 +45,6 @@ path = "../../ui" [target.'cfg(target_os = "macos")'.dependencies] metal = "0.14" + +[target.'cfg(target_os = "macos")'.dependencies.pathfinder_metal] +path = "../../metal" diff --git a/demo/native/Cargo.toml b/demo/native/Cargo.toml index 12515c04..05c33dd3 100644 --- a/demo/native/Cargo.toml +++ b/demo/native/Cargo.toml @@ -28,9 +28,6 @@ path = "../../gl" [dependencies.pathfinder_gpu] path = "../../gpu" -[dependencies.pathfinder_metal] -path = "../../metal" - [dependencies.pathfinder_simd] path = "../../simd" @@ -38,5 +35,8 @@ path = "../../simd" foreign-types = "0.3" metal = "0.14" +[target.'cfg(target_os = "macos")'.dependencies.pathfinder_metal] +path = "../../metal" + [target.'cfg(not(windows))'.dependencies] jemallocator = "0.1"