Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2534)

Unified Diff: device/serial/BUILD.gn

Issue 1640783002: [device] Add setupapi.lib dependency to //device/serial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +DELAYLOAD Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/serial/serial.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | device/serial/serial.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698