| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 6 |
| 7 'variables': { | 7 'variables': { |
| 8 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', | 8 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', |
| 9 'EXTERNS_GYP': '<(CLOSURE_DIR)/externs/compiled_resources2.gyp', | 9 'EXTERNS_GYP': '<(CLOSURE_DIR)/externs/compiled_resources2.gyp', |
| 10 'INTERFACES_GYP': '<(CLOSURE_DIR)/interfaces/compiled_resources2.gyp', | 10 'INTERFACES_GYP': '<(CLOSURE_DIR)/interfaces/compiled_resources2.gyp', |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 # - out_file: a file where the compiled output is written to. The default | 32 # - out_file: a file where the compiled output is written to. The default |
| 33 # is gen/closure/<path to |target_name|>/|target_name|.js. | 33 # is gen/closure/<path to |target_name|>/|target_name|.js. |
| 34 # - script_args: additional arguments to pass to compile.py. | 34 # - script_args: additional arguments to pass to compile.py. |
| 35 # - closure_args: additional arguments to pass to the Closure compiler. | 35 # - closure_args: additional arguments to pass to the Closure compiler. |
| 36 # - disabled_closure_args: additional arguments dealing with the | 36 # - disabled_closure_args: additional arguments dealing with the |
| 37 # strictness of compilation; Non-strict | 37 # strictness of compilation; Non-strict |
| 38 # defaults are provided that can be overriden. | 38 # defaults are provided that can be overriden. |
| 39 'variables': { | 39 'variables': { |
| 40 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour
ce_file))', | 40 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour
ce_file))', |
| 41 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)', | 41 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)', |
| 42 'runner_args%': ['enable-chrome-pass'], | |
| 43 # TODO(dbeam): remove when no longer used from remoting/. | 42 # TODO(dbeam): remove when no longer used from remoting/. |
| 44 'script_args%': [], | 43 'script_args%': [], |
| 45 'closure_args%': '<(default_closure_args)', | 44 'closure_args%': '<(default_closure_args)', |
| 46 'disabled_closure_args%': '<(default_disabled_closure_args)', | 45 'disabled_closure_args%': '<(default_disabled_closure_args)', |
| 47 }, | 46 }, |
| 48 | 47 |
| 49 'inputs': [ | 48 'inputs': [ |
| 50 '<(CLOSURE_DIR)/compile_js2.gypi', | 49 '<(CLOSURE_DIR)/compile_js2.gypi', |
| 51 '<(CLOSURE_DIR)/compile2.py', | 50 '<(CLOSURE_DIR)/compile2.py', |
| 52 '<(CLOSURE_DIR)/include_js.gypi', | 51 '<(CLOSURE_DIR)/include_js.gypi', |
| 53 '<(CLOSURE_DIR)/processor.py', | 52 '<(CLOSURE_DIR)/processor.py', |
| 54 '<(CLOSURE_DIR)/build/outputs.py', | 53 '<(CLOSURE_DIR)/build/outputs.py', |
| 55 '<(CLOSURE_DIR)/compiler/compiler.jar', | 54 '<(CLOSURE_DIR)/compiler/compiler.jar', |
| 56 '<(CLOSURE_DIR)/runner/runner.jar', | |
| 57 '>@(_sources)', | 55 '>@(_sources)', |
| 58 ], | 56 ], |
| 59 | 57 |
| 60 'outputs': ['<(out_file)'], | 58 'outputs': ['<(out_file)'], |
| 61 | 59 |
| 62 'action': [ | 60 'action': [ |
| 63 'python', | 61 'python', |
| 64 '<(CLOSURE_DIR)/compile2.py', | 62 '<(CLOSURE_DIR)/compile2.py', |
| 65 '<@(script_args)', | 63 '<@(script_args)', |
| 66 '>@(_sources)', | 64 '>@(_sources)', |
| 67 '--out_file', '<(out_file)', | 65 '--out_file', '<(out_file)', |
| 68 '--runner_args', '<@(runner_args)', | |
| 69 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', | 66 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', |
| 70 # '--verbose' # for make glorious log spam of Closure compiler. | 67 # '--verbose' # for make glorious log spam of Closure compiler. |
| 71 ], | 68 ], |
| 72 | 69 |
| 73 'message': 'Compiling <(target_path)', | 70 'message': 'Compiling <(target_path)', |
| 74 }, | 71 }, |
| 75 ], | 72 ], |
| 76 } | 73 } |
| OLD | NEW |