wutingcindy / gyp

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

how to source environment variables before generate Makefile #294

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi all, 

I have a problem in using gyp to generate makefile. Typically, I generate my 
make like this.

source /opt/intel/bin/compilervars.sh intel64
gyp sub2.gyp

that's, I have to set up a lot of environment variable before generating 
makefile. But problems up when i have a top.gyp which dependent on sub1.gyp and 
sub2.gyp.

I can not do this:
source /opt/intel/bin/compilervars.sh intel64
gyp top.gyp

because sub1.gyp does not need these environment variables like sub2.gyp。

So how can i source my environment in the scope of some certain gyp file?

Original issue reported on code.google.com by Huabin.Zheng on 3 Sep 2012 at 7:04