[Scons-users] Provide default Import to SConscript
Hua Yanghao
huayanghao at gmail.com
Sun Feb 18 04:10:34 EST 2018
On Sun, Feb 18, 2018 at 4:54 AM, Spencer Yost <syost at triad.rr.com> wrote:
> Just as an offhand comment, that is sort of related to this. First, I don't
> have to import a lot.
Me too, just one Import() for me for each SConscript.
> We just converted our build system to SCons(~1600+ packages, ~15000 source
> files and tens of millions of lines of code). Because python expertise
> ranges from completely lacking to extremely poor :-) in our c/c++ staff; the
> powers that be indicated that developers will not maintain SConscript files.
> They will maintain the original build configuration files that we
> had(something that approximates a win.ini file). That means I have to
> rebuild SConscript files for every original configuration file we had.
This is really something for me as a last resort. First my project is
relatively new
and I actually want to promote scons instead of hiding scons for the rest of the
developers. I will take a look into scons internal if I cannot
implement the default
import thing I will use your approach.
> Trying to figure out a way to programmatically consolidate them to minimize
> the number of SConscript files was nearly impossible. So we have about 1600
> SConscript files. Stuff like library dependencies vary between "packages"
> very frequently too. In addition the staff has to be able to build an
> individual "package" or the whole tree. I have a builder that creates the
> SConscript file whenever this original build configuration file changes. So
> it's not a big deal. But consolidating them was just way too big of a fish
> to fry in the time and budget allowed.
>
> Sometimes you just have to have a bunch of them.
>
> PS: SCons is working great for us. Dependencies are much more robust, speed
> is marginally better and the entire arc from source code change to Debian
> package creation is flawless. Being able to create command line options has
> been a godsend for us. Previously we would have to create build macros to
> emulate what command line options do.
>
> Spencer Yost
Yes scons worked pretty well for me in the past years and I just want to see if
I can push it to achieve the same level of simplicity/readability of
kbuild system.
thanks a lot for your real world experience it helped a lot.
Best Regards,
Yanghao
More information about the Scons-users
mailing list