comparison trunk/SConstruct @ 309:1c58a6f354e2

-Added debug symbols option for GCC -Fixed SSI bug - too early to try -1 for the other bits - oops again! -Added boost libraries to EC2 script
author tomwalters
date Fri, 26 Feb 2010 16:58:26 +0000
parents ed91095d9240
children 1705e25d5a59
comparison
equal deleted inserted replaced
308:91521e05b08f 309:1c58a6f354e2
60 # Define the command-line options for running scons 60 # Define the command-line options for running scons
61 options = Variables() 61 options = Variables()
62 options.Add(BoolVariable('mingw', 62 options.Add(BoolVariable('mingw',
63 'Compile on Windows using mingw rather than msvc', 63 'Compile on Windows using mingw rather than msvc',
64 False)) 64 False))
65 options.Add(BoolVariable('symbols',
66 'Add debuging symbols when compiling on gcc',
67 False))
65 68
66 # Environment variables 69 # Environment variables
67 env = Environment(options = options, ENV = os.environ) 70 env = Environment(options = options, ENV = os.environ)
68 if env['mingw']: 71 if env['mingw']:
69 # SCons Defaults to MSVC if installed on Windows. 72 # SCons Defaults to MSVC if installed on Windows.
110 # GNU compiler collection 113 # GNU compiler collection
111 elif compiler == 'gcc': 114 elif compiler == 'gcc':
112 env['STRIP'] = 'strip' 115 env['STRIP'] = 'strip'
113 env.AppendUnique(CPPFLAGS = ['-Wall']) 116 env.AppendUnique(CPPFLAGS = ['-Wall'])
114 env.AppendUnique(CPPFLAGS = ['-O3', '-fomit-frame-pointer']) 117 env.AppendUnique(CPPFLAGS = ['-O3', '-fomit-frame-pointer'])
118 if env['symbols']:
119 env.AppendUnique(CPPFLAGS = ['-g'])
115 if env['mingw']: 120 if env['mingw']:
116 if not env['PLATFORM'] == 'win32': 121 if not env['PLATFORM'] == 'win32':
117 print('Cross-compilation for Windows is not supported') 122 print('Cross-compilation for Windows is not supported')
118 Exit(1) 123 Exit(1)
119 else: 124 else: