xiongfang / gyp

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

includes are parsed even when guarded by a condition that is false. #421

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Skia, we have a gyp file for including the files necessary for building with 
angle: https://skia.googlesource.com/skia/+/master/gyp/angle.gyp

In it, we include the file 
'../third_party/externals/angle/src/build_angle.gypi'. We guard this inclusion 
with the condition 'skia_angle'. However, even if that condition is false, gyp 
attempts to read that file. In general this does not change the resulting build 
files, but it becomes a problem on platforms where we have not synced angle, 
because the platform does not use it.

Original issue reported on code.google.com by scro...@google.com on 28 Apr 2014 at 7:37