Add Search Service in Enhanced Bookmark Bridge
[chromium-blink-merge.git] / device / serial / serial.gyp
blob7da99be565495dad142e28ad9642c16896117d13
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         '../../mojo/public/tools/bindings/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             '../../build/linux/system.gyp:udev',
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         '../../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
46         '../../net/net.gyp:net',
47       ],
48       'export_dependent_settings': [
49         'device_serial_mojo',
50         '../../mojo/public/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         'async_waiter.cc',
62         'async_waiter.h',
63         'buffer.cc',
64         'buffer.h',
65         'data_receiver.cc',
66         'data_receiver.h',
67         'data_sender.cc',
68         'data_sender.h',
69         'data_sink_receiver.cc',
70         'data_sink_receiver.h',
71         'data_source_sender.cc',
72         'data_source_sender.h',
73         'serial_connection.cc',
74         'serial_connection.h',
75         'serial_connection_factory.cc',
76         'serial_connection_factory.h',
77         'serial_device_enumerator.cc',
78         'serial_device_enumerator.h',
79         'serial_device_enumerator_linux.cc',
80         'serial_device_enumerator_linux.h',
81         'serial_device_enumerator_mac.cc',
82         'serial_device_enumerator_mac.h',
83         'serial_device_enumerator_win.cc',
84         'serial_device_enumerator_win.h',
85         'serial_io_handler.cc',
86         'serial_io_handler.h',
87         'serial_io_handler_posix.cc',
88         'serial_io_handler_posix.h',
89         'serial_io_handler_win.cc',
90         'serial_io_handler_win.h',
91         'serial_service_impl.cc',
92         'serial_service_impl.h',
93       ],
94     },
95     {
96       # GN version: //device/serial:test_util
97       'target_name': 'device_serial_test_util',
98       'type': 'static_library',
99       'dependencies': [
100         'device_serial',
101         'device_serial_mojo',
102       ],
103       'sources': [
104         'test_serial_io_handler.cc',
105         'test_serial_io_handler.h',
106       ],
107     },
108   ],