summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-01-13 23:43:00 +0100
committerBert Belder <bertbelder@gmail.com>2019-01-14 02:18:18 +0100
commit4f63aa46345fac4e83131463c5bda2887b27cbec (patch)
treeb9448a2c4ddce773bba4005fcd7ac303c6fdf899 /BUILD.gn
parent69c370c5ccaae5646cf2380f92d39097c8ca8645 (diff)
build: winapi is a windows-only dep
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 3 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",