[Scons-users] What is the best approach with SConstruct calling SConscript

Bill Deegan bill at baddogconsulting.com
Wed Nov 16 09:57:14 EST 2016


You can make a  pseudo builder to wrap calling
env.SharedObject('targetdir/filename','sourcefile'), and then program or
shared library..

But yes your sconscript usage is probably the easiest.


On Wed, Nov 16, 2016 at 8:53 AM, Pierre-Luc Boily <pierreluc.boily at gmail.com
> wrote:

> Well, my solution does not work as expected .  See this snippet of the
> tree :
>
> cl /Fobuild\sr\speech\SpeechProtocol\Protocol\
> SpProtocolMessageConverter.obj
> ......
> cl
> /Fobuild\sr\speech\SpeechProtocol\Protocol\SpProtocolMessageDefinitions.
> obj
> .........
> cl /Fobuild\sr\speech\SpeechProtocol\Protocol\SpProtocolMessaging.obj
> ..........
> lib /nologo
> /OUT:build\sr\speech\SpeechProtocol\Protocol\win32\
> libsr_speech_SpeechProtocol_Protocol-debug.lib
> ...........
>
> As you can see, only my library is created in the correct win32 folder.
> All
> .obj are created one folder above win32, which is normal I guess because it
> is the variant_dir that I specified when calling the SConcsript.
>
> Well, I guess I will not have the choice to manually call all my
> SConscript.
> For the one needed to being built in both environment, I will do something
> like :
>
> SConscript(sconscriptA, {'env':envWin32}, variant_dir='build/win32')
> SConscript(sconscriptA, {'env':envWin64}, variant_dir='build/win64')
>
>
>
>
>
> --
> View this message in context: http://scons.1086193.n5.
> nabble.com/What-is-the-best-approach-with-SConstruct-calling-SConscript-
> tp40704p40724.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20161116/4ffb7226/attachment.html>


More information about the Scons-users mailing list