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 { 6 'targets': [ 7 { 8 'target_name': 'program', 9 'type': 'executable', 10 'msvs_cygwin_shell': 0, 11 'sources': [ 12 'program.c', 13 'function1.in', 14 'function2.in', 15 ], 16 'rules': [ 17 { 18 'rule_name': 'copy_file', 19 'extension': 'in', 20 'inputs': [ 21 '../copy-file.py', 22 ], 23 'outputs': [ 24 # TODO: fix Make to support generated files not 25 # in a variable-named path like <(INTERMEDIATE_DIR) 26 #'<(RULE_INPUT_ROOT).c', 27 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c', 28 ], 29 'action': [ 30 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', 31 ], 32 'process_outputs_as_sources': 1, 33 }, 34 ], 35 }, 36 ], 37 } 38