[Scons-users] Can SCons do this?
Anton Daneyko
self at mezhaka.com
Mon Jan 14 14:06:11 EST 2013
Dear SCons users, I wonder if I can use SCons as a build system. Here is a
description of what I want it to do and I want to hear from you if this is
worth it.
I work on a small C++ project (less than 30 files). It's a bunch of physics
simulation programs. My university group has access to several big
clusters, where I can run my simulations. It is quite a lot of platforms,
that we have there: several flavors of Linux and AIX (different
architectures: PowerPC, x86-64, IA-64). Each has it's own compiler of
choice, different flags, include directories and so on. Moreover it is
usually a cross-compilation, cause you access the cluster through a login
node, which has compilation tools for the machine, that is actually going
to run your parallel program.
I do prefer to develop on Windows, because Visual Studio (VS) has a nice
MPI debugger. I wonder if I can use SCons to generate the project\solution
files for VS, so I won't need to update both SCons script and VS project.
My workfllow would be to add whatever I need to SCons, regenerate the VS
project, continue to work with VS. At what extent is this supported? What
about VS versions?
Another example: I currently #define quite a lot of stuff for the build.
Would it be possible to propagate these into the VS project as well?
On what extent is SCons aware of compiler flags and where they are in my VS
project file? So for example I want to set the warning level flag in VS
(which is different from g++ or xlC) — can I do it in SCons in a way that
it is propagated into my VS project file?
What would happen if SCons is not aware of the mapping of my particular
option to a certain element of project file? For example, the next version
of VS is going to introduce a /magic flag, that I can set in some nested
dusty corner of configuration GUI. I suspect, that even if I manually tell
SCons to use /magic, as a compilation flag, it won't be able to set it in
the VS project file: when I generate the project file with SCons and open
it in VS the /magic is not going to be turned on.
I would be grateful to hear from you.
Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130114/816235d4/attachment.html>
More information about the Scons-users
mailing list