Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / device / serial / serial.gyp
blob650c8c61c0b902f840f86fd8d4948a4f1c4c81dc
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:serial_mojo
12       'target_name': 'device_serial_mojo',
13       # The type of this target must be none. This is so that resources can
14       # depend upon this target for generating the js bindings files. Any
15       # generated cpp files must be listed explicitly in device_serial
16       'type': 'none',
17       'includes': [
18         '../../third_party/mojo/mojom_bindings_generator.gypi',
19       ],
20       'sources': [
21         'data_stream.mojom',
22         'data_stream_serialization.mojom',
23         'serial.mojom',
24         'serial_serialization.mojom',
25       ],
26     },
27     {
28       # GN version: //device/serial
29       'target_name': 'device_serial',
30       'type': 'static_library',
31       'conditions': [
32         ['use_udev == 1', {
33           'dependencies': [
34             '../udev_linux/udev.gyp:udev_linux',
35           ],
36         }, {
37           'sources!': [
38             'serial_device_enumerator_linux.cc',
39             'serial_device_enumerator_linux.h',
40           ],
41         }],
42       ],
43       'dependencies': [
44         'device_serial_mojo',
45         '../../net/net.gyp:net',
46         '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
47       ],
48       'export_dependent_settings': [
49         'device_serial_mojo',
50         '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
51       ],
52       'sources': [
53         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.cc',
54         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.h',
55         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.cc',
56         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.h',
57         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.cc',
58         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.h',
59         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.cc',
60         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.h',
61         'buffer.cc',
62         'buffer.h',
63         'data_receiver.cc',
64         'data_receiver.h',
65         'data_sender.cc',
66         'data_sender.h',
67         'data_sink_receiver.cc',
68         'data_sink_receiver.h',
69         'data_source_sender.cc',
70         'data_source_sender.h',
71         'serial_connection.cc',
72         'serial_connection.h',
73         'serial_connection_factory.cc',
74         'serial_connection_factory.h',
75         'serial_device_enumerator.cc',
76         'serial_device_enumerator.h',
77         'serial_device_enumerator_linux.cc',
78         'serial_device_enumerator_linux.h',
79         'serial_device_enumerator_mac.cc',
80         'serial_device_enumerator_mac.h',
81         'serial_device_enumerator_win.cc',
82         'serial_device_enumerator_win.h',
83         'serial_io_handler.cc',
84         'serial_io_handler.h',
85         'serial_io_handler_posix.cc',
86         'serial_io_handler_posix.h',
87         'serial_io_handler_win.cc',
88         'serial_io_handler_win.h',
89         'serial_service_impl.cc',
90         'serial_service_impl.h',
91       ],
92     },
93     {
94       # GN version: //device/serial:test_support
95       'target_name': 'device_serial_test_util',
96       'type': 'static_library',
97       'dependencies': [
98         'device_serial',
99         'device_serial_mojo',
100       ],
101       'sources': [
102         'test_serial_io_handler.cc',
103         'test_serial_io_handler.h',
104       ],
105     },
106   ],