Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2013 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 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'generate_header', |
| 8 | 'type': 'none', |
| 9 | 'actions': [ |
| 10 | { |
| 11 | 'inputs': [ ], |
| 12 | 'outputs': [ |
| 13 | '<(SHARED_INTERMEDIATE_DIR)/MyHeader.h', |
| 14 | ], |
| 15 | 'action_name': 'generate header', |
| 16 | 'action': ['python', './action.py', |
| 17 | '<(SHARED_INTERMEDIATE_DIR)/MyHeader.h', 'foobar output' ], |
| 18 | }, |
| 19 | ], |
| 20 | 'msvs_cygwin_shell': 0, |
| 21 | }, |
| 22 | { |
| 23 | 'target_name': 'program', |
| 24 | 'type': 'executable', |
| 25 | 'dependencies': [ |
| 26 | 'generate_header', |
| 27 | ], |
| 28 | 'include_dirs': [ |
| 29 | '<(SHARED_INTERMEDIATE_DIR)', |
| 30 | ], |
| 31 | 'sources': [ 'main.cc' ], |
| 32 | }, |
| 33 | ], |
| 34 | } |