Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: Source/WebCore/inspector/scripts/compile_frontend.py

Issue 13467026: DevTools: move compilation script to inspector/scripts/compile_frontend.py, add closure library. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/inspector/scripts/compile_frontend.py
diff --git a/Source/WebCore/inspector/compile-front-end.py b/Source/WebCore/inspector/scripts/compile_frontend.py
similarity index 97%
rename from Source/WebCore/inspector/compile-front-end.py
rename to Source/WebCore/inspector/scripts/compile_frontend.py
index de8ac20e5856a346e60e6ad6d5f0a5c8d2f6c5a8..9963ae949b84ecc25a738e11235cdd68c7e422b2 100755
--- a/Source/WebCore/inspector/compile-front-end.py
+++ b/Source/WebCore/inspector/scripts/compile_frontend.py
@@ -34,8 +34,9 @@ import shutil
import sys
import tempfile
-inspector_path = "Source/WebCore/inspector"
-inspector_frontend_path = inspector_path + "/front-end"
+scripts_path = os.path.dirname(os.path.abspath(__file__))
+inspector_path = os.path.dirname(scripts_path)
+inspector_frontend_path = os.path.dirname(scripts_path) + "/front-end"
protocol_externs_path = inspector_frontend_path + "/protocol-externs.js"
generate_protocol_externs.generate_protocol_externs(protocol_externs_path, inspector_path + "/Inspector.json")
@@ -399,7 +400,7 @@ def dump_module(name, recursively, processed_modules):
return command
modules_dir = tempfile.mkdtemp()
-compiler_command = "java -jar ~/closure/compiler.jar --summary_detail_level 3 --compilation_level SIMPLE_OPTIMIZATIONS --warning_level VERBOSE --language_in ECMASCRIPT5 --accept_const_keyword --module_output_path_prefix %s/ \\\n" % modules_dir
+compiler_command = "java -jar %s/closure/compiler.jar --summary_detail_level 3 --compilation_level SIMPLE_OPTIMIZATIONS --warning_level VERBOSE --language_in ECMASCRIPT5 --accept_const_keyword --module_output_path_prefix %s/ \\\n" % (scripts_path, modules_dir)
process_recursively = len(sys.argv) > 1
if process_recursively:
« no previous file with comments | « Source/WebCore/inspector/scripts/closure/compiler.jar ('k') | Source/WebCore/inspector/scripts/generate_protocol_externs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698