1# Copyright (c) 2014 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# Tests that if a rule input is also an action input, both the rule and action 6# are executed 7{ 8 'targets': [ 9 { 10 'target_name': 'files_both_rule_and_action_input', 11 'type': 'executable', 12 'msvs_cygwin_shell': 0, 13 'sources': [ 14 'program.c', 15 'file1.in', 16 'file2.in', 17 ], 18 'rules': [ 19 { 20 'rule_name': 'copy_file', 21 'extension': 'in', 22 'inputs': [ 23 '../copy-file.py', 24 ], 25 'outputs': [ 26 '<(RULE_INPUT_ROOT).out4', 27 ], 28 'action': [ 29 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', 30 ], 31 }, 32 ], 33 'actions': [ 34 { 35 'action_name': 'copy_file1_in', 36 'inputs': [ 37 '../copy-file.py', 38 'file1.in', 39 ], 40 'outputs': [ 41 'file1.copy', 42 ], 43 'action': [ 44 'python', '<@(_inputs)', '<(_outputs)' 45 ], 46 }, 47 ], 48 }, 49 ], 50} 51