summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn4
-rw-r--r--Cargo.toml2
2 files changed, 5 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index e6fb672f4..23192cd32 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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"