diff options
-rw-r--r-- | BUILD.gn | 2 | ||||
-rw-r--r-- | chrome/BUILD.gn | 13 | ||||
-rw-r--r-- | chrome/browser/devtools/BUILD.gn | 125 | ||||
-rw-r--r-- | chrome/browser/resources/BUILD.gn | 34 | ||||
-rw-r--r-- | chrome/chrome_debugger.gypi | 1 | ||||
-rw-r--r-- | chrome/chrome_resources.gyp | 8 |
6 files changed, 183 insertions, 0 deletions
@@ -20,6 +20,7 @@ group("root") { #"//base(//build/toolchain/nacl:x86_newlib)", "//cc", + "//chrome/browser/devtools", "//chrome/browser/ui/views", "//chrome/common", "//chrome/plugin", @@ -127,6 +128,7 @@ group("root") { if (is_android) { deps -= [ "//cc", + "//chrome/browser/devtools", # Blocked on content. "//chrome/browser/ui/views", # Blocked on content. "//chrome/common", # Blocked on content. "//chrome/plugin", # Blocked on content. diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn index d700690..0e9c515 100644 --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn @@ -20,6 +20,19 @@ group("resources") { } } +# GYP version: chrome/chrome_resources.gyp:chrome_extra_resources +group("extra_resources") { + deps = [ + "//chrome/browser/resources:invalidations_resources", + "//chrome/browser/resources:memory_internals_resources", + "//chrome/browser/resources:net_internals_resources", + "//chrome/browser/resources:password_manager_internals_resources", + "//chrome/browser/resources:signin_internals_resources", + "//chrome/browser/resources:sync_internals_resources", + "//chrome/browser/resources:translate_internals_resources", + ] +} + # GYP version: chrome/chrome_resources.gyp:chrome_strings group("strings") { deps = [ diff --git a/chrome/browser/devtools/BUILD.gn b/chrome/browser/devtools/BUILD.gn new file mode 100644 index 0000000..7686363 --- /dev/null +++ b/chrome/browser/devtools/BUILD.gn @@ -0,0 +1,125 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +action("devtools_protocol_constants") { + script = "//content/public/browser/devtools_protocol_constants_generator.py" + + blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" + source_prereqs = [ blink_protocol ] + outputs = [ + "$target_gen_dir/devtools_protocol_constants.cc", + "$target_gen_dir/devtools_protocol_constants.h", + ] + + args = [ "chrome" ] + args += rebase_path(outputs, root_build_dir) + args += [ rebase_path(blink_protocol, root_build_dir) ] +} + +# GYP version: chrome/chrome_debugger.gypi:debugger +static_library("devtools") { + sources = [ + "device/adb/adb_client_socket.cc", + "device/adb/adb_client_socket.h", + "device/adb/adb_device_info_query.cc", + "device/adb/adb_device_info_query.h", + "device/adb/adb_device_provider.cc", + "device/adb/adb_device_provider.h", + "device/android_device_manager.cc", + "device/android_device_manager.h", + "device/android_web_socket.cc", + "device/devtools_android_bridge.cc", + "device/devtools_android_bridge.h", + "device/port_forwarding_controller.cc", + "device/port_forwarding_controller.h", + "device/self_device_provider.cc", + "device/self_device_provider.h", + "device/usb/android_rsa.cc", + "device/usb/android_rsa.h", + "device/usb/android_usb_device.cc", + "device/usb/android_usb_device.h", + "device/usb/android_usb_socket.cc", + "device/usb/android_usb_socket.h", + "device/usb/usb_device_provider.cc", + "device/usb/usb_device_provider.h", + "browser_list_tabcontents_provider.cc", + "browser_list_tabcontents_provider.h", + "chrome_devtools_manager_delegate.cc", + "chrome_devtools_manager_delegate.h", + "devtools_contents_resizing_strategy.cc", + "devtools_contents_resizing_strategy.h", + "devtools_embedder_message_dispatcher.cc", + "devtools_embedder_message_dispatcher.h", + "devtools_file_helper.cc", + "devtools_file_helper.h", + "devtools_file_system_indexer.cc", + "devtools_file_system_indexer.h", + "devtools_network_conditions.cc", + "devtools_network_conditions.h", + "devtools_network_controller.cc", + "devtools_network_controller.h", + "devtools_network_interceptor.cc", + "devtools_network_interceptor.h", + "devtools_network_transaction.cc", + "devtools_network_transaction.h", + "devtools_network_transaction_factory.cc", + "devtools_network_transaction_factory.h", + "devtools_protocol.cc", + "devtools_protocol.h", + "devtools_target_impl.cc", + "devtools_target_impl.h", + "devtools_targets_ui.cc", + "devtools_targets_ui.h", + "devtools_toggle_action.cc", + "devtools_toggle_action.h", + "devtools_ui_bindings.cc", + "devtools_ui_bindings.h", + "devtools_window.cc", + "devtools_window.h", + "remote_debugging_server.cc", + "remote_debugging_server.h", + ] + sources += get_target_outputs(":devtools_protocol_constants") + + # TODO(GYP) + # ['debug_devtools==1', { + # 'defines': [ + # 'DEBUG_DEVTOOLS=1', + # ], + # }], + if (is_win) { + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. + cflags = [ "/wd4267" ] + } + configs += [ "//build/config/compiler:wexit_time_destructors" ] + + deps = [ + ":devtools_protocol_constants", + "//base", + "//chrome:extra_resources", + "//chrome:resources", + "//chrome:strings", + "//chrome/app/theme:theme_resources", + "//chrome/common/extensions/api", + "//content/public/browser", + "//net", + "//net:http_server", + "//skia", + "//third_party/icu", + "//third_party/leveldatabase", + ] + if (is_android) { + sources -= [ + "device/usb/android_rsa.cc", + "browser_list_tabcontents_provider.cc", + "devtools_file_system_indexer.cc", + "devtools_target_impl.cc", + "devtools_window.cc", + "devtools_window_base.cc", + "remote_debugging_server.cc", + ] + } else { + deps += [ "//third_party/libusb" ] + } +} diff --git a/chrome/browser/resources/BUILD.gn b/chrome/browser/resources/BUILD.gn new file mode 100644 index 0000000..aa53168 --- /dev/null +++ b/chrome/browser/resources/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//tools/grit/grit_rule.gni") + +grit("memory_internals_resources") { + source = "memory_internals_resources.grd" +} + +grit("net_internals_resources") { + source = "net_internals_resources.grd" +} + +grit("invalidations_resources") { + source = "invalidations_resources.grd" +} + +grit("password_manager_internals_resources") { + source = "password_manager_internals_resources.grd" +} + +grit("signin_internals_resources") { + source = "signin_internals_resources.grd" +} + +grit("sync_internals_resources") { + source = "sync_internals_resources.grd" +} + +grit("translate_internals_resources") { + source = "translate_internals_resources.grd" +} + diff --git a/chrome/chrome_debugger.gypi b/chrome/chrome_debugger.gypi index fcd4cb1..b105718 100644 --- a/chrome/chrome_debugger.gypi +++ b/chrome/chrome_debugger.gypi @@ -5,6 +5,7 @@ { 'targets': [ { + # GN version: //chrome/browser/devtools 'target_name': 'debugger', 'type': 'static_library', 'variables': { 'enable_wexit_time_destructors': 1, }, diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp index 75f3bb2..8be9db8 100644 --- a/chrome/chrome_resources.gyp +++ b/chrome/chrome_resources.gyp @@ -10,6 +10,7 @@ }, 'targets': [ { + # GN version: //chrome:extra_resources 'target_name': 'chrome_extra_resources', 'type': 'none', # These resources end up in resources.pak because they are resources @@ -17,6 +18,7 @@ # it easier for us to reference them internally. 'actions': [ { + # GN version: //chrome/browser/resources:memory_internals_resources 'action_name': 'generate_memory_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/memory_internals_resources.grd', @@ -24,6 +26,7 @@ 'includes': [ '../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:net_internals_resources 'action_name': 'generate_net_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/net_internals_resources.grd', @@ -31,6 +34,7 @@ 'includes': [ '../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:invalidations_resources 'action_name': 'generate_invalidations_resources', 'variables': { 'grit_grd_file': 'browser/resources/invalidations_resources.grd', @@ -38,6 +42,7 @@ 'includes': ['../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:password_manager_internals_resources 'action_name': 'generate_password_manager_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd', @@ -45,6 +50,7 @@ 'includes': [ '../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:signin_internals_resources 'action_name': 'generate_signin_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/signin_internals_resources.grd', @@ -52,6 +58,7 @@ 'includes': ['../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:sync_internals_resources 'action_name': 'generate_sync_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/sync_internals_resources.grd', @@ -59,6 +66,7 @@ 'includes': [ '../build/grit_action.gypi' ], }, { + # GN version: //chrome/browser/resources:translate_internals_resources 'action_name': 'generate_translate_internals_resources', 'variables': { 'grit_grd_file': 'browser/resources/translate_internals_resources.grd', |