Move SerialIoHandler into device/serial.
[chromium-blink-merge.git] / device / serial / serial.gyp
blobc23a50d7d10db7f88beb9a0afcf4dfb5e47336fa
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //device/serial
12       'target_name': 'device_serial',
13       'type': 'static_library',
14       'include_dirs': [
15         '../..',
16       ],
17       'conditions': [
18         ['OS=="linux"', {
19           'dependencies': [
20             '../../build/linux/system.gyp:udev',
21           ],
22         }],
23       ],
24       'variables': {
25         'mojom_base_output_dir': 'device/serial',
26       },
27       'includes': [
28         '../../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
29       ],
30       'dependencies': [
31         '../../net/net.gyp:net',
32       ],
33       'sources': [
34         'serial.mojom',
35         'serial_device_enumerator.cc',
36         'serial_device_enumerator.h',
37         'serial_device_enumerator_linux.cc',
38         'serial_device_enumerator_linux.h',
39         'serial_device_enumerator_mac.cc',
40         'serial_device_enumerator_mac.h',
41         'serial_device_enumerator_win.cc',
42         'serial_device_enumerator_win.h',
43         'serial_io_handler.cc',
44         'serial_io_handler.h',
45         'serial_io_handler_posix.cc',
46         'serial_io_handler_posix.h',
47         'serial_io_handler_win.cc',
48         'serial_io_handler_win.h',
49       ],
50     },
51   ],