Home | History | Annotate | Download | only in idl-excluded
      1 # Copyright (c) 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 {
      6   'targets': [
      7     {
      8       'target_name': 'exclude_with_action',
      9       'type': 'none',
     10       'msvs_cygwin_shell': 0,
     11       'actions': [{
     12         'action_name': 'copy_action',
     13         'inputs': [
     14           'copy-file.py',
     15           'bad.idl',
     16         ],
     17         'outputs': [
     18           '<(INTERMEDIATE_DIR)/bad.idl',
     19         ],
     20         'action': [
     21           'python', '<@(_inputs)', '<@(_outputs)',
     22         ],
     23       }],
     24     },
     25     {
     26       'target_name': 'exclude_with_rule',
     27       'type': 'none',
     28       'msvs_cygwin_shell': 0,
     29       'sources': [
     30         'bad.idl',
     31       ],
     32       'rules': [{
     33         'rule_name': 'copy_rule',
     34         'extension': 'idl',
     35         'inputs': [
     36           'copy-file.py',
     37         ],
     38         'outputs': [
     39           '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).idl',
     40         ],
     41         'action': [
     42           'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)',
     43         ],
     44       }],
     45     },
     46     {
     47       'target_name': 'program',
     48       'type': 'executable',
     49       'sources': [
     50         'program.cc',
     51       ],
     52       'dependencies': [
     53         'exclude_with_action',
     54         'exclude_with_rule',
     55       ],
     56     },
     57   ],
     58 }
     59