diff options
-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" |