Re: Help needed on command string

Russel Winder <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <[email protected]>
On Wed, 2017-04-12 at 07:50 -0700, Bill Deegan wrote:
> Russel,
> 
> I'm not sure what the difference is between configurations and
> variants?
> To me they are the same and SCons supports them well.
> The only difference may be that other build systems have per-
> concieved
> ideas of different configurations (flags for
> optimize/release/debug/etc)
> (More easily for some directory structures than others)

I guess different build systems have different thoughts. CMake, Meson,
and Dub for example handle the release/debug build as a separate
concept from the set of files which is determined by a target
specification application/test.

> Typically you create a bunch of environments for each variant, and
> then
> pass that to the same SConscript with different variant_dir's.
> 
> In some cases you may use info passed from the parent (Via
> SConscript) to
> modify the behavior of the children (SConscripts).

I think the lesson I have taken from this, is that unless you want to
program the build source structure explicitly, you have to put the
SConscript files in the directory to which they apply. I think my
problem was that I was trying to keep the SConscript file separate from
the source they related to. This is not something SCons handles well.
CMake and Meson allow this but also allow single top level
specification with variants without lots of hassle. SCons model
requires hassle if not using the SConscript in the directory to which
it applies.

Nothing wrong here per se, it just an idiom it behoves one not to fight
against.

> I've built debug/release/test/purify X 32/64bit x {linux,win32,
> solaris,
> hpux, aix} with such a build system. Worked like a charm.  (And
> wasn't
> overly complicated)

Doing all source compilation of D codes looks like it may not be that
hard to add to the D tools.

Also connecting SCons to the Dub repository may not be that big a deal.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEETwDs1X+Beyaiaer41L3V0s7Np7gFAljvIYkACgkQ1L3V0s7N
p7hIjA//Y7wQd9rveQc2BSmmKbVfP/jUsQV90rLJ3Hs2k+Xb1LXB4leZaxfQCCwv
cP+PwI9lCdyQr8uoi1FV8EAXHSGbIxwyB4FINoUaAOcR0gimFwsPH8GH9TLwzhV0
b292AaAkNMwzCt575wLBMvfAKlGadfuFOrFin6Uy97/TXF1LNkNo98Z3cVsAd3zx
sJUmP08gFmLCsENzVFF4FQX2YQepTr+91vNmtz752raxCdHf9Dk2WGlVcXwA5VlR
NemMxqUMvEWNRFviclBqMZ55kXEGHBJQLvRUPsip+geBnc+Nq3/DXiql5Yg4o8iB
Z7bxnRl4E8vukMneiZ4PhaLXtc2M2GcQPkzMGwq7mUF3aATGAM6wQokPFOFhQ4X2
+xLkvoAu6WL0wJHTQ7IHLxylYn9KwvA2dKy3q0nxFh129bqOXOjeQ5RXM2iypXl0
vmGzi1q0TvRcHqNv5GLhkRqUzbWfMo8xICVwytn67V8KlsiGd4/WC0notCIhZyG0
d/DqkfxNm29KrE+dlwNeQcyerEWRrVnGoma40Uiq4K4/ZlydfUezyRzjQ39/t86K
QW8dcw6NbLE926EZE2q2csI6RoV0CnP5qiwIw53Zskt+vVu83o4pkYNDT8gU3opn
8MpM1hWBSA6vJfQIBTblIFh0PG2BBIqh2v37U2e1wyaWL7s0j0c=
=Ttsi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.