Make Metal dependencies in the demo Mac-only

This commit is contained in:
Patrick Walton 2019-06-20 12:34:55 -07:00
parent 487577a11b
commit 71623eaab3
2 changed files with 6 additions and 6 deletions

View File

@ -31,9 +31,6 @@ path = "../../gl"
[dependencies.pathfinder_gpu] [dependencies.pathfinder_gpu]
path = "../../gpu" path = "../../gpu"
[dependencies.pathfinder_metal]
path = "../../metal"
[dependencies.pathfinder_renderer] [dependencies.pathfinder_renderer]
path = "../../renderer" path = "../../renderer"
@ -48,3 +45,6 @@ path = "../../ui"
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
metal = "0.14" metal = "0.14"
[target.'cfg(target_os = "macos")'.dependencies.pathfinder_metal]
path = "../../metal"

View File

@ -28,9 +28,6 @@ path = "../../gl"
[dependencies.pathfinder_gpu] [dependencies.pathfinder_gpu]
path = "../../gpu" path = "../../gpu"
[dependencies.pathfinder_metal]
path = "../../metal"
[dependencies.pathfinder_simd] [dependencies.pathfinder_simd]
path = "../../simd" path = "../../simd"
@ -38,5 +35,8 @@ path = "../../simd"
foreign-types = "0.3" foreign-types = "0.3"
metal = "0.14" metal = "0.14"
[target.'cfg(target_os = "macos")'.dependencies.pathfinder_metal]
path = "../../metal"
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
jemallocator = "0.1" jemallocator = "0.1"