## Sconstruct: starting point of scons ## ## (for the manual see: www.scons.org) ## ## REMARK: * start with creating a system environment variable BOOST_ROOT, ## its value should be the top-directory of blitz ## (e.g. 'c:/libraries/blitz++-0.7') ## ## * the locations of header-files/binaries of external libraries are ## defined in e.g. intel-win32.scons. The locations of header-files/ ## binaries of the compiler should be defined as system-environment ## variables... # # # Basic files: # /Sconstruct: starting-point # /*.scons: (e.g. intel-win32.scons): system and compiler # directives, more details, see intel-win32.scons # /src/SConscript: information to compile the static-library blitz # /examples/SConscript:not yet implemented # #### Choose your compiler ... Compiler = 'intel-win32' #### import os env = Environment() # determine which options you tell your compiler/linker... if Compiler == 'intel-win32': Export('env') # exports 'env' into intel-win32.scons # intel-win32.scons Returns the adjusted variable 'env' env = SConscript('intel-win32.scons') BuildDir = 'intel-win32' # directory where the library will be build elif Compiler == 'mingw-win32': print 'not yet implemented' elif Compiler == 'intel-linux': print 'not yet implemented' elif Compiler == 'gcc-linux': print 'not yet implemented' Export('env') # the actual building of the library, determine which files need to be # compiled... SConscript('src/SConscript',build_dir = 'lib/' + BuildDir)