GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / device / serial / BUILD.gn
blob099b7ade2aacd13e20f4982e28d2eea3d9f7e91f
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("//third_party/mojo/src/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     "buffer.cc",
13     "buffer.h",
14     "data_receiver.cc",
15     "data_receiver.h",
16     "data_sender.cc",
17     "data_sender.h",
18     "data_sink_receiver.cc",
19     "data_sink_receiver.h",
20     "data_source_sender.cc",
21     "data_source_sender.h",
22     "serial_connection.cc",
23     "serial_connection.h",
24     "serial_connection_factory.cc",
25     "serial_connection_factory.h",
26     "serial_device_enumerator.cc",
27     "serial_device_enumerator.h",
28     "serial_device_enumerator_linux.cc",
29     "serial_device_enumerator_linux.h",
30     "serial_device_enumerator_mac.cc",
31     "serial_device_enumerator_mac.h",
32     "serial_device_enumerator_win.cc",
33     "serial_device_enumerator_win.h",
34     "serial_io_handler.cc",
35     "serial_io_handler.h",
36     "serial_io_handler_posix.cc",
37     "serial_io_handler_posix.h",
38     "serial_io_handler_win.cc",
39     "serial_io_handler_win.h",
40     "serial_service_impl.cc",
41     "serial_service_impl.h",
42   ]
44   public_deps = [
45     ":serial_mojo",
46     "//base",
47   ]
48   deps = [
49     "//third_party/mojo/src/mojo/public/cpp/system",
50   ]
52   if (is_linux) {
53     deps += [ "//device/udev_linux" ]
54   }
55   if (is_chromeos) {
56     deps += [ "//chromeos" ]
57   }
60 # GYP version: device/serial/serial.gyp:device_serial_test_util
61 static_library("test_support") {
62   sources = [
63     "test_serial_io_handler.cc",
64     "test_serial_io_handler.h",
65   ]
67   deps = [
68     ":serial",
69   ]
72 # GYP version: device/serial/serial.gyp:device_serial_mojo
73 mojom("serial_mojo") {
74   visibility = [
75     ":serial",
76     "//extensions:extensions_renderer_resources_grit",
77   ]
79   sources = [
80     "data_stream.mojom",
81     "data_stream_serialization.mojom",
82     "serial.mojom",
83     "serial_serialization.mojom",
84   ]