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
|
# 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': [
'../../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
],
'sources': [
'serial.mojom',
],
},
{
# GN version: //device/serial
'target_name': 'device_serial',
'type': 'static_library',
'include_dirs': [
'../..',
'<(SHARED_INTERMEDIATE_DIR)',
],
'conditions': [
['OS=="linux"', {
'dependencies': [
'../../build/linux/system.gyp:udev',
],
}],
],
'dependencies': [
'../../mojo/mojo.gyp:mojo_cpp_bindings',
'../../net/net.gyp:net',
],
'export_dependent_settings': [
'../../mojo/mojo.gyp:mojo_cpp_bindings',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.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_util
'target_name': 'device_serial_test_util',
'type': 'static_library',
'dependencies': [
'device_serial',
],
'include_dirs': [
'../..',
],
'sources': [
'test_serial_io_handler.cc',
'test_serial_io_handler.h',
],
},
],
}
|