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.
5 # Include this file in a target to generate a Closure style deps.js file.
7 # The following variables must be available when this file is included:
8 # js_root_flags: List of '-r' flags to jsbundler.py for locating the
10 # deps_js_output_file: Where to write the generated deps file.
13 'includes': ['common.gypi'],
16 'action_name': 'generate_deps',
17 'message': 'Generate deps for <(_target_name)',
19 'js_bundler_path': 'tools/jsbundler.py',
20 'closure_depswriter_path': 'tools/generate_deps.py',
22 '<!@(python <(js_bundler_path) <(js_root_flags) <(_sources))'
27 '<(closure_depswriter_path)',
31 '<(deps_js_output_file)',
35 '<(closure_depswriter_path)',
36 '-w', '<(closure_goog_dir):../closure/',
38 '--output_file', '<(deps_js_output_file)',