michael@0: # Copyright (c) 2011 Google Inc. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: { michael@0: 'target_defaults': { michael@0: # This test shouldn't ever actually need to execute its rules: there's no michael@0: # command line that generates any output anyway. However, there's something michael@0: # slightly broken in either ninja or (maybe more likely?) on the win32 VM michael@0: # gypbots that breaks dependency checking and causes this rule to want to michael@0: # run. When it does run, the cygwin path is wrong, so the do-nothing step michael@0: # fails. michael@0: # TODO: Investigate and fix whatever's actually failing and remove this. michael@0: 'msvs_cygwin_dirs': ['../../../../../../<(DEPTH)/third_party/cygwin'], michael@0: }, michael@0: 'targets': [ michael@0: { michael@0: 'target_name': 'all_rule_variables', michael@0: 'type': 'executable', michael@0: 'sources': [ michael@0: 'subdir/test.c', michael@0: ], michael@0: 'rules': [ michael@0: { michael@0: 'rule_name': 'rule_variable', michael@0: 'extension': 'c', michael@0: 'outputs': [ michael@0: '<(RULE_INPUT_ROOT).input_root.c', michael@0: '<(RULE_INPUT_DIRNAME)/input_dirname.c', michael@0: 'input_path/<(RULE_INPUT_PATH)', michael@0: 'input_ext<(RULE_INPUT_EXT)', michael@0: 'input_name/<(RULE_INPUT_NAME)', michael@0: ], michael@0: 'action': [], michael@0: 'process_outputs_as_sources': 1, michael@0: }, michael@0: ], michael@0: }, michael@0: ], michael@0: }