Fix "#if defined(DEBUG)" statements
[chromium-blink-merge.git] / device / serial / BUILD.gn
blob5e0dff6daaf6e6e82bb9e7c93a0eb38da624d7f7
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("//mojo/public/tools/bindings/mojom.gni")
7 # GYP version: device/serial/serial.gyp:device_serial
8 static_library("serial") {
9   output_name = "device_serial"
11   sources = [
12     "async_waiter.cc",
13     "async_waiter.h",
14     "buffer.cc",
15     "buffer.h",
16     "data_receiver.cc",
17     "data_receiver.h",
18     "data_sender.cc",
19     "data_sender.h",
20     "data_sink_receiver.cc",
21     "data_sink_receiver.h",
22     "data_source_sender.cc",
23     "data_source_sender.h",
24     "serial_connection.cc",
25     "serial_connection.h",
26     "serial_connection_factory.cc",
27     "serial_connection_factory.h",
28     "serial_device_enumerator.cc",
29     "serial_device_enumerator.h",
30     "serial_device_enumerator_linux.cc",
31     "serial_device_enumerator_linux.h",
32     "serial_device_enumerator_mac.cc",
33     "serial_device_enumerator_mac.h",
34     "serial_device_enumerator_win.cc",
35     "serial_device_enumerator_win.h",
36     "serial_io_handler.cc",
37     "serial_io_handler.h",
38     "serial_io_handler_posix.cc",
39     "serial_io_handler_posix.h",
40     "serial_io_handler_win.cc",
41     "serial_io_handler_win.h",
42     "serial_service_impl.cc",
43     "serial_service_impl.h",
44   ]
46   if (is_linux) {
47     configs += [ "//build/config/linux:udev" ]
48   }
50   deps = [
51     ":serial_mojo",
52   ]
55 # GYP version: device/serial/serial.gyp:device_serial_test_util
56 static_library("test_util") {
57   output_name = "device_serial_test_util"
59   sources = [
60     "test_serial_io_handler.cc",
61     "test_serial_io_handler.h",
62   ]
64   deps = [
65     ":serial",
66   ]
69 # GYP version: device/serial/serial.gyp:device_serial_mojo
70 mojom("serial_mojo") {
71   visibility = [
72     ":serial",
73     "//extensions:extensions_renderer_resources_grit",
74   ]
76   sources = [
77     "data_stream.mojom",
78     "data_stream_serialization.mojom",
79     "serial.mojom",
80     "serial_serialization.mojom",
81   ]