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