As a newbie to scons, I'm faced with converting a project with multiple modules in the one repo with a common top-level build. Each module already has a SConstruct file - to allow building them on their own.
Reading on hierarchical scons setup, I see the idea is to use a top-level SConstruct which loads the sub-projects' build files using SConscript() function, and that those files are/should be called SConscript. I find the rest of the info somewhat vague (or maybe TLDR?) - so
Thanks!
Answer to your questions in order
This sub project has SConstructs has been done before. Likely it's cleaner to use Import() in your SConstructs in your sub project and then verify that whatever you expect to have passed is there or not before using it. Wrapping that with copious comments as to why you are doing so if the sub projects are also used standalone..
Does this answer your question?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With