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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# 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.
if (!is_android) {
import("//tools/grit/grit_rule.gni")
}
action("devtools_protocol_constants") {
script = "devtools_protocol_constants_generator.py"
blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
browser_protocol = "//content/browser/devtools/browser_protocol.json"
inputs = [
blink_protocol,
browser_protocol,
]
outputs = [
"$target_gen_dir/devtools_protocol_constants.cc",
"$target_gen_dir/devtools_protocol_constants.h",
]
args = [ "chrome" ]
args += rebase_path(outputs, root_build_dir)
args += [ rebase_path(blink_protocol, root_build_dir) ]
args += [ rebase_path(browser_protocol, root_build_dir) ]
}
# GYP version: chrome/chrome_debugger.gypi:debugger
static_library("devtools") {
# Note: new sources and deps should be generally added in (!is_android) below.
sources = [
"devtools_network_conditions.cc",
"devtools_network_conditions.h",
"devtools_network_controller.cc",
"devtools_network_controller.h",
"devtools_network_interceptor.cc",
"devtools_network_interceptor.h",
"devtools_network_protocol_handler.cc",
"devtools_network_protocol_handler.h",
"devtools_network_transaction.cc",
"devtools_network_transaction.h",
"devtools_network_transaction_factory.cc",
"devtools_network_transaction_factory.h",
"devtools_protocol.cc",
"devtools_protocol.h",
]
sources += get_target_outputs(":devtools_protocol_constants")
configs += [
"//build/config/compiler:no_size_t_to_int_warning",
"//build/config/compiler:wexit_time_destructors",
"//third_party/WebKit/public:debug_devtools",
]
deps = [
":devtools_protocol_constants",
"//base",
"//content/public/browser",
"//net",
]
if (!is_android) {
deps += [
"//chrome/app/theme:theme_resources",
"//chrome/common/extensions/api",
"//chrome/common/extensions/api:api_registration",
"//chrome:extra_resources",
"//chrome:resources",
"//chrome:strings",
"//net:http_server",
"//skia",
"//third_party/icu",
"//third_party/leveldatabase",
"//third_party/libusb",
":webrtc_device_provider_resources",
]
sources += [
"browser_list_tabcontents_provider.cc",
"browser_list_tabcontents_provider.h",
"chrome_devtools_manager_delegate.cc",
"chrome_devtools_manager_delegate.h",
"device/adb/adb_client_socket.cc",
"device/adb/adb_client_socket.h",
"device/adb/adb_device_provider.cc",
"device/adb/adb_device_provider.h",
"device/android_device_info_query.cc",
"device/android_device_manager.cc",
"device/android_device_manager.h",
"device/android_web_socket.cc",
"device/devtools_android_bridge.cc",
"device/devtools_android_bridge.h",
"device/port_forwarding_controller.cc",
"device/port_forwarding_controller.h",
"device/self_device_provider.cc",
"device/self_device_provider.h",
"device/usb/android_rsa.cc",
"device/usb/android_rsa.h",
"device/usb/android_usb_device.cc",
"device/usb/android_usb_device.h",
"device/usb/android_usb_socket.cc",
"device/usb/android_usb_socket.h",
"device/usb/usb_device_provider.cc",
"device/usb/usb_device_provider.h",
"device/webrtc/devtools_bridge_client.cc",
"device/webrtc/devtools_bridge_client.h",
"device/webrtc/devtools_bridge_instances_request.cc",
"device/webrtc/devtools_bridge_instances_request.h",
"device/webrtc/send_command_request.cc",
"device/webrtc/send_command_request.h",
"device/webrtc/webrtc_device_provider.cc",
"device/webrtc/webrtc_device_provider.h",
"devtools_contents_resizing_strategy.cc",
"devtools_contents_resizing_strategy.h",
"devtools_embedder_message_dispatcher.cc",
"devtools_embedder_message_dispatcher.h",
"devtools_file_helper.cc",
"devtools_file_helper.h",
"devtools_file_system_indexer.cc",
"devtools_file_system_indexer.h",
"devtools_target_impl.cc",
"devtools_target_impl.h",
"devtools_targets_ui.cc",
"devtools_targets_ui.h",
"devtools_toggle_action.cc",
"devtools_toggle_action.h",
"devtools_ui_bindings.cc",
"devtools_ui_bindings.h",
"devtools_window.cc",
"devtools_window.h",
"remote_debugging_server.cc",
"remote_debugging_server.h",
]
}
}
if (!is_android) {
# GYP version: chrome/browser/devtools/webrtc_device_provider_resources.gyp:webrtc_device_provider_resources
grit("webrtc_device_provider_resources") {
source = "device/webrtc/resources.grd"
output_dir = "$root_gen_dir/chrome"
outputs = [
"grit/webrtc_device_provider_resources.h",
"grit/webrtc_device_provider_resources_map.cc",
"grit/webrtc_device_provider_resources_map.h",
"webrtc_device_provider_resources.pak",
]
}
}
|