OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Include this file in a target to copy all necessary files to satisfy |
| 6 # the transitive dependencies of a set of top-level JavaScript files |
| 7 # using closure-style dependency declarations. The following variables |
| 8 # must be available when this file is included: |
| 9 # js_root_flags: List of '-r' flags to jsbundler.py for locating the |
| 10 # .js files. |
| 11 # path_rewrite_flags: '-w' flags to jsbundler.py to replace source path |
| 12 # prefixes at the destination. |
| 13 # dest_dir: Destination directory for all copied files. |
| 14 |
| 15 { |
| 16 'actions': [ |
| 17 { |
| 18 'action_name': 'copy_js', |
| 19 'message': 'Copy JS for <(_target_name)', |
| 20 'variables': { |
| 21 'js_files': [ |
| 22 '<!@(python tools/jsbundler.py <(js_root_flags) <(_sources))' |
| 23 ], |
| 24 }, |
| 25 'inputs': [ |
| 26 'tools/jsbundler.py', |
| 27 '<@(js_files)', |
| 28 ], |
| 29 'outputs': [ |
| 30 '<!@(python tools/jsbundler.py <@(path_rewrite_flags) -d <(dest_dir) <@(
js_files))' |
| 31 ], |
| 32 'action': [ |
| 33 'python', |
| 34 'tools/jsbundler.py', |
| 35 '-m', 'copy', |
| 36 '-d', '<(dest_dir)', |
| 37 '<@(path_rewrite_flags)', |
| 38 '<@(js_files)', |
| 39 ], |
| 40 }, |
| 41 ] |
| 42 } |
OLD | NEW |