Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 1 | { |
| 2 | 'variables': { |
| 3 | 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(image_out_dir)', |
| 4 | 'generator': 'sample_images/generate_image.sh', |
| 5 | }, |
| 6 | 'rules': [ |
| 7 | { |
| 8 | 'rule_name': 'generate_image', |
| 9 | 'extension': 'txt', |
| 10 | 'inputs': [ |
| 11 | '<(generator)', |
| 12 | '<(RULE_INPUT_PATH)', |
| 13 | ], |
| 14 | 'outputs': [ |
| 15 | '<(out_dir)/<(RULE_INPUT_ROOT).img', |
| 16 | ], |
| 17 | 'action': [ |
| 18 | '<(generator)', |
| 19 | '<(RULE_INPUT_PATH)', |
| 20 | '<(out_dir)', |
| 21 | ], |
| 22 | 'msvs_cygwin_shell': 0, |
| 23 | 'message': 'Generating image from <(RULE_INPUT_PATH)', |
| 24 | 'process_outputs_as_sources': 1, |
| 25 | }, |
| 26 | ], |
| 27 | } |