[Scons-users] Storing object files in different directory

Gary Oberbrunner garyo at oberbrunner.com
Sat Oct 11 10:26:40 EDT 2014


On Sat, Oct 11, 2014 at 10:16 AM, Christopher Dimech
<dimech.christopher at gmail.com> wrote:
> I rather not use SConstruct at top level and have a build
> directory.

Well, using VariantDir is the standard way (see the man page and user
guide, they are pretty detailed on how to use this; you'd normally
have a SConstruct that uses VariantDir and invokes a SConscript where
all the real stuff is.)

If you really don't want to do that, there are hacks like setting
OBJPREFIX to "../../build" or similar.  That is prefixed to the names
of all object files created by Object.  See the man page for other
*PREFIX variables that may be useful to you.

-- 
Gary


More information about the Scons-users mailing list