Index: device/serial/BUILD.gn |
diff --git a/device/serial/BUILD.gn b/device/serial/BUILD.gn |
index ae6e00a9083d649c91d30a2bfdcc2cf13f398952..663a62367058eeba5ac0d9601827c0aed9357320 100644 |
--- a/device/serial/BUILD.gn |
+++ b/device/serial/BUILD.gn |
@@ -8,6 +8,13 @@ import("//mojo/public/tools/bindings/mojom.gni") |
# Library works only on desktop platforms. |
assert(is_win || is_linux || is_mac) |
+config("platform_support") { |
+ visibility = [ ":serial" ] |
+ if (is_win) { |
+ libs = [ "setupapi.lib" ] |
+ } |
+} |
+ |
# GYP version: device/serial/serial.gyp:device_serial |
static_library("serial") { |
output_name = "device_serial" |
@@ -45,11 +52,14 @@ static_library("serial") { |
"serial_service_impl.h", |
] |
+ public_configs = [ ":platform_support" ] |
+ |
public_deps = [ |
":serial_mojo", |
"//base", |
"//device/core", |
] |
+ |
deps = [ |
"//mojo/public/cpp/system", |
"//net", |