diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-02 14:58:52 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-02 15:05:09 -0700 |
commit | 523140ed7481930251e9d499414d02af95c807dd (patch) | |
tree | 3e1d123f914382dd2493bfd1dc152a8f40d42275 /Cargo.toml | |
parent | 2e2febaa42f8f308760e0a33003d46841d892f43 (diff) | |
download | glutin-523140ed7481930251e9d499414d02af95c807dd.tar.gz glutin-523140ed7481930251e9d499414d02af95c807dd.zip |
Use cfg syntax for target-specific dependencies
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 102 |
1 files changed, 5 insertions, 97 deletions
@@ -18,40 +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] -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-pc-windows-msvc.dependencies] +[target.'cfg(target_os = "windows")'.dependencies] winapi = "0.2" shell32-sys = "0.1" gdi32-sys = "0.1" @@ -59,79 +39,7 @@ 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" |