| 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 14 matching lines...) Expand all Loading... |
| 25 'actions': [ | 25 'actions': [ |
| 26 { | 26 { |
| 27 'action_name': 'compile_js', | 27 'action_name': 'compile_js', |
| 28 | 28 |
| 29 # This action optionally takes these arguments: | 29 # This action optionally takes these arguments: |
| 30 # - sources: a list of all of the source files to be compiled. | 30 # - sources: a list of all of the source files to be compiled. |
| 31 # If sources is undefined, a default of ['<(_target_name).js'] | 31 # If sources is undefined, a default of ['<(_target_name).js'] |
| 32 # is created (this probably suffices for many targets). | 32 # is created (this probably suffices for many targets). |
| 33 # - out_file: a file where the compiled output is written to. The default | 33 # - out_file: a file where the compiled output is written to. The default |
| 34 # is gen/closure/<path to |target_name|>/|target_name|.js. | 34 # is gen/closure/<path to |target_name|>/|target_name|.js. |
| 35 # - script_args: additional arguments to pass to compile.py. | 35 # - script_args: additional arguments to pass to compile2.py. |
| 36 # - closure_args: additional arguments to pass to the Closure compiler. | 36 # - closure_args: additional arguments to pass to the Closure compiler. |
| 37 # - disabled_closure_args: additional arguments dealing with the | 37 # - disabled_closure_args: additional arguments dealing with the |
| 38 # strictness of compilation; Non-strict | 38 # strictness of compilation; Non-strict |
| 39 # defaults are provided that can be overriden. | 39 # defaults are provided that can be overriden. |
| 40 'variables': { | 40 'variables': { |
| 41 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour
ce_file))', | 41 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour
ce_file))', |
| 42 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)', | 42 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)', |
| 43 # TODO(dbeam): remove when no longer used from remoting/. | 43 # TODO(dbeam): remove when no longer used from remoting/. |
| 44 'script_args%': [], | 44 'script_args%': [], |
| 45 'closure_args%': '<(default_closure_args)', | 45 'closure_args%': '<(default_closure_args)', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 69 '>@(_sources)', | 69 '>@(_sources)', |
| 70 '--out_file', '<(out_file)', | 70 '--out_file', '<(out_file)', |
| 71 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', | 71 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', |
| 72 # '--verbose' # for make glorious log spam of Closure compiler. | 72 # '--verbose' # for make glorious log spam of Closure compiler. |
| 73 ], | 73 ], |
| 74 | 74 |
| 75 'message': 'Compiling <(target_path)', | 75 'message': 'Compiling <(target_path)', |
| 76 }, | 76 }, |
| 77 ], | 77 ], |
| 78 } | 78 } |
| OLD | NEW |