The gyp documentation documents the 'variables'
section like this:
'variables': Definitions of variables that can be interpolated and used in various other parts of the file.
(emphasis mine). This seems to exclude using the variables in included gyp files, and also exclude the possibility of including other gyp files that set variables.
Is this correct? What is the scope of these variables, and how do you set variables globally?
I see that in Chromium, the build/common.gypi
is setting lots of variables, but Chromium also is using a magic gyp_chromium
script that is different from plain gyp
.