mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Use cfg syntax for target-specific dependencies
This commit is contained in:
parent
2e2febaa42
commit
523140ed74
1 changed files with 5 additions and 97 deletions
102
Cargo.toml
102
Cargo.toml
|
@ -18,32 +18,20 @@ shared_library = "0.1.0"
|
|||
[build-dependencies]
|
||||
gl_generator = "0.5"
|
||||
|
||||
[target.arm-linux-androideabi.dependencies.android_glue]
|
||||
[target.'cfg(target_os = "android")'.dependencies.android_glue]
|
||||
version = "0.1"
|
||||
|
||||
[target.i386-apple-ios.dependencies]
|
||||
[target.'cfg(target_os = "ios")'.dependencies]
|
||||
objc = "0.2"
|
||||
|
||||
[target.x86_64-apple-ios.dependencies]
|
||||
objc = "0.2"
|
||||
|
||||
[target.aarch64-apple-ios.dependencies]
|
||||
objc = "0.2"
|
||||
|
||||
[target.armv7s-apple-ios.dependencies]
|
||||
objc = "0.2"
|
||||
|
||||
[target.armv7-apple-ios.dependencies]
|
||||
objc = "0.2"
|
||||
|
||||
[target.x86_64-apple-darwin.dependencies]
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
objc = "0.2"
|
||||
cgl = "0.1"
|
||||
cocoa = "0.3.2"
|
||||
core-foundation = "0"
|
||||
core-graphics = "0.3"
|
||||
|
||||
[target.i686-pc-windows-gnu.dependencies]
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
winapi = "0.2"
|
||||
shell32-sys = "0.1"
|
||||
gdi32-sys = "0.1"
|
||||
|
@ -51,87 +39,7 @@ user32-sys = "~0.1.2"
|
|||
kernel32-sys = "0.2"
|
||||
dwmapi-sys = "0.1"
|
||||
|
||||
[target.i686-pc-windows-msvc.dependencies]
|
||||
winapi = "0.2"
|
||||
shell32-sys = "0.1"
|
||||
gdi32-sys = "0.1"
|
||||
user32-sys = "~0.1.2"
|
||||
kernel32-sys = "0.2"
|
||||
dwmapi-sys = "0.1"
|
||||
|
||||
[target.x86_64-pc-windows-gnu.dependencies]
|
||||
winapi = "0.2"
|
||||
shell32-sys = "0.1"
|
||||
gdi32-sys = "0.1"
|
||||
user32-sys = "~0.1.2"
|
||||
kernel32-sys = "0.2"
|
||||
dwmapi-sys = "0.1"
|
||||
|
||||
[target.x86_64-pc-windows-msvc.dependencies]
|
||||
winapi = "0.2"
|
||||
shell32-sys = "0.1"
|
||||
gdi32-sys = "0.1"
|
||||
user32-sys = "~0.1.2"
|
||||
kernel32-sys = "0.2"
|
||||
dwmapi-sys = "0.1"
|
||||
|
||||
[target.i686-unknown-linux-gnu.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.i586-unknown-linux-gnu.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.x86_64-unknown-linux-gnu.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.arm-unknown-linux-gnueabihf.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.armv7-unknown-linux-gnueabihf.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.aarch64-unknown-linux-gnu.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.x86_64-unknown-dragonfly.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.x86_64-unknown-freebsd.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
wayland-window = "0.2.2"
|
||||
x11-dl = "~2.4"
|
||||
|
||||
[target.x86_64-unknown-openbsd.dependencies]
|
||||
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os="dragonfly", target_os="openbsd"))'.dependencies]
|
||||
osmesa-sys = "0.0.5"
|
||||
wayland-client = { version = "0.5.4", features = ["egl", "dlopen"] }
|
||||
wayland-kbd = "0.3.3"
|
||||
|
|
Loading…
Add table
Reference in a new issue