| 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', |
| 11 | 11 |
| 12 'default_source_file': '<(_target_name).js', | 12 'default_source_file': '<(_target_name).js', |
| 13 'source_files%': ['<(default_source_file)'], | 13 'source_files%': ['<(default_source_file)'], |
| 14 'extra_inputs%': [], |
| 14 | 15 |
| 15 'includes': ['closure_args.gypi'], | 16 'includes': ['closure_args.gypi'], |
| 16 }, | 17 }, |
| 17 | 18 |
| 18 'sources': ['<@(source_files)'], | 19 'sources': ['<@(source_files)'], |
| 19 | 20 |
| 20 'all_dependent_settings': { | 21 'all_dependent_settings': { |
| 21 'sources': ['<@(source_files)'], | 22 'sources': ['<@(source_files)'], |
| 22 }, | 23 }, |
| 23 | 24 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 | 48 |
| 48 'inputs': [ | 49 'inputs': [ |
| 49 '<(CLOSURE_DIR)/build/outputs.py', | 50 '<(CLOSURE_DIR)/build/outputs.py', |
| 50 '<(CLOSURE_DIR)/closure_args.gypi', | 51 '<(CLOSURE_DIR)/closure_args.gypi', |
| 51 '<(CLOSURE_DIR)/compile2.py', | 52 '<(CLOSURE_DIR)/compile2.py', |
| 52 '<(CLOSURE_DIR)/compile_js2.gypi', | 53 '<(CLOSURE_DIR)/compile_js2.gypi', |
| 53 '<(CLOSURE_DIR)/compiler/compiler.jar', | 54 '<(CLOSURE_DIR)/compiler/compiler.jar', |
| 54 '<(CLOSURE_DIR)/include_js.gypi', | 55 '<(CLOSURE_DIR)/include_js.gypi', |
| 55 '<(CLOSURE_DIR)/processor.py', | 56 '<(CLOSURE_DIR)/processor.py', |
| 56 '>@(_sources)', | 57 '>@(_sources)', |
| 58 # When converting to GN, write the paths to additional inputs in a GN |
| 59 # depfile file instead. |
| 60 '<@(extra_inputs)', |
| 57 ], | 61 ], |
| 58 | 62 |
| 59 'outputs': ['<(out_file)'], | 63 'outputs': ['<(out_file)'], |
| 60 | 64 |
| 61 'action': [ | 65 'action': [ |
| 62 'python', | 66 'python', |
| 63 '<(CLOSURE_DIR)/compile2.py', | 67 '<(CLOSURE_DIR)/compile2.py', |
| 64 '<@(script_args)', | 68 '<@(script_args)', |
| 65 '>@(_sources)', | 69 '>@(_sources)', |
| 66 '--out_file', '<(out_file)', | 70 '--out_file', '<(out_file)', |
| 67 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', | 71 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', |
| 68 # '--verbose' # for make glorious log spam of Closure compiler. | 72 # '--verbose' # for make glorious log spam of Closure compiler. |
| 69 ], | 73 ], |
| 70 | 74 |
| 71 'message': 'Compiling <(target_path)', | 75 'message': 'Compiling <(target_path)', |
| 72 }, | 76 }, |
| 73 ], | 77 ], |
| 74 } | 78 } |
| OLD | NEW |