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") { | 11 config("platform_support") { |
12 visibility = [ ":serial" ] | 12 visibility = [ ":serial" ] |
13 if (is_win) { | 13 if (is_win) { |
14 libs = [ "setupapi.lib" ] | 14 libs = [ "setupapi.lib" ] |
15 ldflags = [ "/DELAYLOAD:setupapi.dll" ] | 15 ldflags = [ "/DELAYLOAD:setupapi.dll" ] |
16 } | 16 } |
17 } | 17 } |
18 | 18 |
19 # GYP version: device/serial/serial.gyp:device_serial | |
20 static_library("serial") { | 19 static_library("serial") { |
21 output_name = "device_serial" | 20 output_name = "device_serial" |
22 | 21 |
23 sources = [ | 22 sources = [ |
24 "buffer.cc", | 23 "buffer.cc", |
25 "buffer.h", | 24 "buffer.h", |
26 "data_receiver.cc", | 25 "data_receiver.cc", |
27 "data_receiver.h", | 26 "data_receiver.h", |
28 "data_sender.cc", | 27 "data_sender.cc", |
29 "data_sender.h", | 28 "data_sender.h", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 ] | 76 ] |
78 } | 77 } |
79 if (is_mac) { | 78 if (is_mac) { |
80 libs = [ | 79 libs = [ |
81 "Foundation.framework", | 80 "Foundation.framework", |
82 "IOKit.framework", | 81 "IOKit.framework", |
83 ] | 82 ] |
84 } | 83 } |
85 } | 84 } |
86 | 85 |
87 # GYP version: device/serial/serial.gyp:device_serial_test_util | |
88 static_library("test_support") { | 86 static_library("test_support") { |
89 sources = [ | 87 sources = [ |
90 "test_serial_io_handler.cc", | 88 "test_serial_io_handler.cc", |
91 "test_serial_io_handler.h", | 89 "test_serial_io_handler.h", |
92 ] | 90 ] |
93 | 91 |
94 public_deps = [ | 92 public_deps = [ |
95 ":serial", | 93 ":serial", |
96 ] | 94 ] |
97 } | 95 } |
98 | 96 |
99 # GYP version: device/serial/serial.gyp:device_serial_mojo | |
100 mojom("serial_mojo") { | 97 mojom("serial_mojo") { |
101 visibility = [ | 98 visibility = [ |
102 ":serial", | 99 ":serial", |
103 "//extensions:extensions_renderer_resources_grit", | 100 "//extensions:extensions_renderer_resources_grit", |
104 ] | 101 ] |
105 | 102 |
106 sources = [ | 103 sources = [ |
107 "data_stream.mojom", | 104 "data_stream.mojom", |
108 "data_stream_serialization.mojom", | 105 "data_stream_serialization.mojom", |
109 "serial.mojom", | 106 "serial.mojom", |
110 "serial_serialization.mojom", | 107 "serial_serialization.mojom", |
111 ] | 108 ] |
112 | 109 |
113 use_new_wrapper_types = false | 110 use_new_wrapper_types = false |
114 } | 111 } |
OLD | NEW |