Home | History | Annotate | Download | only in src
      1 {
      2   'targets': [
      3     {
      4       'target_name': 'program',
      5       'type': 'executable',
      6       'msvs_cygwin_shell': 0,
      7       'sources': [
      8         'main.c',
      9         'prog1.in',
     10         'prog2.in',
     11       ],
     12       'rules': [
     13         {
     14           'rule_name': 'make_sources',
     15           'extension': 'in',
     16           'inputs': [
     17             'make-sources.py',
     18           ],
     19           'outputs': [
     20             '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c',
     21             '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).h',
     22           ],
     23           'action': [
     24             'python', '<(_inputs)', '<(RULE_INPUT_NAME)', '<@(_outputs)',
     25           ],
     26           'process_outputs_as_sources': 1,
     27         },
     28       ],
     29     },
     30   ],
     31 }
     32