Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 { | 4 { |
| 5 'type': 'none', | 5 'type': 'none', |
| 6 'variables': { | 6 'variables': { |
| 7 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', | 7 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', |
| 8 }, | 8 }, |
| 9 'actions': [ | 9 'actions': [ |
| 10 { | 10 { |
| 11 # This action optionally takes these arguments: | 11 # This action optionally takes these arguments: |
| 12 # - depends: scripts that the source file depends on being included alread y | 12 # - depends: scripts that the source file depends on being included alread y |
| 13 # - externs: files that describe globals used by |source| | 13 # - externs: files that describe globals used by |source| |
| 14 'action_name': 'compile_js', | 14 'action_name': 'compile_js', |
| 15 'variables': { | 15 'variables': { |
| 16 'source_file': '<(_target_name).js', | 16 'source_files': ['<(_target_name).js'], |
| 17 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR) /build/outputs.py <@(source_file))', | 17 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR) /build/outputs.py <@(source_file))', |
| 18 'externs%': [], | 18 'externs%': [], |
| 19 'depends%': [], | 19 'depends%': [], |
| 20 'script_args': [], | |
| 21 'closure_args': [ | |
| 22 '--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
| |
| 23 '--language_in=ECMASCRIPT5_STRICT', | |
| 24 '--summary_detail_level=3', | |
| 25 '--compilation_level=SIMPLE_OPTIMIZATIONS', | |
| 26 '--source_map_format=V3', | |
| 27 '--polymer_pass', | |
| 28 ], | |
| 20 }, | 29 }, |
| 21 'inputs': [ | 30 'inputs': [ |
| 22 'compile_js.gypi', | 31 'compile_js.gypi', |
| 23 '<(CLOSURE_DIR)/compile.py', | 32 '<(CLOSURE_DIR)/compile.py', |
| 24 '<(CLOSURE_DIR)/processor.py', | 33 '<(CLOSURE_DIR)/processor.py', |
| 25 '<(CLOSURE_DIR)/build/inputs.py', | 34 '<(CLOSURE_DIR)/build/inputs.py', |
| 26 '<(CLOSURE_DIR)/build/outputs.py', | 35 '<(CLOSURE_DIR)/build/outputs.py', |
| 27 '<(CLOSURE_DIR)/compiler/compiler.jar', | 36 '<(CLOSURE_DIR)/compiler/compiler.jar', |
| 28 '<(CLOSURE_DIR)/runner/runner.jar', | 37 '<(CLOSURE_DIR)/runner/runner.jar', |
| 29 '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file) -d <@(depends) -e <@(externs))', | 38 '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file) -d <@(depends) -e <@(externs))', |
| 30 ], | 39 ], |
| 31 'outputs': [ | 40 'outputs': [ |
| 32 '<(out_file)', | 41 '<(out_file)', |
| 33 ], | 42 ], |
| 34 'action': [ | 43 'action': [ |
| 35 'python', | 44 'python', |
| 36 '<(CLOSURE_DIR)/compile.py', | 45 '<(CLOSURE_DIR)/compile.py', |
| 37 '<(source_file)', | 46 '<(source_files)', |
| 47 '<@(script_args)', | |
| 38 '--depends', '<@(depends)', | 48 '--depends', '<@(depends)', |
| 39 '--externs', '<@(externs)', | 49 '--externs', '<@(externs)', |
| 40 '--out_file', '<(out_file)', | 50 '--out_file', '<(out_file)', |
| 51 '<@(closure_args)', | |
| 41 # Add '--verbose' for make glorious log spam of Closure compiler. | 52 # Add '--verbose' for make glorious log spam of Closure compiler. |
| 42 ], | 53 ], |
| 43 'message': 'Compiling <(source_file)', | 54 'message': 'Compiling <(source_file)', |
| 44 } | 55 } |
| 45 ], | 56 ], |
| 46 } | 57 } |
| OLD | NEW |