1 #######################################################################
4 # For example, invoke scons as
8 # to set configuration variables. Or you can write those options to a file
19 # to get the full list of options. See scons manpage for more info.
26 opts = Options('config.py')
27 opts.Add(BoolOption('debug', 'build debug version', 'no'))
28 opts.Add(PathOption('dxsdk', 'DirectX SDK installation dir', os.environ.get('DXSDK_DIR', 'C:\\DXSDK')))
33 Help(opts.GenerateHelpText(env))
35 env.Append(CPPDEFINES = [
40 '_CRT_SECURE_NO_DEPRECATE',
41 '_CRT_NON_CONFORMING_SWPRINTFS',
42 'WIN32_LEAN_AND_MEAN',
46 env.Append(CPPDEFINES = ['_DEBUG'])
48 env.Append(CPPDEFINES = ['NDEBUG'])
49 #env['PDB'] = '${TARGET.base}.pdb'
52 '/W3', # warning level
56 '/Od', # disable optimizations
57 '/Oi', # enable intrinsic functions
58 '/Oy-', # disable frame pointer omission
62 '/Ox', # maximum optimizations
63 '/Oi', # enable intrinsic functions
64 '/Os', # favor code space
66 env.Append(CFLAGS = cflags)
67 env.Append(CXXFLAGS = cflags)
84 env.Append(CPPPATH = [
85 os.path.join(env['dxsdk'], 'Include'),
90 SConscript('d3d8/SConscript')
91 SConscript('d3d9/SConscript')