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

Unified Diff: third_party/closure_compiler/closure_args.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: Yet another rebase Created 5 years, 6 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/closure_args.gni ('k') | third_party/closure_compiler/compile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/closure_args.gypi
diff --git a/third_party/closure_compiler/closure_args.gypi b/third_party/closure_compiler/closure_args.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..61a35cebc20337f3e802ee1638ba091965a06cca
--- /dev/null
+++ b/third_party/closure_compiler/closure_args.gypi
@@ -0,0 +1,46 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'closure_args': [
+ 'accept_const_keyword',
+ 'compilation_level=SIMPLE_OPTIMIZATIONS',
+ 'extra_annotation_name=attribute',
+ 'extra_annotation_name=element',
+ 'extra_annotation_name=group',
+ 'extra_annotation_name=homepage',
+ 'extra_annotation_name=status',
+ 'extra_annotation_name=submodule',
+ 'jscomp_error=accessControls',
+ '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',
+ 'language_in=ECMASCRIPT5_STRICT',
+ 'polymer_pass',
+ 'source_map_format=V3',
+ 'summary_detail_level=3', # compile.py depends on this for output parsing; do not override.
+ ],
+ 'default_disabled_closure_args': [
+ # TODO(dbeam): happens when the same file is <include>d multiple times.
+ 'jscomp_off=duplicate',
+ # TODO(fukino): happens when cr.defineProperty() has a type annotation.
+ # Avoiding parse-time warnings needs 2 pass compiling. crbug.com/421562.
+ 'jscomp_off=misplacedTypeAnnotation',
+ ]
+}
« no previous file with comments | « third_party/closure_compiler/closure_args.gni ('k') | third_party/closure_compiler/compile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698