[Scons-users] env.Command with build explicit build
    Gary Oberbrunner 
    garyo at oberbrunner.com
       
    Sun Aug 12 13:02:50 EDT 2012
    
    
  
On Sun, Aug 12, 2012 at 5:16 AM, Philipp Kraus
<philipp.kraus at flashpixx.de> wrote:
...
> env.Command("buildmylib", "", runfunc)
>
> and the runfunc is
> def runfunc(target, source, env) :
>      if is unix :
>            os.system("make")
>      elif is osx
>            os.system("make")
>     else
>           envlib = Environment()
>           envlib.Sharedlib(...)
>    return []
>
> In which way can I pass the envlib to th main DAG, so if my SConstruct
> script is called the envlib library is build?
Try env.Command("buildmylib", "", runfunc, envlib=envlib)
... and then in runfunc, use env['envlib'] where you have envlib now.
-- 
Gary
    
    
More information about the Scons-users
mailing list