[Scons-users] Use Depends on a generated SConscript file, is it possible?
Bill Deegan
bill at baddogconsulting.com
Wed Sep 20 22:50:17 EDT 2017
Simple answer:
You Can't.
Also moving the SConscript call inside your custom builder would also not
work.
The following:
Tells SCons what to do, but that is not done until after all the
SConscripts are processed.
So.. how can you do what you want, but maybe not how you are currently
trying?
Do you really need to generate the SConscript? Or couldn't the SConscript
just perform programmatically at run time whatever your generator does.
Can you explain what the generateSConscriptFromTcml builder is doing?
On Wed, Sep 20, 2017 at 5:54 PM, Pierre-Luc Boily <pierreluc.boily at gmail.com
> wrote:
> I have to generate an SConscript on the fly then execute it. I need to
> tell
> scons that he has to first generate the SConscript file then call it. My
> code looks like this :
> ----------------------------------------
> Import('envService')
> env = envService.get_env32().Clone()
>
> tcml = env.Glob('*.tcml')
> script = env.generateSConscriptFromTcml(target = 'mbtTestCases',
> source = tcml)
>
> tgt = SConscript(str(script[0].abspath).strip(), exports=envService,
> duplicate=0)
> env.Alias('mbt', tgt)
> ----------------------------------------
>
> But I have a message saying that mbtTestCases.sc does not exist : "Ignoring
> missing SConscript 'build/debug/test/cases/mbtTestCases.sc'"
>
> How can I achieve that? I guess I could move my SConscript call inside the
> custom builder, but I would prefer having the call outside, it is a cleaner
> solution...
>
> thx
>
>
>
> --
> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170920/6a5e24da/attachment.html>
More information about the Scons-users
mailing list