Home | History | Annotate | Download | only in chromevox
      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 generate a Closure style deps.js file.
      6 #
      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
      9 #   .js files.
     10 # deps_js_output_file: Where to write the generated deps file.
     11 
     12 {
     13   'includes': ['common.gypi'],
     14   'actions': [
     15     {
     16       'action_name': 'generate_deps',
     17       'message': 'Generate deps for <(_target_name)',
     18       'variables': {
     19         'js_bundler_path': 'tools/jsbundler.py',
     20         'closure_depswriter_path': 'tools/generate_deps.py',
     21         'js_files': [
     22           '<!@(python <(js_bundler_path) <(js_root_flags) <(_sources))'
     23         ],
     24       },
     25       'inputs': [
     26         '<(js_bundler_path)',
     27         '<(closure_depswriter_path)',
     28         '<@(js_files)',
     29       ],
     30       'outputs': [
     31         'deps_js_output_file',
     32       ],
     33       'action': [
     34         'python',
     35         '<(closure_depswriter_path)',
     36         '-w', '<(closure_goog_dir):../closure/',
     37         '-w', ':../',
     38         '--output_file', '<(deps_js_output_file)',
     39         '<@(js_files)',
     40       ],
     41     },
     42   ]
     43 }
     44