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 5action("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 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 ] 15 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) ] 20} 21 22# GYP version: chrome/chrome_debugger.gypi:debugger 23static_library("devtools") { 24 # Note: new sources and deps should be generally added in (!is_android) below. 25 sources = [ 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_protocol_handler.cc", 33 "devtools_network_protocol_handler.h", 34 "devtools_network_transaction.cc", 35 "devtools_network_transaction.h", 36 "devtools_network_transaction_factory.cc", 37 "devtools_network_transaction_factory.h", 38 "devtools_protocol.cc", 39 "devtools_protocol.h" 40 ] 41 sources += get_target_outputs(":devtools_protocol_constants") 42 43 # TODO(GYP) 44 # ['debug_devtools==1', { 45 # 'defines': [ 46 # 'DEBUG_DEVTOOLS=1', 47 # ], 48 # }], 49 if (is_win) { 50 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 51 cflags = [ "/wd4267" ] 52 } 53 configs += [ "//build/config/compiler:wexit_time_destructors" ] 54 55 deps = [ 56 ":devtools_protocol_constants", 57 "//base", 58 "//content/public/browser", 59 "//net", 60 ] 61 62 if (!is_android) { 63 deps += [ 64 "//chrome:extra_resources", 65 "//chrome:resources", 66 "//chrome:strings", 67 "//chrome/app/theme:theme_resources", 68 "//chrome/common/extensions/api", 69 "//chrome/common/extensions/api:api_registration", 70 "//net:http_server", 71 "//skia", 72 "//third_party/icu", 73 "//third_party/leveldatabase", 74 "//third_party/libusb" 75 ] 76 sources += [ 77 "device/adb/adb_client_socket.cc", 78 "device/adb/adb_client_socket.h", 79 "device/adb/adb_device_info_query.cc", 80 "device/adb/adb_device_info_query.h", 81 "device/adb/adb_device_provider.cc", 82 "device/adb/adb_device_provider.h", 83 "device/android_device_manager.cc", 84 "device/android_device_manager.h", 85 "device/android_web_socket.cc", 86 "device/devtools_android_bridge.cc", 87 "device/devtools_android_bridge.h", 88 "device/port_forwarding_controller.cc", 89 "device/port_forwarding_controller.h", 90 "device/self_device_provider.cc", 91 "device/self_device_provider.h", 92 "device/usb/android_rsa.cc", 93 "device/usb/android_rsa.h", 94 "device/usb/android_usb_device.cc", 95 "device/usb/android_usb_device.h", 96 "device/usb/android_usb_socket.cc", 97 "device/usb/android_usb_socket.h", 98 "device/usb/usb_device_provider.cc", 99 "device/usb/usb_device_provider.h", 100 "browser_list_tabcontents_provider.cc", 101 "browser_list_tabcontents_provider.h", 102 "chrome_devtools_manager_delegate.cc", 103 "chrome_devtools_manager_delegate.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 } 126} 127