Hello gyp-developers,
I have three simple files which seem to indicate that list overrides using "=" are broken inside of conditionals:
<dest.gyp>
{
'includes': [
'source1.gypi',
'source2.gypi',
],
'mylist': [ 'dest' ],
'mycondlist': [ 'dest' ],
}
<source1.gypi>
{
'mylist=': [ 'source1' ],
'conditions': [
['OS=="linux"', {
'mycondlist=': [ 'source1' ],
}],
],
}
{
'mylist=': [ 'source2' ],
'conditions': [
['OS=="linux"', {
'mycondlist=': [ 'source2' ],
}],
],
}
The output of gypd compiler target contains these values:
'mycondlist': ['dest', 'source1', 'source2']
'mylist': ['source2']
What is going on here? This seems like a bug. It is not overriding the conditions since the final mycondlist contains all 3 values.