diff options
author | kozyatinskiy <kozyatinskiy@chromium.org> | 2016-03-25 16:50:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-25 23:51:03 +0000 |
commit | 33345729e3a257ac99bd98dfafabfb5ea02ab2d1 (patch) | |
tree | 5362174fc6fc7a0a2de4757e23e2cf2c43958790 /third_party/WebKit/Source/devtools/scripts/compile_frontend.py | |
parent | 1eb45619341b00e6ddf9c92f34451da17bf20dfd (diff) | |
download | chromium_src-33345729e3a257ac99bd98dfafabfb5ea02ab2d1.zip chromium_src-33345729e3a257ac99bd98dfafabfb5ea02ab2d1.tar.gz chromium_src-33345729e3a257ac99bd98dfafabfb5ea02ab2d1.tar.bz2 |
[DevTools] Add DebuggerScript.js compilation to compile_frontend.py
Added debugger_script_externs.js with V8 types and output DebuggerScript types.
R=dgozman@chromium.org
Review URL: https://codereview.chromium.org/1833893002
Cr-Commit-Position: refs/heads/master@{#383411}
Diffstat (limited to 'third_party/WebKit/Source/devtools/scripts/compile_frontend.py')
-rwxr-xr-x | third_party/WebKit/Source/devtools/scripts/compile_frontend.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/devtools/scripts/compile_frontend.py b/third_party/WebKit/Source/devtools/scripts/compile_frontend.py index fa792f0..b95dee3 100755 --- a/third_party/WebKit/Source/devtools/scripts/compile_frontend.py +++ b/third_party/WebKit/Source/devtools/scripts/compile_frontend.py @@ -78,6 +78,8 @@ global_externs_file = to_platform_path(path.join(devtools_frontend_path, 'extern protocol_externs_file = path.join(devtools_frontend_path, 'protocol_externs.js') injected_script_source_name = path.join(v8_inspector_path, 'InjectedScriptSource.js') injected_script_externs_file = path.join(v8_inspector_path, 'injected_script_externs.js') +debugger_script_source_name = path.join(v8_inspector_path, 'DebuggerScript.js') +debugger_script_externs_file = path.join(v8_inspector_path, 'debugger_script_externs.js') jsmodule_name_prefix = 'jsmodule_' runtime_module_name = '_runtime' @@ -403,6 +405,16 @@ command = spawned_compiler_command + [ injectedScriptCompileProc = popen(command) +print 'Compiling DebuggerScript.js...' + +command = spawned_compiler_command + [ + '--externs', to_platform_path_exact(debugger_script_externs_file), + '--module', jsmodule_name_prefix + 'debugger_script' + ':1', + '--js', to_platform_path(debugger_script_source_name) +] + +debuggerScriptCompileProc = popen(command) + print 'Compiling devtools.js...' command = spawned_compiler_command + [ @@ -492,6 +504,10 @@ if error_count: print 'InjectedScriptSource.js compilation output:%s' % os.linesep, injectedScriptCompileOut errors_found |= hasErrors(injectedScriptCompileOut) +(debuggerScriptCompilerOut, _) = debuggerScriptCompileProc.communicate() +print 'DebuggerScript.js compilation output:%s' % os.linesep, debuggerScriptCompilerOut +errors_found |= hasErrors(debuggerScriptCompilerOut) + (devtoolsJSCompileOut, _) = devtoolsJSCompileProc.communicate() print 'devtools.js compilation output:%s' % os.linesep, devtoolsJSCompileOut errors_found |= hasErrors(devtoolsJSCompileOut) |