From 15e0deae2b49078b47a782679300cdf99d9ce687 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Wed, 17 Oct 2018 06:02:52 +1300 Subject: Add support for Windows (#1374) Initial support for Windows is implemented using the winpty translation layer. Clipboard support for Windows is provided through the `clipboard` crate, and font rasterization is provided by RustType. The tty.rs file has been split into OS-specific files to separate standard pty handling from the winpty implementation. Several binary components are fetched via build script on windows including libclang and winpty. These could be integrated more directly in the future either by building those dependencies as part of the Alacritty build process or by leveraging git lfs to store the artifacts. Fixes #28. --- src/lib.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index fcc55799..d0e48c3d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,9 +23,23 @@ #[macro_use] extern crate serde_derive; #[macro_use] extern crate static_assertions; -#[cfg(any(target_os = "linux", target_os = "freebsd", target_os="dragonfly", target_os="openbsd"))] +#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", + target_os = "openbsd"))] extern crate x11_dl; +#[cfg(windows)] +extern crate mio_named_pipes; +#[cfg(windows)] +extern crate winapi; +#[cfg(windows)] +extern crate winpty; +#[cfg(windows)] +extern crate dunce; +#[cfg(windows)] +extern crate winit; +#[cfg(windows)] +extern crate image; + #[cfg(target_os = "macos")] #[macro_use] extern crate objc; @@ -33,8 +47,8 @@ extern crate objc; extern crate arraydeque; extern crate cgmath; extern crate copypasta; -extern crate errno; extern crate env_logger; +extern crate errno; extern crate fnv; extern crate font; extern crate glutin; -- cgit