Home | History | Annotate | Download | only in subdir3
      1 # Copyright (c) 2009 Google Inc. 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 # This one tests that rules are properly written if extensions are different
      6 # between the target's sources (program.c) and the generated files
      7 # (function3.cc)
      8 
      9 {
     10   'targets': [
     11     {
     12       'target_name': 'program2',
     13       'type': 'executable',
     14       'msvs_cygwin_shell': 0,
     15       'sources': [
     16         'program.c',
     17         'function3.in',
     18       ],
     19       'rules': [
     20         {
     21           'rule_name': 'copy_file',
     22           'extension': 'in',
     23           'inputs': [
     24             '../copy-file.py',
     25           ],
     26           'outputs': [
     27             '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).cc',
     28           ],
     29           'action': [
     30             'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)',
     31           ],
     32           'process_outputs_as_sources': 1,
     33         },
     34       ],
     35     },
     36   ],
     37 }
     38