| 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 'EXTERNS_DIR': '<(CLOSURE_DIR)/externs', | 8 'EXTERNS_DIR': '<(CLOSURE_DIR)/externs', |
| 9 'includes': [ | 9 'includes': [ |
| 10 'closure_args.gypi', | 10 'closure_args.gypi', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 # - closure_args: additional arguments to pass to the Closure compiler. | 25 # - closure_args: additional arguments to pass to the Closure compiler. |
| 26 # - closure_strictness_args: additional arguments dealing with the | 26 # - closure_strictness_args: additional arguments dealing with the |
| 27 # strictness of compilation; Non-strict | 27 # strictness of compilation; Non-strict |
| 28 # defaults are provided that can be overriden. | 28 # defaults are provided that can be overriden. |
| 29 'action_name': 'compile_js', | 29 'action_name': 'compile_js', |
| 30 'variables': { | 30 'variables': { |
| 31 'source_files%': ['<(_target_name).js'], | 31 'source_files%': ['<(_target_name).js'], |
| 32 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR
)/build/outputs.py <(_target_name).js)', | 32 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR
)/build/outputs.py <(_target_name).js)', |
| 33 'externs%': [], | 33 'externs%': [], |
| 34 'depends%': [], | 34 'depends%': [], |
| 35 'runner_args%': ['enable-chrome-pass'], | |
| 36 # TODO(dbeam): remove when no longer used from remoting/. | 35 # TODO(dbeam): remove when no longer used from remoting/. |
| 37 'script_args%': [], | 36 'script_args%': [], |
| 38 'closure_args%': '<(default_closure_args)', | 37 'closure_args%': '<(default_closure_args)', |
| 39 'disabled_closure_args%': '<(default_disabled_closure_args)', | 38 'disabled_closure_args%': '<(default_disabled_closure_args)', |
| 40 }, | 39 }, |
| 41 'inputs': [ | 40 'inputs': [ |
| 42 'compile_js.gypi', | 41 'compile_js.gypi', |
| 43 '<(CLOSURE_DIR)/compile.py', | 42 '<(CLOSURE_DIR)/compile.py', |
| 44 '<(CLOSURE_DIR)/processor.py', | 43 '<(CLOSURE_DIR)/processor.py', |
| 45 '<(CLOSURE_DIR)/build/inputs.py', | 44 '<(CLOSURE_DIR)/build/inputs.py', |
| 46 '<(CLOSURE_DIR)/build/outputs.py', | 45 '<(CLOSURE_DIR)/build/outputs.py', |
| 47 '<(CLOSURE_DIR)/compiler/compiler.jar', | 46 '<(CLOSURE_DIR)/compiler/compiler.jar', |
| 48 '<(CLOSURE_DIR)/runner/runner.jar', | |
| 49 '<!@(python <(CLOSURE_DIR)/build/inputs.py <@(source_files) -d <@(depend
s) -e <@(externs))', | 47 '<!@(python <(CLOSURE_DIR)/build/inputs.py <@(source_files) -d <@(depend
s) -e <@(externs))', |
| 50 ], | 48 ], |
| 51 'outputs': [ | 49 'outputs': [ |
| 52 '<(out_file)', | 50 '<(out_file)', |
| 53 ], | 51 ], |
| 54 'action': [ | 52 'action': [ |
| 55 'python', | 53 'python', |
| 56 '<(CLOSURE_DIR)/compile.py', | 54 '<(CLOSURE_DIR)/compile.py', |
| 57 '<@(source_files)', | 55 '<@(source_files)', |
| 58 '<@(script_args)', | 56 '<@(script_args)', |
| 59 '--depends', '<@(depends)', | 57 '--depends', '<@(depends)', |
| 60 '--externs', '<@(externs)', | 58 '--externs', '<@(externs)', |
| 61 '--out_file', '<(out_file)', | 59 '--out_file', '<(out_file)', |
| 62 '--runner_args', '<@(runner_args)', | |
| 63 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', | 60 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', |
| 64 # '--verbose' # for make glorious log spam of Closure compiler. | 61 # '--verbose' # for make glorious log spam of Closure compiler. |
| 65 ], | 62 ], |
| 66 'message': 'Compiling <(_target_name)', | 63 'message': 'Compiling <(_target_name)', |
| 67 } | 64 } |
| 68 ], | 65 ], |
| 69 } | 66 } |
| OLD | NEW |