| 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 static_library("serial") { | 19 static_library("serial") { |
| 20 output_name = "device_serial" | 20 output_name = "device_serial" |
| 21 | 21 |
| 22 sources = [ | 22 sources = [ |
| 23 "buffer.cc", | 23 "buffer.cc", |
| 24 "buffer.h", | 24 "buffer.h", |
| 25 "data_receiver.cc", | |
| 26 "data_receiver.h", | |
| 27 "data_sender.cc", | |
| 28 "data_sender.h", | |
| 29 "data_sink_receiver.cc", | |
| 30 "data_sink_receiver.h", | |
| 31 "data_source_sender.cc", | |
| 32 "data_source_sender.h", | |
| 33 "serial_connection.cc", | |
| 34 "serial_connection.h", | |
| 35 "serial_connection_factory.cc", | |
| 36 "serial_connection_factory.h", | |
| 37 "serial_device_enumerator.cc", | 25 "serial_device_enumerator.cc", |
| 38 "serial_device_enumerator.h", | 26 "serial_device_enumerator.h", |
| 39 "serial_device_enumerator_linux.cc", | 27 "serial_device_enumerator_linux.cc", |
| 40 "serial_device_enumerator_linux.h", | 28 "serial_device_enumerator_linux.h", |
| 41 "serial_device_enumerator_mac.cc", | 29 "serial_device_enumerator_mac.cc", |
| 42 "serial_device_enumerator_mac.h", | 30 "serial_device_enumerator_mac.h", |
| 43 "serial_device_enumerator_win.cc", | 31 "serial_device_enumerator_win.cc", |
| 44 "serial_device_enumerator_win.h", | 32 "serial_device_enumerator_win.h", |
| 45 "serial_io_handler.cc", | 33 "serial_io_handler.cc", |
| 46 "serial_io_handler.h", | 34 "serial_io_handler.h", |
| 47 "serial_io_handler_posix.cc", | 35 "serial_io_handler_posix.cc", |
| 48 "serial_io_handler_posix.h", | 36 "serial_io_handler_posix.h", |
| 49 "serial_io_handler_win.cc", | 37 "serial_io_handler_win.cc", |
| 50 "serial_io_handler_win.h", | 38 "serial_io_handler_win.h", |
| 51 "serial_service_impl.cc", | |
| 52 "serial_service_impl.h", | |
| 53 ] | 39 ] |
| 54 | 40 |
| 55 public_configs = [ ":platform_support" ] | 41 public_configs = [ ":platform_support" ] |
| 56 | 42 |
| 57 public_deps = [ | 43 public_deps = [ |
| 58 ":serial_mojo", | 44 ":serial_mojo", |
| 59 "//base", | 45 "//base", |
| 60 "//device/core", | 46 "//device/core", |
| 61 ] | 47 ] |
| 62 | 48 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 ] | 80 ] |
| 95 } | 81 } |
| 96 | 82 |
| 97 mojom("serial_mojo") { | 83 mojom("serial_mojo") { |
| 98 visibility = [ | 84 visibility = [ |
| 99 ":serial", | 85 ":serial", |
| 100 "//extensions:extensions_renderer_resources_grit", | 86 "//extensions:extensions_renderer_resources_grit", |
| 101 ] | 87 ] |
| 102 | 88 |
| 103 sources = [ | 89 sources = [ |
| 104 "data_stream.mojom", | |
| 105 "data_stream_serialization.mojom", | |
| 106 "serial.mojom", | 90 "serial.mojom", |
| 107 "serial_serialization.mojom", | |
| 108 ] | 91 ] |
| 109 | 92 |
| 110 use_new_wrapper_types = false | 93 use_new_wrapper_types = false |
| 111 } | 94 } |
| OLD | NEW |