[Scons-users] Use Sconscript call in Sconscript file
pierreluc.boily at gmail.com
Thu Mar 7 17:20:25 EST 2019
Thx. I thought that I tried that.. it looks like is it not the case. It
works like a charm....
Le jeu. 7 mars 2019, à 15 h 27, Bill Deegan <bill at baddogconsulting.com> a
> On Thu, Mar 7, 2019 at 2:17 PM Pierre-Luc Boily <pierreluc.boily at gmail.com>
>> Sorry if this has been already asked. I searched this topic and I found
>> nothing relevant...
>> So, our current scons architecture reads ALL SConscripts and they are all
>> read from SConsctruct. This is good when you want to build the whole
>> product. But our product is huge a the dependency tree monstrous.
>> I'd like to speed up the build when we compile an alias\sub-component of
>> product by having smaller tree.
>> So, what I am trying to do is to instead of invoking all Sconscript from
>> SConstruct, I try to move Sconscript call inside Sconscript file. I
>> read Chapter 14. Hierarchical Builds, but I can this make to work. I
>> that I misuse the variant dir or maybe our code architecture not suit well
>> for the hierarchy build. See :
>> vcxprojList', variant_dir='build/fwk/systemServices/stupd/', duplicate=0)
>> *Sconscript stupd.sc:*
>> libraries = SConscript('fwk/simulation_fwk/core/logger_c/logger_c.sc',
>> exports='envService', variant_dir='build/fwk/systemServices/stupd/',
> All these paths are relative and would be relative to the variantdir
> specified in the parent..
> And the variant dir would be:
> Likely you really want:
> libraries = SConscript('#fwk/simulation_fwk/core/logger_c/logger_c.sc',
> exports='envService', variant_dir='#build/fwk/systemServices/stupd/',
>> libraries += env.buildLibrary(env.libName(), env.Glob('*.c*',
>> env.Append(LIBS = libraries + ['stdc++'])
>> env.buildProgram('stupd', ['stupd_main.c'])
>> *Output error:*
>> scons: warning: Ignoring missing SConscript
>> Is it possible to achieve what I want to do? I understand that subsidary
>> Sconscript shall reside under SConscript file variant dir passed as
>> argument, but would it be possible to use absolute path? I tried with no
>> As you can see, /fwk/simulation_fwk/core/logger_c/logger_c.sc/ is not
>> /fwk/systemServices/stupd/core/stupd.sc/, so it might be a problem.
>> Thank you
>> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
>> Scons-users mailing list
>> Scons-users at scons.org
> Scons-users mailing list
> Scons-users at scons.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-users