media/webrtc/trunk/tools/gyp/test/rules-variables/src/variables.gyp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/tools/gyp/test/rules-variables/src/variables.gyp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +# Copyright (c) 2011 Google Inc. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +{
     1.9 +  'target_defaults': {
    1.10 +    # This test shouldn't ever actually need to execute its rules: there's no
    1.11 +    # command line that generates any output anyway. However, there's something
    1.12 +    # slightly broken in either ninja or (maybe more likely?) on the win32 VM
    1.13 +    # gypbots that breaks dependency checking and causes this rule to want to
    1.14 +    # run. When it does run, the cygwin path is wrong, so the do-nothing step
    1.15 +    # fails.
    1.16 +    # TODO: Investigate and fix whatever's actually failing and remove this.
    1.17 +    'msvs_cygwin_dirs': ['../../../../../../<(DEPTH)/third_party/cygwin'],
    1.18 +  },
    1.19 +  'targets': [
    1.20 +    {
    1.21 +      'target_name': 'all_rule_variables',
    1.22 +      'type': 'executable',
    1.23 +      'sources': [
    1.24 +        'subdir/test.c',
    1.25 +      ],
    1.26 +      'rules': [
    1.27 +        {
    1.28 +          'rule_name': 'rule_variable',
    1.29 +          'extension': 'c',
    1.30 +          'outputs': [
    1.31 +            '<(RULE_INPUT_ROOT).input_root.c',
    1.32 +            '<(RULE_INPUT_DIRNAME)/input_dirname.c',
    1.33 +            'input_path/<(RULE_INPUT_PATH)',
    1.34 +            'input_ext<(RULE_INPUT_EXT)',
    1.35 +            'input_name/<(RULE_INPUT_NAME)',
    1.36 +          ],
    1.37 +          'action': [],
    1.38 +          'process_outputs_as_sources': 1,
    1.39 +        },
    1.40 +      ],
    1.41 +    },
    1.42 +  ],
    1.43 +}

mercurial