| 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 # TODO(dbeam): add --custom_sources when 'source_files' is set? | 42 'runner_args%': ['enable-chrome-pass'], |
| 43 # TODO(dbeam): remove when no longer used from remoting/. |
| 43 'script_args%': [], | 44 'script_args%': [], |
| 45 'closure_args%': '<(default_closure_args)', |
| 44 'disabled_closure_args%': '<(default_disabled_closure_args)', | 46 'disabled_closure_args%': '<(default_disabled_closure_args)', |
| 45 }, | 47 }, |
| 46 | 48 |
| 47 'inputs': [ | 49 'inputs': [ |
| 48 '<(CLOSURE_DIR)/compile_js2.gypi', | 50 '<(CLOSURE_DIR)/compile_js2.gypi', |
| 49 '<(CLOSURE_DIR)/compile2.py', | 51 '<(CLOSURE_DIR)/compile2.py', |
| 50 '<(CLOSURE_DIR)/include_js.gypi', | 52 '<(CLOSURE_DIR)/include_js.gypi', |
| 51 '<(CLOSURE_DIR)/processor.py', | 53 '<(CLOSURE_DIR)/processor.py', |
| 52 '<(CLOSURE_DIR)/build/outputs.py', | 54 '<(CLOSURE_DIR)/build/outputs.py', |
| 53 '<(CLOSURE_DIR)/compiler/compiler.jar', | 55 '<(CLOSURE_DIR)/compiler/compiler.jar', |
| 54 '<(CLOSURE_DIR)/runner/runner.jar', | 56 '<(CLOSURE_DIR)/runner/runner.jar', |
| 55 '>@(_sources)', | 57 '>@(_sources)', |
| 56 ], | 58 ], |
| 57 | 59 |
| 58 'outputs': ['<(out_file)'], | 60 'outputs': ['<(out_file)'], |
| 59 | 61 |
| 60 'action': [ | 62 'action': [ |
| 61 'python', | 63 'python', |
| 62 '<(CLOSURE_DIR)/compile2.py', | 64 '<(CLOSURE_DIR)/compile2.py', |
| 63 '<@(script_args)', | 65 '<@(script_args)', |
| 64 '>@(_sources)', | 66 '>@(_sources)', |
| 65 '--out_file', '<(out_file)', | 67 '--out_file', '<(out_file)', |
| 68 '--runner_args', '<@(runner_args)', |
| 66 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', | 69 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', |
| 67 # '--verbose' # for make glorious log spam of Closure compiler. | 70 # '--verbose' # for make glorious log spam of Closure compiler. |
| 68 ], | 71 ], |
| 69 | 72 |
| 70 'message': 'Compiling <(target_path)', | 73 'message': 'Compiling <(target_path)', |
| 71 }, | 74 }, |
| 72 ], | 75 ], |
| 73 } | 76 } |
| OLD | NEW |