Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).
Differences between revisions 26 and 27
Revision 26 as of 2005-03-22 04:20:51
Size: 561
Editor: cpe-66-75-232-228
Revision 27 as of 2008-03-12 02:47:02
Size: 561
Editor: localhost
Comment: converted to 1.6 markup
No differences found!
  • Author: JohnA
  • OS: Win2K
  • Tools: msvc

Note: these are my first SCONS trys, there are probably better ways of doing them

This is the shortest SConstruct for creating an executable. This is even simpler than SconstructShortMingwWin32

#need glob to get source files
import glob

#create an environment
env = Environment()

#target us myprogram.exe
#source is a list of source files
env.Program(target='myprogram', source = glob.glob('*.cpp'))

errata: do not need Split() around glob, i.e. source can be a list

SconstructShortMsvcWin32 (last edited 2008-03-12 02:47:02 by localhost)