Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 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. |
| 4 | |
| 5 | import("//mojo/public/tools/bindings/mojom.gni") |
| 6 | |
| 7 | # GYP version: device/serial/serial.gyp:device_serial |
| 8 | static_library("serial") { |
| 9 | output_name = "device_serial" |
| 10 | |
| 11 | sources = [ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 12 | "async_waiter.cc", |
| 13 | "async_waiter.h", |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 14 | "buffer.cc", |
| 15 | "buffer.h", |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 16 | "data_receiver.cc", |
| 17 | "data_receiver.h", |
| 18 | "data_source_sender.cc", |
| 19 | "data_source_sender.h", |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 20 | "serial_connection.cc", |
| 21 | "serial_connection.h", |
| 22 | "serial_connection_factory.cc", |
| 23 | "serial_connection_factory.h", |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 24 | "serial_device_enumerator.cc", |
| 25 | "serial_device_enumerator.h", |
| 26 | "serial_device_enumerator_linux.cc", |
| 27 | "serial_device_enumerator_linux.h", |
| 28 | "serial_device_enumerator_mac.cc", |
| 29 | "serial_device_enumerator_mac.h", |
| 30 | "serial_device_enumerator_win.cc", |
| 31 | "serial_device_enumerator_win.h", |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 32 | "serial_io_handler.cc", |
| 33 | "serial_io_handler.h", |
| 34 | "serial_io_handler_posix.cc", |
| 35 | "serial_io_handler_posix.h", |
| 36 | "serial_io_handler_win.cc", |
| 37 | "serial_io_handler_win.h", |
| 38 | "serial_service_impl.cc", |
| 39 | "serial_service_impl.h", |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 40 | ] |
| 41 | |
| 42 | if (is_linux) { |
| 43 | configs += [ "//build/config/linux:udev" ] |
| 44 | } |
| 45 | |
| 46 | deps = [ |
| 47 | ":serial_mojo", |
| 48 | ] |
| 49 | } |
| 50 | |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 51 | # GYP version: device/serial/serial.gyp:device_serial_test_util |
| 52 | static_library("test_util") { |
| 53 | output_name = "device_serial_test_util" |
| 54 | |
| 55 | sources = [ |
| 56 | "test_serial_io_handler.cc", |
| 57 | "test_serial_io_handler.h", |
| 58 | ] |
| 59 | |
| 60 | deps = [ |
| 61 | ":serial", |
| 62 | ] |
| 63 | } |
| 64 | |
| 65 | # GYP version: device/serial/serial.gyp:device_serial_mojo |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 66 | mojom("serial_mojo") { |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 67 | visibility = [ |
| 68 | ":serial", |
| 69 | "//extensions:extensions_renderer_resources_grit", |
| 70 | ] |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 71 | |
| 72 | sources = [ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 73 | "data_stream.mojom", |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 74 | "serial.mojom", |
| 75 | ] |
| 76 | } |