SconstructShortMsvcWin32

garyo edited this page Dec 13, 2014 · 1 revision
  * 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

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.