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"