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

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: Added remoting/compile_js.gypi and decoupled target_name from source_files 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
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..f368d251e7c2cac2cfe020960d593a0d33849f64 100644
--- a/third_party/closure_compiler/compile_js.gypi
+++ b/third_party/closure_compiler/compile_js.gypi
@@ -13,10 +13,46 @@
# - externs: files that describe globals used by |source|
'action_name': 'compile_js',
'variables': {
- 'source_file': '<(_target_name).js',
- 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
+ 'source_files': [],
+ 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(_target_name).js)',
'externs%': [],
'depends%': [],
+ 'script_args': [],
+ 'closure_args': [
+ '--accept_const_keyword',
+ '--language_in=ECMASCRIPT5_STRICT',
+ '--summary_detail_level=3', # compile.py depends on this for output parsing; do not override.
+ '--compilation_level=SIMPLE_OPTIMIZATIONS',
+ '--source_map_format=V3',
+ '--polymer_pass',
+ "--jscomp_error=accessControls",
Dan Beam 2015/06/01 22:57:39 " -> '
Theresa 2015/06/02 22:02:13 Done.
+ "--jscomp_error=ambiguousFunctionDecl",
+ "--jscomp_error=checkStructDictInheritance",
+ "--jscomp_error=checkTypes",
+ "--jscomp_error=checkVars",
+ "--jscomp_error=constantProperty",
+ "--jscomp_error=deprecated",
+ "--jscomp_error=externsValidation",
+ "--jscomp_error=globalThis",
+ "--jscomp_error=invalidCasts",
+ "--jscomp_error=missingProperties",
+ "--jscomp_error=missingReturn",
+ "--jscomp_error=nonStandardJsDocs",
+ "--jscomp_error=suspiciousCode",
+ "--jscomp_error=undefinedNames",
+ "--jscomp_error=undefinedVars",
+ "--jscomp_error=unknownDefines",
+ "--jscomp_error=uselessCode",
+ "--jscomp_error=visibility",
+ "--extra_annotation_name=attribute",
+ "--extra_annotation_name=status",
+ "--extra_annotation_name=element",
+ "--extra_annotation_name=homepage",
+ "--extra_annotation_name=submodule",
+ "--extra_annotation_name=group",
+ "--jscomp_off=duplicate",
+ "--jscomp_off=misplacedTypeAnnotation",
Dan Beam 2015/06/01 22:57:40 alphabetize this list
Theresa 2015/06/02 22:02:12 Done.
+ ],
},
'inputs': [
'compile_js.gypi',
@@ -34,10 +70,12 @@
'action': [
'python',
'<(CLOSURE_DIR)/compile.py',
- '<(source_file)',
+ '<(source_files)',
Dan Beam 2015/06/01 22:57:39 where does <(_target_name).js actually get sent to
Theresa 2015/06/01 23:46:55 I decoupled _target_name and source_files, because
Dan Beam 2015/06/02 01:02:33 'source_files%': ['<(_target_name.js)'], https://
+ '<@(script_args)',
'--depends', '<@(depends)',
'--externs', '<@(externs)',
'--out_file', '<(out_file)',
+ '<@(closure_args)',
Dan Beam 2015/06/01 22:57:40 hmmmm, shouldn't this have a -c or --closure(_-)ar
Theresa 2015/06/01 23:46:55 Yes, I think it does.
# Add '--verbose' for make glorious log spam of Closure compiler.
],
'message': 'Compiling <(source_file)',
« third_party/closure_compiler/compile.py ('K') | « third_party/closure_compiler/compile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698