1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //device/serial:serial_mojo
'target_name': 'device_serial_mojo',
# The type of this target must be none. This is so that resources can
# depend upon this target for generating the js bindings files. Any
# generated cpp files must be listed explicitly in device_serial
'type': 'none',
'includes': [
'../../third_party/mojo/mojom_bindings_generator.gypi',
],
'sources': [
'data_stream.mojom',
'data_stream_serialization.mojom',
'serial.mojom',
'serial_serialization.mojom',
],
},
{
# GN version: //device/serial
'target_name': 'device_serial',
'type': 'static_library',
'conditions': [
['chromeos==1', {
'dependencies': [
'../../chromeos/chromeos.gyp:chromeos',
],
}],
['use_udev == 1', {
'dependencies': [
'../udev_linux/udev.gyp:udev_linux',
],
}, {
'sources!': [
'serial_device_enumerator_linux.cc',
'serial_device_enumerator_linux.h',
],
}],
],
'dependencies': [
'device_serial_mojo',
'../../net/net.gyp:net',
'../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'../../third_party/re2/re2.gyp:re2',
],
'export_dependent_settings': [
'device_serial_mojo',
'../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.h',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial_serialization.mojom.h',
'buffer.cc',
'buffer.h',
'data_receiver.cc',
'data_receiver.h',
'data_sender.cc',
'data_sender.h',
'data_sink_receiver.cc',
'data_sink_receiver.h',
'data_source_sender.cc',
'data_source_sender.h',
'serial_connection.cc',
'serial_connection.h',
'serial_connection_factory.cc',
'serial_connection_factory.h',
'serial_device_enumerator.cc',
'serial_device_enumerator.h',
'serial_device_enumerator_linux.cc',
'serial_device_enumerator_linux.h',
'serial_device_enumerator_mac.cc',
'serial_device_enumerator_mac.h',
'serial_device_enumerator_win.cc',
'serial_device_enumerator_win.h',
'serial_io_handler.cc',
'serial_io_handler.h',
'serial_io_handler_posix.cc',
'serial_io_handler_posix.h',
'serial_io_handler_win.cc',
'serial_io_handler_win.h',
'serial_service_impl.cc',
'serial_service_impl.h',
],
},
{
# GN version: //device/serial:test_support
'target_name': 'device_serial_test_util',
'type': 'static_library',
'dependencies': [
'device_serial',
'device_serial_mojo',
],
'sources': [
'test_serial_io_handler.cc',
'test_serial_io_handler.h',
],
},
],
}
|