Add OWNERS to content/browser/quota
[chromium-blink-merge.git] / device / serial / BUILD.gn
blobd3079102383431833a03251d3da03249a16ffff0
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
8 # GYP version: device/serial/serial.gyp:device_serial
9 static_library("serial") {
10   output_name = "device_serial"
12   sources = [
13     "buffer.cc",
14     "buffer.h",
15     "data_receiver.cc",
16     "data_receiver.h",
17     "data_sender.cc",
18     "data_sender.h",
19     "data_sink_receiver.cc",
20     "data_sink_receiver.h",
21     "data_source_sender.cc",
22     "data_source_sender.h",
23     "serial_connection.cc",
24     "serial_connection.h",
25     "serial_connection_factory.cc",
26     "serial_connection_factory.h",
27     "serial_device_enumerator.cc",
28     "serial_device_enumerator.h",
29     "serial_device_enumerator_linux.cc",
30     "serial_device_enumerator_linux.h",
31     "serial_device_enumerator_mac.cc",
32     "serial_device_enumerator_mac.h",
33     "serial_device_enumerator_win.cc",
34     "serial_device_enumerator_win.h",
35     "serial_io_handler.cc",
36     "serial_io_handler.h",
37     "serial_io_handler_posix.cc",
38     "serial_io_handler_posix.h",
39     "serial_io_handler_win.cc",
40     "serial_io_handler_win.h",
41     "serial_service_impl.cc",
42     "serial_service_impl.h",
43   ]
45   public_deps = [
46     ":serial_mojo",
47     "//base",
48   ]
49   deps = [
50     "//third_party/mojo/src/mojo/public/cpp/system",
51   ]
53   if (use_udev) {
54     deps += [ "//device/udev_linux" ]
55   }
56   if (is_chromeos) {
57     deps += [ "//chromeos" ]
58   }
61 # GYP version: device/serial/serial.gyp:device_serial_test_util
62 static_library("test_support") {
63   sources = [
64     "test_serial_io_handler.cc",
65     "test_serial_io_handler.h",
66   ]
68   deps = [
69     ":serial",
70   ]
73 # GYP version: device/serial/serial.gyp:device_serial_mojo
74 mojom("serial_mojo") {
75   visibility = [
76     ":serial",
77     "//extensions:extensions_renderer_resources_grit",
78   ]
80   sources = [
81     "data_stream.mojom",
82     "data_stream_serialization.mojom",
83     "serial.mojom",
84     "serial_serialization.mojom",
85   ]