OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 # Library works only on desktop platforms. | 8 # Library works only on desktop platforms. |
9 assert(is_win || is_linux || is_mac) | 9 assert(is_win || is_linux || is_mac) |
10 | 10 |
| 11 config("platform_support") { |
| 12 visibility = [ ":serial" ] |
| 13 if (is_win) { |
| 14 libs = [ "setupapi.lib" ] |
| 15 } |
| 16 } |
| 17 |
11 # GYP version: device/serial/serial.gyp:device_serial | 18 # GYP version: device/serial/serial.gyp:device_serial |
12 static_library("serial") { | 19 static_library("serial") { |
13 output_name = "device_serial" | 20 output_name = "device_serial" |
14 | 21 |
15 sources = [ | 22 sources = [ |
16 "buffer.cc", | 23 "buffer.cc", |
17 "buffer.h", | 24 "buffer.h", |
18 "data_receiver.cc", | 25 "data_receiver.cc", |
19 "data_receiver.h", | 26 "data_receiver.h", |
20 "data_sender.cc", | 27 "data_sender.cc", |
(...skipping 17 matching lines...) Expand all Loading... |
38 "serial_io_handler.cc", | 45 "serial_io_handler.cc", |
39 "serial_io_handler.h", | 46 "serial_io_handler.h", |
40 "serial_io_handler_posix.cc", | 47 "serial_io_handler_posix.cc", |
41 "serial_io_handler_posix.h", | 48 "serial_io_handler_posix.h", |
42 "serial_io_handler_win.cc", | 49 "serial_io_handler_win.cc", |
43 "serial_io_handler_win.h", | 50 "serial_io_handler_win.h", |
44 "serial_service_impl.cc", | 51 "serial_service_impl.cc", |
45 "serial_service_impl.h", | 52 "serial_service_impl.h", |
46 ] | 53 ] |
47 | 54 |
| 55 public_configs = [ ":platform_support" ] |
| 56 |
48 public_deps = [ | 57 public_deps = [ |
49 ":serial_mojo", | 58 ":serial_mojo", |
50 "//base", | 59 "//base", |
51 "//device/core", | 60 "//device/core", |
52 ] | 61 ] |
| 62 |
53 deps = [ | 63 deps = [ |
54 "//mojo/public/cpp/system", | 64 "//mojo/public/cpp/system", |
55 "//net", | 65 "//net", |
56 "//third_party/re2", | 66 "//third_party/re2", |
57 ] | 67 ] |
58 | 68 |
59 if (use_udev) { | 69 if (use_udev) { |
60 deps += [ "//device/udev_linux" ] | 70 deps += [ "//device/udev_linux" ] |
61 } | 71 } |
62 if (is_chromeos) { | 72 if (is_chromeos) { |
(...skipping 23 matching lines...) Expand all Loading... |
86 "//extensions:extensions_renderer_resources_grit", | 96 "//extensions:extensions_renderer_resources_grit", |
87 ] | 97 ] |
88 | 98 |
89 sources = [ | 99 sources = [ |
90 "data_stream.mojom", | 100 "data_stream.mojom", |
91 "data_stream_serialization.mojom", | 101 "data_stream_serialization.mojom", |
92 "serial.mojom", | 102 "serial.mojom", |
93 "serial_serialization.mojom", | 103 "serial_serialization.mojom", |
94 ] | 104 ] |
95 } | 105 } |
OLD | NEW |