diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-01-13 23:43:00 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-01-14 02:18:18 +0100 |
commit | 4f63aa46345fac4e83131463c5bda2887b27cbec (patch) | |
tree | b9448a2c4ddce773bba4005fcd7ac303c6fdf899 | |
parent | 69c370c5ccaae5646cf2380f92d39097c8ca8645 (diff) |
build: winapi is a windows-only dep
-rw-r--r-- | BUILD.gn | 4 | ||||
-rw-r--r-- | Cargo.toml | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -43,8 +43,10 @@ main_extern = [ "$rust_build:tokio_process", "$rust_build:tokio_threadpool", "$rust_build:url", - "$rust_build:winapi", ] +if (is_win) { + main_extern += [ "$rust_build:winapi" ] +} ts_sources = [ "js/assets.ts", diff --git a/Cargo.toml b/Cargo.toml index 5c86d526c..794fa4861 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,4 +34,6 @@ tokio-io = "=0.1.10" tokio-process = "=0.2.3" tokio-threadpool = "=0.1.9" url = "=1.7.2" + +[target.'cfg(windows)'.dependencies] winapi = "=0.3.6" |