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

Unified Diff: device/serial/BUILD.gn

Issue 343233002: Make chrome/common compile in GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: device/serial/BUILD.gn
diff --git a/device/serial/BUILD.gn b/device/serial/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..0b38e93cbaea779b17fde1dd439fa62eb02467dd
--- /dev/null
+++ b/device/serial/BUILD.gn
@@ -0,0 +1,37 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//mojo/public/tools/bindings/mojom.gni")
+
+# GYP version: device/serial/serial.gyp:device_serial
+static_library("serial") {
+ output_name = "device_serial"
+
+ sources = [
+ "serial_device_enumerator.cc",
+ "serial_device_enumerator.h",
+ "serial_device_enumerator_linux.cc",
+ "serial_device_enumerator_linux.h",
+ "serial_device_enumerator_mac.cc",
+ "serial_device_enumerator_mac.h",
+ "serial_device_enumerator_win.cc",
+ "serial_device_enumerator_win.h",
+ ]
+
+ if (is_linux) {
+ configs += [ "//build/config/linux:udev" ]
+ }
+
+ deps = [
+ ":serial_mojo",
+ ]
+}
+
+mojom("serial_mojo") {
+ visibility = ":serial"
+
+ sources = [
+ "serial.mojom",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698