[Scons-users] Out of project tree builds

Managan, Rob managan1 at llnl.gov
Mon Oct 29 12:07:53 EDT 2012


Hi there,

Personally I like the approach of moving up one directory and then building alongside the sources; similar to Luc Bourhis suggestion.

Project
Sconstruct
build1/
build2/
src/
SConscript

That way I can build for different platforms, opt, debug,…. With one Sconstruct file…

On 10/27/12 8:57 PM, "Luc Bourhis" <luc_j_bourhis at mac.com<mailto:luc_j_bourhis at mac.com>> wrote:

Hi Russel,

One of the problems this person had was not being able to do "out of
project tree builds".

The easiest is probably, assuming the following layout as an example,

project / build
/ src / SConscript

is to create a SConstruct file in build that contains

Repository("../src")
SConscript("SConscript")


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121029/4fe47e31/attachment.html>


More information about the Scons-users mailing list