| OLD | NEW |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project 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 import("../../gni/v8.gni") | 5 import("../../gni/v8.gni") |
| 6 | 6 |
| 7 _inspector_protocol = "//third_party/WebKit/Source/platform/inspector_protocol" | 7 _inspector_protocol = "//third_party/WebKit/Source/platform/inspector_protocol" |
| 8 import("$_inspector_protocol/inspector_protocol.gni") | 8 import("$_inspector_protocol/inspector_protocol.gni") |
| 9 | 9 |
| 10 _protocol_generated = [ | 10 _protocol_generated = [ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 "js_protocol.json", | 57 "js_protocol.json", |
| 58 "inspector_protocol_config.json", | 58 "inspector_protocol_config.json", |
| 59 ] | 59 ] |
| 60 outputs = _protocol_generated | 60 outputs = _protocol_generated |
| 61 } | 61 } |
| 62 | 62 |
| 63 action("inspector_injected_script") { | 63 action("inspector_injected_script") { |
| 64 visibility = [ ":*" ] # Only targets in this file can depend on this. | 64 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 65 script = "build/xxd.py" | 65 script = "build/xxd.py" |
| 66 inputs = [ | 66 inputs = [ |
| 67 "InjectedScriptSource.js", | 67 "injected-script-source.js", |
| 68 ] | 68 ] |
| 69 outputs = [ | 69 outputs = [ |
| 70 "$target_gen_dir/InjectedScriptSource.h", | 70 "$target_gen_dir/injected-script-source.h", |
| 71 ] | 71 ] |
| 72 args = [ | 72 args = [ |
| 73 "InjectedScriptSource_js", | 73 "InjectedScriptSource_js", |
| 74 rebase_path("InjectedScriptSource.js", root_build_dir), | 74 rebase_path("injected-script-source.js", root_build_dir), |
| 75 rebase_path("$target_gen_dir/InjectedScriptSource.h", root_build_dir), | 75 rebase_path("$target_gen_dir/injected-script-source.h", root_build_dir), |
| 76 ] | 76 ] |
| 77 } | 77 } |
| 78 | 78 |
| 79 action("inspector_debugger_script") { | 79 action("inspector_debugger_script") { |
| 80 visibility = [ ":*" ] # Only targets in this file can depend on this. | 80 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 81 script = "build/xxd.py" | 81 script = "build/xxd.py" |
| 82 inputs = [ | 82 inputs = [ |
| 83 "DebuggerScript.js", | 83 "debugger-script.js", |
| 84 ] | 84 ] |
| 85 outputs = [ | 85 outputs = [ |
| 86 "$target_gen_dir/DebuggerScript.h", | 86 "$target_gen_dir/debugger-script.h", |
| 87 ] | 87 ] |
| 88 args = [ | 88 args = [ |
| 89 "DebuggerScript_js", | 89 "DebuggerScript_js", |
| 90 rebase_path("DebuggerScript.js", root_build_dir), | 90 rebase_path("debugger-script.js", root_build_dir), |
| 91 rebase_path("$target_gen_dir/DebuggerScript.h", root_build_dir), | 91 rebase_path("$target_gen_dir/debugger-script.h", root_build_dir), |
| 92 ] | 92 ] |
| 93 } | 93 } |
| 94 | 94 |
| 95 config("inspector_config") { | 95 config("inspector_config") { |
| 96 visibility = [ ":*" ] # Only targets in this file can depend on this. | 96 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 97 cflags = [] | 97 cflags = [] |
| 98 if (is_win) { | 98 if (is_win) { |
| 99 cflags += [ | 99 cflags += [ |
| 100 "/wd4267", # Truncation from size_t to int. | 100 "/wd4267", # Truncation from size_t to int. |
| 101 "/wd4305", # Truncation from 'type1' to 'type2'. | 101 "/wd4305", # Truncation from 'type1' to 'type2'. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 124 "$target_gen_dir/../../include", | 124 "$target_gen_dir/../../include", |
| 125 ] | 125 ] |
| 126 sources = rebase_path(_protocol_generated, ".", target_gen_dir) | 126 sources = rebase_path(_protocol_generated, ".", target_gen_dir) |
| 127 sources += [ | 127 sources += [ |
| 128 "../../include/v8-inspector-protocol.h", | 128 "../../include/v8-inspector-protocol.h", |
| 129 "../../include/v8-inspector.h", | 129 "../../include/v8-inspector.h", |
| 130 ] | 130 ] |
| 131 sources += get_target_outputs(":inspector_injected_script") | 131 sources += get_target_outputs(":inspector_injected_script") |
| 132 sources += get_target_outputs(":inspector_debugger_script") | 132 sources += get_target_outputs(":inspector_debugger_script") |
| 133 sources += [ | 133 sources += [ |
| 134 "InjectedScript.cpp", | 134 "injected-script-native.cc", |
| 135 "InjectedScript.h", | 135 "injected-script-native.h", |
| 136 "InjectedScriptNative.cpp", | 136 "injected-script.cc", |
| 137 "InjectedScriptNative.h", | 137 "injected-script.h", |
| 138 "InspectedContext.cpp", | 138 "inspected-context.cc", |
| 139 "InspectedContext.h", | 139 "inspected-context.h", |
| 140 "JavaScriptCallFrame.cpp", | 140 "java-script-call-frame.cc", |
| 141 "JavaScriptCallFrame.h", | 141 "java-script-call-frame.h", |
| 142 "ProtocolPlatform.h", | 142 "protocol-platform.h", |
| 143 "RemoteObjectId.cpp", | 143 "remote-object-id.cc", |
| 144 "RemoteObjectId.h", | 144 "remote-object-id.h", |
| 145 "ScriptBreakpoint.h", | 145 "script-breakpoint.h", |
| 146 "SearchUtil.cpp", | 146 "search-util.cc", |
| 147 "SearchUtil.h", | 147 "search-util.h", |
| 148 "String16.cpp", | 148 "string-16.cc", |
| 149 "String16.h", | 149 "string-16.h", |
| 150 "StringUtil.cpp", | 150 "string-util.cc", |
| 151 "StringUtil.h", | 151 "string-util.h", |
| 152 "V8Console.cpp", | 152 "v8-console-agent-impl.cc", |
| 153 "V8Console.h", | 153 "v8-console-agent-impl.h", |
| 154 "V8ConsoleAgentImpl.cpp", | 154 "v8-console-message.cc", |
| 155 "V8ConsoleAgentImpl.h", | 155 "v8-console-message.h", |
| 156 "V8ConsoleMessage.cpp", | 156 "v8-console.cc", |
| 157 "V8ConsoleMessage.h", | 157 "v8-console.h", |
| 158 "V8Debugger.cpp", | 158 "v8-debugger-agent-impl.cc", |
| 159 "V8Debugger.h", | 159 "v8-debugger-agent-impl.h", |
| 160 "V8DebuggerAgentImpl.cpp", | 160 "v8-debugger-script.cc", |
| 161 "V8DebuggerAgentImpl.h", | 161 "v8-debugger-script.h", |
| 162 "V8DebuggerScript.cpp", | 162 "v8-debugger.cc", |
| 163 "V8DebuggerScript.h", | 163 "v8-debugger.h", |
| 164 "V8FunctionCall.cpp", | 164 "v8-function-call.cc", |
| 165 "V8FunctionCall.h", | 165 "v8-function-call.h", |
| 166 "V8HeapProfilerAgentImpl.cpp", | 166 "v8-heap-profiler-agent-impl.cc", |
| 167 "V8HeapProfilerAgentImpl.h", | 167 "v8-heap-profiler-agent-impl.h", |
| 168 "V8InjectedScriptHost.cpp", | 168 "v8-injected-script-host.cc", |
| 169 "V8InjectedScriptHost.h", | 169 "v8-injected-script-host.h", |
| 170 "V8InspectorImpl.cpp", | 170 "v8-inspector-impl.cc", |
| 171 "V8InspectorImpl.h", | 171 "v8-inspector-impl.h", |
| 172 "V8InspectorSessionImpl.cpp", | 172 "v8-inspector-session-impl.cc", |
| 173 "V8InspectorSessionImpl.h", | 173 "v8-inspector-session-impl.h", |
| 174 "V8InternalValueType.cpp", | 174 "v8-internal-value-type.cc", |
| 175 "V8InternalValueType.h", | 175 "v8-internal-value-type.h", |
| 176 "V8ProfilerAgentImpl.cpp", | 176 "v8-profiler-agent-impl.cc", |
| 177 "V8ProfilerAgentImpl.h", | 177 "v8-profiler-agent-impl.h", |
| 178 "V8Regex.cpp", | 178 "v8-regex.cc", |
| 179 "V8Regex.h", | 179 "v8-regex.h", |
| 180 "V8RuntimeAgentImpl.cpp", | 180 "v8-runtime-agent-impl.cc", |
| 181 "V8RuntimeAgentImpl.h", | 181 "v8-runtime-agent-impl.h", |
| 182 "V8SchemaAgentImpl.cpp", | 182 "v8-schema-agent-impl.cc", |
| 183 "V8SchemaAgentImpl.h", | 183 "v8-schema-agent-impl.h", |
| 184 "V8StackTraceImpl.cpp", | 184 "v8-stack-trace-impl.cc", |
| 185 "V8StackTraceImpl.h", | 185 "v8-stack-trace-impl.h", |
| 186 "V8ValueCopier.cpp", | 186 "v8-value-copier.cc", |
| 187 "V8ValueCopier.h", | 187 "v8-value-copier.h", |
| 188 ] | 188 ] |
| 189 } | 189 } |
| OLD | NEW |