Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / devtools / BUILD.gn
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.
4
5 action("devtools_protocol_constants") {
6   script = "//content/public/browser/devtools_protocol_constants_generator.py"
7
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   ]
14
15   args = [ "chrome" ]
16   args += rebase_path(outputs, root_build_dir)
17   args += [ rebase_path(blink_protocol, root_build_dir) ]
18 }
19
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")
40
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" ]
52
53   deps = [
54     ":devtools_protocol_constants",
55     "//base",
56     "//content/public/browser",
57     "//net",
58   ]
59
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       "//net:http_server",
68       "//skia",
69       "//third_party/icu",
70       "//third_party/leveldatabase",
71       "//third_party/libusb"
72     ]
73     sources += [
74       "device/adb/adb_client_socket.cc",
75       "device/adb/adb_client_socket.h",
76       "device/adb/adb_device_info_query.cc",
77       "device/adb/adb_device_info_query.h",
78       "device/adb/adb_device_provider.cc",
79       "device/adb/adb_device_provider.h",
80       "device/android_device_manager.cc",
81       "device/android_device_manager.h",
82       "device/android_web_socket.cc",
83       "device/devtools_android_bridge.cc",
84       "device/devtools_android_bridge.h",
85       "device/port_forwarding_controller.cc",
86       "device/port_forwarding_controller.h",
87       "device/self_device_provider.cc",
88       "device/self_device_provider.h",
89       "device/usb/android_rsa.cc",
90       "device/usb/android_rsa.h",
91       "device/usb/android_usb_device.cc",
92       "device/usb/android_usb_device.h",
93       "device/usb/android_usb_socket.cc",
94       "device/usb/android_usb_socket.h",
95       "device/usb/usb_device_provider.cc",
96       "device/usb/usb_device_provider.h",
97       "browser_list_tabcontents_provider.cc",
98       "browser_list_tabcontents_provider.h",
99       "devtools_contents_resizing_strategy.cc",
100       "devtools_contents_resizing_strategy.h",
101       "devtools_embedder_message_dispatcher.cc",
102       "devtools_embedder_message_dispatcher.h",
103       "devtools_file_helper.cc",
104       "devtools_file_helper.h",
105       "devtools_file_system_indexer.cc",
106       "devtools_file_system_indexer.h",
107       "devtools_target_impl.cc",
108       "devtools_target_impl.h",
109       "devtools_targets_ui.cc",
110       "devtools_targets_ui.h",
111       "devtools_toggle_action.cc",
112       "devtools_toggle_action.h",
113       "devtools_ui_bindings.cc",
114       "devtools_ui_bindings.h",
115       "devtools_window.cc",
116       "devtools_window.h",
117       "remote_debugging_server.cc",
118       "remote_debugging_server.h"
119     ]
120   }
121 }