Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | # Copyright (c) 2011 Google Inc. All rights reserved. |
michael@0 | 2 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | # found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | { |
michael@0 | 6 | 'target_defaults': { |
michael@0 | 7 | # This test shouldn't ever actually need to execute its rules: there's no |
michael@0 | 8 | # command line that generates any output anyway. However, there's something |
michael@0 | 9 | # slightly broken in either ninja or (maybe more likely?) on the win32 VM |
michael@0 | 10 | # gypbots that breaks dependency checking and causes this rule to want to |
michael@0 | 11 | # run. When it does run, the cygwin path is wrong, so the do-nothing step |
michael@0 | 12 | # fails. |
michael@0 | 13 | # TODO: Investigate and fix whatever's actually failing and remove this. |
michael@0 | 14 | 'msvs_cygwin_dirs': ['../../../../../../<(DEPTH)/third_party/cygwin'], |
michael@0 | 15 | }, |
michael@0 | 16 | 'targets': [ |
michael@0 | 17 | { |
michael@0 | 18 | 'target_name': 'all_rule_variables', |
michael@0 | 19 | 'type': 'executable', |
michael@0 | 20 | 'sources': [ |
michael@0 | 21 | 'subdir/test.c', |
michael@0 | 22 | ], |
michael@0 | 23 | 'rules': [ |
michael@0 | 24 | { |
michael@0 | 25 | 'rule_name': 'rule_variable', |
michael@0 | 26 | 'extension': 'c', |
michael@0 | 27 | 'outputs': [ |
michael@0 | 28 | '<(RULE_INPUT_ROOT).input_root.c', |
michael@0 | 29 | '<(RULE_INPUT_DIRNAME)/input_dirname.c', |
michael@0 | 30 | 'input_path/<(RULE_INPUT_PATH)', |
michael@0 | 31 | 'input_ext<(RULE_INPUT_EXT)', |
michael@0 | 32 | 'input_name/<(RULE_INPUT_NAME)', |
michael@0 | 33 | ], |
michael@0 | 34 | 'action': [], |
michael@0 | 35 | 'process_outputs_as_sources': 1, |
michael@0 | 36 | }, |
michael@0 | 37 | ], |
michael@0 | 38 | }, |
michael@0 | 39 | ], |
michael@0 | 40 | } |