scons: Support building with the Windows SDK.

x86_64 is also supported.
This commit is contained in:
José Fonseca
2009-03-25 19:24:16 +00:00
parent 33fa6a2755
commit 26e27ba308
5 changed files with 151 additions and 6 deletions

View File

@@ -198,14 +198,17 @@ def generate(env):
env['toolchain'] = 'wcesdk'
env.Tool(env['toolchain'])
env['gcc'] = 'gcc' in os.path.basename(env['CC']).split('-')
env['msvc'] = env['CC'] == 'cl'
# shortcuts
debug = env['debug']
machine = env['machine']
platform = env['platform']
x86 = env['machine'] == 'x86'
ppc = env['machine'] == 'ppc'
gcc = env['platform'] in ('linux', 'freebsd', 'darwin') or env['toolchain'] == 'crossmingw'
msvc = env['platform'] in ('windows', 'winddk', 'wince') and env['toolchain'] != 'crossmingw'
gcc = env['gcc']
msvc = env['msvc']
# Put build output in a separate dir, which depends on the current
# configuration. See also http://www.scons.org/wiki/AdvancedBuildExample