Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / chrome / browser / devtools / BUILD.gn
blob7565b9e8b5c1d5bc4599b33d0821cbd1548fbf08
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 action("devtools_protocol_constants") {
6   script = "//content/public/browser/devtools_protocol_constants_generator.py"
8   blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
9   inputs = [ blink_protocol ]
10   outputs = [
11     "$target_gen_dir/devtools_protocol_constants.cc",
12     "$target_gen_dir/devtools_protocol_constants.h",
13   ]
15   args = [ "chrome" ]
16   args += rebase_path(outputs, root_build_dir)
17   args += [ rebase_path(blink_protocol, root_build_dir) ]
20 # GYP version: chrome/chrome_debugger.gypi:debugger
21 static_library("devtools") {
22   # Note: new sources and deps should be generally added in (!is_android) below.
23   sources = [
24     "chrome_devtools_manager_delegate.cc",
25     "chrome_devtools_manager_delegate.h",
26     "devtools_network_conditions.cc",
27     "devtools_network_conditions.h",
28     "devtools_network_controller.cc",
29     "devtools_network_controller.h",
30     "devtools_network_interceptor.cc",
31     "devtools_network_interceptor.h",
32     "devtools_network_transaction.cc",
33     "devtools_network_transaction.h",
34     "devtools_network_transaction_factory.cc",
35     "devtools_network_transaction_factory.h",
36     "devtools_protocol.cc",
37     "devtools_protocol.h"
38   ]
39   sources += get_target_outputs(":devtools_protocol_constants")
41   # TODO(GYP)
42   #     ['debug_devtools==1', {
43   #       'defines': [
44   #         'DEBUG_DEVTOOLS=1',
45   #        ],
46   #     }],
47   if (is_win) {
48     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
49     cflags = [ "/wd4267" ]
50   }
51   configs += [ "//build/config/compiler:wexit_time_destructors" ]
53   deps = [
54     ":devtools_protocol_constants",
55     "//base",
56     "//content/public/browser",
57     "//net",
58   ]
60   if (!is_android) {
61     deps += [
62       "//chrome:extra_resources",
63       "//chrome:resources",
64       "//chrome:strings",
65       "//chrome/app/theme:theme_resources",
66       "//chrome/common/extensions/api",
67       "//chrome/common/extensions/api:api_registration",
68       "//net:http_server",
69       "//skia",
70       "//third_party/icu",
71       "//third_party/leveldatabase",
72       "//third_party/libusb"
73     ]
74     sources += [
75       "device/adb/adb_client_socket.cc",
76       "device/adb/adb_client_socket.h",
77       "device/adb/adb_device_info_query.cc",
78       "device/adb/adb_device_info_query.h",
79       "device/adb/adb_device_provider.cc",
80       "device/adb/adb_device_provider.h",
81       "device/android_device_manager.cc",
82       "device/android_device_manager.h",
83       "device/android_web_socket.cc",
84       "device/devtools_android_bridge.cc",
85       "device/devtools_android_bridge.h",
86       "device/port_forwarding_controller.cc",
87       "device/port_forwarding_controller.h",
88       "device/self_device_provider.cc",
89       "device/self_device_provider.h",
90       "device/usb/android_rsa.cc",
91       "device/usb/android_rsa.h",
92       "device/usb/android_usb_device.cc",
93       "device/usb/android_usb_device.h",
94       "device/usb/android_usb_socket.cc",
95       "device/usb/android_usb_socket.h",
96       "device/usb/usb_device_provider.cc",
97       "device/usb/usb_device_provider.h",
98       "browser_list_tabcontents_provider.cc",
99       "browser_list_tabcontents_provider.h",
100       "devtools_contents_resizing_strategy.cc",
101       "devtools_contents_resizing_strategy.h",
102       "devtools_embedder_message_dispatcher.cc",
103       "devtools_embedder_message_dispatcher.h",
104       "devtools_file_helper.cc",
105       "devtools_file_helper.h",
106       "devtools_file_system_indexer.cc",
107       "devtools_file_system_indexer.h",
108       "devtools_target_impl.cc",
109       "devtools_target_impl.h",
110       "devtools_targets_ui.cc",
111       "devtools_targets_ui.h",
112       "devtools_toggle_action.cc",
113       "devtools_toggle_action.h",
114       "devtools_ui_bindings.cc",
115       "devtools_ui_bindings.h",
116       "devtools_window.cc",
117       "devtools_window.h",
118       "remote_debugging_server.cc",
119       "remote_debugging_server.h"
120     ]
121   }