[Scons-users] placing object files to one common directory

Bill Deegan bill at baddogconsulting.com
Mon Apr 27 15:55:30 EDT 2015


Endre,

Not via VariantDir for sure.
You could make a pseudo builder (see user guide) which you call which
prepends the target with your "object dir"

-Bill

On Mon, Apr 27, 2015 at 2:48 PM, Endre Bak <ebak32 at gmail.com> wrote:

> Hi,
>
> I would like to place all object files from multiple source directories
> into one common object directory. Is that possible?
> I tried it with the following code:
>
> for src in [GTEST_DIR, 'src', 'mock']:
>     VariantDir('objs', src, duplicate=0)
>
> But it is rejected:
> scons: *** 'objs' already has a source directory:
> '/home/endre/Prg/Repos/GTestGMock/gtest-1.7.0'.
>
> Thanks,
> Endre
>
> _______________________________________________
> 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/20150427/dd2d4653/attachment.html>


More information about the Scons-users mailing list