Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: chrome/browser/devtools/BUILD.gn

Issue 378303002: [DevTools] Do not build most of chrome/browser/devtools on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GN and unittests Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome_debugger.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 action("devtools_protocol_constants") { 5 action("devtools_protocol_constants") {
6 script = "//content/public/browser/devtools_protocol_constants_generator.py" 6 script = "//content/public/browser/devtools_protocol_constants_generator.py"
7 7
8 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" 8 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
9 source_prereqs = [ blink_protocol ] 9 source_prereqs = [ blink_protocol ]
10 outputs = [ 10 outputs = [
11 "$target_gen_dir/devtools_protocol_constants.cc", 11 "$target_gen_dir/devtools_protocol_constants.cc",
12 "$target_gen_dir/devtools_protocol_constants.h", 12 "$target_gen_dir/devtools_protocol_constants.h",
13 ] 13 ]
14 14
15 args = [ "chrome" ] 15 args = [ "chrome" ]
16 args += rebase_path(outputs, root_build_dir) 16 args += rebase_path(outputs, root_build_dir)
17 args += [ rebase_path(blink_protocol, root_build_dir) ] 17 args += [ rebase_path(blink_protocol, root_build_dir) ]
18 } 18 }
19 19
20 # GYP version: chrome/chrome_debugger.gypi:debugger 20 # GYP version: chrome/chrome_debugger.gypi:debugger
21 static_library("devtools") { 21 static_library("devtools") {
22 # Note: new sources and deps should be generally added in (!is_android) below.
22 sources = [ 23 sources = [
23 "device/adb/adb_client_socket.cc",
24 "device/adb/adb_client_socket.h",
25 "device/adb/adb_device_info_query.cc",
26 "device/adb/adb_device_info_query.h",
27 "device/adb/adb_device_provider.cc",
28 "device/adb/adb_device_provider.h",
29 "device/android_device_manager.cc",
30 "device/android_device_manager.h",
31 "device/android_web_socket.cc",
32 "device/devtools_android_bridge.cc",
33 "device/devtools_android_bridge.h",
34 "device/port_forwarding_controller.cc",
35 "device/port_forwarding_controller.h",
36 "device/self_device_provider.cc",
37 "device/self_device_provider.h",
38 "device/usb/android_rsa.cc",
39 "device/usb/android_rsa.h",
40 "device/usb/android_usb_device.cc",
41 "device/usb/android_usb_device.h",
42 "device/usb/android_usb_socket.cc",
43 "device/usb/android_usb_socket.h",
44 "device/usb/usb_device_provider.cc",
45 "device/usb/usb_device_provider.h",
46 "browser_list_tabcontents_provider.cc",
47 "browser_list_tabcontents_provider.h",
48 "chrome_devtools_manager_delegate.cc", 24 "chrome_devtools_manager_delegate.cc",
49 "chrome_devtools_manager_delegate.h", 25 "chrome_devtools_manager_delegate.h",
50 "devtools_contents_resizing_strategy.cc",
51 "devtools_contents_resizing_strategy.h",
52 "devtools_embedder_message_dispatcher.cc",
53 "devtools_embedder_message_dispatcher.h",
54 "devtools_file_helper.cc",
55 "devtools_file_helper.h",
56 "devtools_file_system_indexer.cc",
57 "devtools_file_system_indexer.h",
58 "devtools_network_conditions.cc", 26 "devtools_network_conditions.cc",
59 "devtools_network_conditions.h", 27 "devtools_network_conditions.h",
60 "devtools_network_controller.cc", 28 "devtools_network_controller.cc",
61 "devtools_network_controller.h", 29 "devtools_network_controller.h",
62 "devtools_network_interceptor.cc", 30 "devtools_network_interceptor.cc",
63 "devtools_network_interceptor.h", 31 "devtools_network_interceptor.h",
64 "devtools_network_transaction.cc", 32 "devtools_network_transaction.cc",
65 "devtools_network_transaction.h", 33 "devtools_network_transaction.h",
66 "devtools_network_transaction_factory.cc", 34 "devtools_network_transaction_factory.cc",
67 "devtools_network_transaction_factory.h", 35 "devtools_network_transaction_factory.h",
68 "devtools_protocol.cc", 36 "devtools_protocol.cc",
69 "devtools_protocol.h", 37 "devtools_protocol.h"
70 "devtools_target_impl.cc",
71 "devtools_target_impl.h",
72 "devtools_targets_ui.cc",
73 "devtools_targets_ui.h",
74 "devtools_toggle_action.cc",
75 "devtools_toggle_action.h",
76 "devtools_ui_bindings.cc",
77 "devtools_ui_bindings.h",
78 "devtools_window.cc",
79 "devtools_window.h",
80 "remote_debugging_server.cc",
81 "remote_debugging_server.h",
82 ] 38 ]
83 sources += get_target_outputs(":devtools_protocol_constants") 39 sources += get_target_outputs(":devtools_protocol_constants")
84 40
85 # TODO(GYP) 41 # TODO(GYP)
86 # ['debug_devtools==1', { 42 # ['debug_devtools==1', {
87 # 'defines': [ 43 # 'defines': [
88 # 'DEBUG_DEVTOOLS=1', 44 # 'DEBUG_DEVTOOLS=1',
89 # ], 45 # ],
90 # }], 46 # }],
91 if (is_win) { 47 if (is_win) {
92 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
93 cflags = [ "/wd4267" ] 49 cflags = [ "/wd4267" ]
94 } 50 }
95 configs += [ "//build/config/compiler:wexit_time_destructors" ] 51 configs += [ "//build/config/compiler:wexit_time_destructors" ]
96 52
97 deps = [ 53 deps = [
98 ":devtools_protocol_constants", 54 ":devtools_protocol_constants",
99 "//base", 55 "//base",
100 "//chrome:extra_resources",
101 "//chrome:resources",
102 "//chrome:strings",
103 "//chrome/app/theme:theme_resources",
104 "//chrome/common/extensions/api",
105 "//content/public/browser", 56 "//content/public/browser",
106 "//net", 57 "//net",
107 "//net:http_server",
108 "//skia",
109 "//third_party/icu",
110 "//third_party/leveldatabase",
111 ] 58 ]
112 if (is_android) { 59
113 sources -= [ 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",
114 "device/usb/android_rsa.cc", 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",
115 "browser_list_tabcontents_provider.cc", 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",
116 "devtools_file_system_indexer.cc", 105 "devtools_file_system_indexer.cc",
106 "devtools_file_system_indexer.h",
117 "devtools_target_impl.cc", 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",
118 "devtools_ui_bindings.cc", 113 "devtools_ui_bindings.cc",
114 "devtools_ui_bindings.h",
119 "devtools_window.cc", 115 "devtools_window.cc",
120 "devtools_window_base.cc", 116 "devtools_window.h",
121 "remote_debugging_server.cc", 117 "remote_debugging_server.cc",
118 "remote_debugging_server.h"
122 ] 119 ]
123 } else {
124 deps += [ "//third_party/libusb" ]
125 } 120 }
126 } 121 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_debugger.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698