Skip to content

Commit 9c9418e

Browse files
committed
[wgpu-hal] make android dependencies optional based on features
1 parent 19cc9d9 commit 9c9418e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wgpu-hal/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ vulkan = [
4242
"gpu-descriptor",
4343
"libloading",
4444
"smallvec",
45+
"android_system_properties"
4546
]
46-
gles = ["naga/glsl-out", "glow", "glutin_wgl_sys", "khronos-egl", "libloading"]
47+
gles = ["naga/glsl-out", "glow", "glutin_wgl_sys", "khronos-egl", "libloading", "ndk-sys"]
4748
dx12 = [
4849
"naga/hlsl-out",
4950
"d3d12",
@@ -165,8 +166,8 @@ js-sys = "0.3.67"
165166
libc = "0.2"
166167

167168
[target.'cfg(target_os = "android")'.dependencies]
168-
android_system_properties = "0.1.1"
169-
ndk-sys = "0.5.0"
169+
android_system_properties = { version = "0.1.1", optional = true }
170+
ndk-sys = { version = "0.5.0", optional = true }
170171

171172
[dependencies.naga]
172173
path = "../naga"

0 commit comments

Comments
 (0)