| OLD | NEW |
| (Empty) |
| 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 import("//build/config/ui.gni") | |
| 6 import("//sky/engine/config.gni") | |
| 7 | |
| 8 visibility = [ "//sky/*" ] | |
| 9 | |
| 10 gen_dir = "$root_gen_dir/v8_inspector" | |
| 11 | |
| 12 component("v8_inspector") { | |
| 13 output_name = "v8_inspector" | |
| 14 | |
| 15 deps = [ | |
| 16 ":protocol_sources", | |
| 17 "//base", | |
| 18 "//mojo/public/cpp/application", | |
| 19 "//mojo/public/interfaces/application", | |
| 20 "//sky/engine/core", # FIXME: Remove. | |
| 21 "//sky/engine/platform", # FIXME: Remove. | |
| 22 "//sky/services/inspector:bindings", | |
| 23 "//sky/engine/core:core_generated", # FIXME: Remove. | |
| 24 "//sky/engine/wtf", | |
| 25 ] | |
| 26 | |
| 27 configs += [ | |
| 28 "//sky/engine:config", | |
| 29 "//sky/engine:inside_blink", | |
| 30 "//sky/engine:non_test_config", | |
| 31 ] | |
| 32 | |
| 33 sources = [ | |
| 34 "AsyncCallStackTracker.cpp", | |
| 35 "AsyncCallStackTracker.h", | |
| 36 "ContentSearchUtils.cpp", | |
| 37 "ContentSearchUtils.h", | |
| 38 "InjectedScript.cpp", | |
| 39 "InjectedScript.h", | |
| 40 "InjectedScriptBase.cpp", | |
| 41 "InjectedScriptBase.h", | |
| 42 "InjectedScriptManager.cpp", | |
| 43 "InjectedScriptManager.h", | |
| 44 "inspector_backend_mojo.cc", | |
| 45 "inspector_backend_mojo.h", | |
| 46 "inspector_host.h", | |
| 47 "InspectorBaseAgent.cpp", | |
| 48 "InspectorBaseAgent.h", | |
| 49 "InspectorDebuggerAgent.cpp", | |
| 50 "InspectorDebuggerAgent.h", | |
| 51 "InspectorFrontendChannel.h", | |
| 52 "InspectorState.cpp", | |
| 53 "InspectorState.h", | |
| 54 "InstrumentingAgents.h", | |
| 55 "JSONParser.cpp", | |
| 56 "JSONParser.h", | |
| 57 "PageDebuggerAgent.cpp", | |
| 58 "PageDebuggerAgent.h", | |
| 59 "PageScriptDebugServer.cpp", | |
| 60 "PageScriptDebugServer.h", | |
| 61 "PromiseTracker.cpp", | |
| 62 "PromiseTracker.h", | |
| 63 "read_from_source_tree.cc", | |
| 64 "read_from_source_tree.h", | |
| 65 "ScriptBreakpoint.h", | |
| 66 "ScriptDebugListener.h", | |
| 67 "ScriptDebugServer.cpp", | |
| 68 "ScriptDebugServer.h", | |
| 69 "ScriptRegexp.cpp", | |
| 70 "ScriptRegexp.h", | |
| 71 ] | |
| 72 | |
| 73 # TODO(eseidel): These should be compiled in a separate _generated target. | |
| 74 sources += [ | |
| 75 "$gen_dir/InspectorFrontend.cpp", | |
| 76 "$gen_dir/InspectorBackendDispatcher.cpp", | |
| 77 "$gen_dir/InspectorTypeBuilder.cpp", | |
| 78 ] | |
| 79 } | |
| 80 | |
| 81 protocol_file = "protocol.json" | |
| 82 | |
| 83 action("protocol_sources") { | |
| 84 script = "CodeGeneratorInspector.py" | |
| 85 | |
| 86 inputs = [ | |
| 87 # The helper script imported by CodeGeneratorInspector.py. | |
| 88 "CodeGeneratorInspectorStrings.py", | |
| 89 protocol_file, | |
| 90 ] | |
| 91 outputs = [ | |
| 92 "$gen_dir/InspectorBackendDispatcher.cpp", | |
| 93 "$gen_dir/InspectorBackendDispatcher.h", | |
| 94 "$gen_dir/InspectorFrontend.cpp", | |
| 95 "$gen_dir/InspectorFrontend.h", | |
| 96 "$gen_dir/InspectorTypeBuilder.cpp", | |
| 97 "$gen_dir/InspectorTypeBuilder.h", | |
| 98 ] | |
| 99 | |
| 100 args = [ | |
| 101 rebase_path(protocol_file, root_build_dir), | |
| 102 "--output_dir", | |
| 103 rebase_path(gen_dir, root_build_dir), | |
| 104 ] | |
| 105 | |
| 106 deps = [ | |
| 107 ":protocol_version", | |
| 108 ] | |
| 109 } | |
| 110 | |
| 111 action("protocol_version") { | |
| 112 script = "generate-inspector-protocol-version" | |
| 113 | |
| 114 inputs = [ | |
| 115 protocol_file, | |
| 116 ] | |
| 117 output_file = "$gen_dir/InspectorProtocolVersion.h" | |
| 118 outputs = [ | |
| 119 output_file, | |
| 120 ] | |
| 121 | |
| 122 args = [ | |
| 123 "-o", | |
| 124 rebase_path(output_file, root_build_dir), | |
| 125 rebase_path(protocol_file, root_build_dir), | |
| 126 ] | |
| 127 } | |
| OLD | NEW |