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

Unified Diff: third_party/closure_compiler/compile_js.gypi

Issue 1152583011: Refactor compile_js.gypi to support script_args and closure_args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use script_args and closure_args Created 5 years, 7 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
« no previous file with comments | « third_party/closure_compiler/compile.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/compile_js.gypi
diff --git a/third_party/closure_compiler/compile_js.gypi b/third_party/closure_compiler/compile_js.gypi
index b97b2acffdc65f7ecb72199eeb74dc49124c5d1c..b138a0665b35fa2242de7d5771bed1656dbd201a 100644
--- a/third_party/closure_compiler/compile_js.gypi
+++ b/third_party/closure_compiler/compile_js.gypi
@@ -13,10 +13,19 @@
# - externs: files that describe globals used by |source|
'action_name': 'compile_js',
'variables': {
- 'source_file': '<(_target_name).js',
+ 'source_files': ['<(_target_name).js'],
'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
'externs%': [],
'depends%': [],
+ 'script_args': [],
+ 'closure_args': [
+ '--accept_const_keyword',
Theresa 2015/05/28 23:12:18 Would it make more sense to keep these in compile.
Dan Beam 2015/05/28 23:15:11 tbreisacher@ & jlklein@: wdyt?
Dan Beam 2015/05/28 23:23:31 I think we should put them here if possible. the
+ '--language_in=ECMASCRIPT5_STRICT',
+ '--summary_detail_level=3',
+ '--compilation_level=SIMPLE_OPTIMIZATIONS',
+ '--source_map_format=V3',
+ '--polymer_pass',
+ ],
},
'inputs': [
'compile_js.gypi',
@@ -34,10 +43,12 @@
'action': [
'python',
'<(CLOSURE_DIR)/compile.py',
- '<(source_file)',
+ '<(source_files)',
+ '<@(script_args)',
'--depends', '<@(depends)',
'--externs', '<@(externs)',
'--out_file', '<(out_file)',
+ '<@(closure_args)',
# Add '--verbose' for make glorious log spam of Closure compiler.
],
'message': 'Compiling <(source_file)',
« no previous file with comments | « third_party/closure_compiler/compile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698