humanai / gyp

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

Support dictionary variables expansion and merge #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Use case is being able to set defaults and override the chromium 
feature_defines list (see http://codereview.chromium.org/242102).

What I want to be able to do is:
Include file:
'variables': {
   'dict': { 'x':'A', 'y':'Y' }
},

Main file
'includes': [include file],
'variables': {
  'dict': { 'x': 'X', 'z': 'Z' }
}

<(dict) should eval to x=X y=Y z=Z

Original issue reported on code.google.com by y...@chromium.org on 2 Oct 2009 at 12:05

GoogleCodeExporter commented 9 years ago
It *might* be a matter of specifying 

'dict': { 'x=': 'X', 'z=', 'Z'}

if that doesn't work, then this needs to be part of the whole 
what-should-we-do-with-variables (lazy 
evaluation?) discussion.

Original comment by sgk@chromium.org on 21 Oct 2009 at 6:16