| Index: device/serial/BUILD.gn
|
| diff --git a/device/serial/BUILD.gn b/device/serial/BUILD.gn
|
| index ae6e00a9083d649c91d30a2bfdcc2cf13f398952..2ad40907465b20a6ddc7ccc579f56ea474fe99f9 100644
|
| --- a/device/serial/BUILD.gn
|
| +++ b/device/serial/BUILD.gn
|
| @@ -8,6 +8,14 @@ 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" ]
|
| + ldflags = [ "/DELAYLOAD:setupapi.dll" ]
|
| + }
|
| +}
|
| +
|
| # GYP version: device/serial/serial.gyp:device_serial
|
| static_library("serial") {
|
| output_name = "device_serial"
|
| @@ -45,11 +53,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",
|
|
|