[Scons-users] [Fwd: Re: [Scons-dev] Question regarding env.Glob()]

Michael Lahnert michael.lahnert at ipvs.uni-stuttgart.de
Fri Jan 30 03:51:18 EST 2015


Hello everyone,
after I failed to write the mail-address of the scons-users - mailing
list properly I will forward the mail.

Best regards
Michael

-------- Forwarded Message --------
From: Michael Lahnert <michael.lahnert at ipvs.uni-stuttgart.de>
To: dl9obn at darc.de, SCons developer list <scons-dev at scons.org>,
scons-user at scons.org
Subject: Re: [Scons-dev] Question regarding env.Glob()
Date: Fri, 30 Jan 2015 08:25:43 +0100

Hello Dirk, hello everyone,

On Thu, 2015-01-29 at 20:15 +0100, Dirk Bächle wrote:
> Hello Michael,
> 
> On 29.01.2015 17:22, Michael Lahnert wrote:
> > Is there a reason for omitting the cwd-parameter from the Glob-Function
> > in the environment class?

[with respect to the FS base class which is the function that the
Glob()-Function is calling, ML]

> the reason for this is, that setting the current working directory is not required. Even though the Node.FS.FS class supports this 
> parameter, since it's written in a more generic fashion, the reading phase ensures that the CWD is always set to the folder of the 
> currently parsed SConscript. In fact, large portions of the parsing phase rely on this...
> 
> Does this help you further?

I'm no longer sure this is a subject that belongs on the dev list. So I
will reply to the users-list as well.

What I want to do is build a shared-library-bundle in various flavours
(e. g. debug/release, use different compilers, whatever) consisting of
several modules.
As long as I don't introduce any hierarchy inside the modules I am fine,
I can do something like it's described in
http://www.intenct.info/raymond.penners/2011/scons-build-better/
Instead of hard-coding all the source - files into my SConscript file I
can simply call Glob(), set the duplicate-option of the
variantDir-function to 0 and it will work just fine.

But now what is the "scons way" of compiling something like I sketched
below?
|-module1
   |-submodule1
       |- *.cpp
       |- *.hpp
   |-submodule2
       |- *.cpp
       |- *.hpp

Best regards
Michael
-------- End of Forwarded Message --------

-- 
Dipl.-Inf. Michael Lahnert
Simulation großer Systeme
Institut für Parallele und Verteilte Systeme, Universität Stuttgart
Universitätsstraße 38
70569 Stuttgart | Germany

Tel: +49 (0)711 685 88560
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150130/2a7a52ae/attachment.pgp>


More information about the Scons-users mailing list