haniceboy / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Exclusion and pattern lists don't work with user-defined variables #373

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This doesn't work as expected:

{
  'targets': [
    {
...
      'variables': {
        'somelist': ['foo', 'bar', 'baz']
      },
      'conditions': {
        [
          ['1==1', {
            'variables': {
              'somelist!': ['foo']
            }
          ]
        ]
      }
    }
  ]
}

When we expand <@(somelist) later, it still contains 'foo'.

somelist/ doesn't work either. somelist=, however, does work as documented in 
https://code.google.com/p/gyp/wiki/InputFormatReference.

Original issue reported on code.google.com by yoz@chromium.org on 9 Oct 2013 at 8:42

GoogleCodeExporter commented 9 years ago
Conditionals inside the variables dictionary don't work either, e.g.

'variables': {
  'somelist': ['foo', 'bar', 'baz'],
  'conditions': [
    ['1==1', {
      'somelist!': ['foo']
    }]
  ]
}

Original comment by yoz@chromium.org on 9 Oct 2013 at 9:12