[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / chrome / browser / devtools / BUILD.gn
blobd9e1904ae532663230bb5e9831fc67dc2c9e0d34
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.
5 if (!is_android) {
6   import("//tools/grit/grit_rule.gni")
9 action("devtools_protocol_constants") {
10   script = "devtools_protocol_constants_generator.py"
12   blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
13   browser_protocol = "//content/browser/devtools/browser_protocol.json"
14   inputs = [
15     blink_protocol,
16     browser_protocol,
17   ]
18   outputs = [
19     "$target_gen_dir/devtools_protocol_constants.cc",
20     "$target_gen_dir/devtools_protocol_constants.h",
21   ]
23   args = [ "chrome" ]
24   args += rebase_path(outputs, root_build_dir)
25   args += [ rebase_path(blink_protocol, root_build_dir) ]
26   args += [ rebase_path(browser_protocol, root_build_dir) ]
29 # GYP version: chrome/chrome_debugger.gypi:debugger
30 static_library("devtools") {
31   # Note: new sources and deps should be generally added in (!is_android) below.
32   sources = [
33     "chrome_devtools_manager_delegate.cc",
34     "chrome_devtools_manager_delegate.h",
35     "devtools_network_conditions.cc",
36     "devtools_network_conditions.h",
37     "devtools_network_controller.cc",
38     "devtools_network_controller.h",
39     "devtools_network_interceptor.cc",
40     "devtools_network_interceptor.h",
41     "devtools_network_protocol_handler.cc",
42     "devtools_network_protocol_handler.h",
43     "devtools_network_transaction.cc",
44     "devtools_network_transaction.h",
45     "devtools_network_transaction_factory.cc",
46     "devtools_network_transaction_factory.h",
47     "devtools_protocol.cc",
48     "devtools_protocol.h",
49   ]
50   sources += get_target_outputs(":devtools_protocol_constants")
52   configs += [
53     "//build/config/compiler:no_size_t_to_int_warning",
54     "//build/config/compiler:wexit_time_destructors",
55     "//third_party/WebKit/public:debug_devtools",
56   ]
58   deps = [
59     ":devtools_protocol_constants",
60     "//base",
61     "//content/public/browser",
62     "//net",
63   ]
65   if (!is_android) {
66     deps += [
67       "//chrome/app/theme:theme_resources",
68       "//chrome/common/extensions/api",
69       "//chrome:extra_resources",
70       "//chrome:resources",
71       "//chrome:strings",
72       "//components/devtools_http_handler",
73       "//net:http_server",
74       "//skia",
75       "//third_party/icu",
76       "//third_party/leveldatabase",
77       "//third_party/libusb",
78       ":webrtc_device_provider_resources",
79     ]
80     sources += [
81       "chrome_devtools_discovery_provider.cc",
82       "chrome_devtools_discovery_provider.h",
83       "device/adb/adb_client_socket.cc",
84       "device/adb/adb_client_socket.h",
85       "device/adb/adb_device_provider.cc",
86       "device/adb/adb_device_provider.h",
87       "device/android_device_info_query.cc",
88       "device/android_device_manager.cc",
89       "device/android_device_manager.h",
90       "device/android_web_socket.cc",
91       "device/devtools_android_bridge.cc",
92       "device/devtools_android_bridge.h",
93       "device/port_forwarding_controller.cc",
94       "device/port_forwarding_controller.h",
95       "device/self_device_provider.cc",
96       "device/self_device_provider.h",
97       "device/usb/android_rsa.cc",
98       "device/usb/android_rsa.h",
99       "device/usb/android_usb_device.cc",
100       "device/usb/android_usb_device.h",
101       "device/usb/android_usb_socket.cc",
102       "device/usb/android_usb_socket.h",
103       "device/usb/usb_device_provider.cc",
104       "device/usb/usb_device_provider.h",
105       "device/webrtc/devtools_bridge_client.cc",
106       "device/webrtc/devtools_bridge_client.h",
107       "device/webrtc/devtools_bridge_instances_request.cc",
108       "device/webrtc/devtools_bridge_instances_request.h",
109       "device/webrtc/send_command_request.cc",
110       "device/webrtc/send_command_request.h",
111       "device/webrtc/webrtc_device_provider.cc",
112       "device/webrtc/webrtc_device_provider.h",
113       "devtools_contents_resizing_strategy.cc",
114       "devtools_contents_resizing_strategy.h",
115       "devtools_embedder_message_dispatcher.cc",
116       "devtools_embedder_message_dispatcher.h",
117       "devtools_file_helper.cc",
118       "devtools_file_helper.h",
119       "devtools_file_system_indexer.cc",
120       "devtools_file_system_indexer.h",
121       "devtools_target_impl.cc",
122       "devtools_target_impl.h",
123       "devtools_targets_ui.cc",
124       "devtools_targets_ui.h",
125       "devtools_toggle_action.cc",
126       "devtools_toggle_action.h",
127       "devtools_ui_bindings.cc",
128       "devtools_ui_bindings.h",
129       "devtools_window.cc",
130       "devtools_window.h",
131       "remote_debugging_server.cc",
132       "remote_debugging_server.h",
133     ]
134   }
137 if (!is_android) {
138   # GYP version: chrome/browser/devtools/webrtc_device_provider_resources.gyp:webrtc_device_provider_resources
139   grit("webrtc_device_provider_resources") {
140     source = "device/webrtc/resources.grd"
141     output_dir = "$root_gen_dir/chrome"
142     outputs = [
143       "grit/webrtc_device_provider_resources.h",
144       "grit/webrtc_device_provider_resources_map.cc",
145       "grit/webrtc_device_provider_resources_map.h",
146       "webrtc_device_provider_resources.pak",
147     ]
148   }