diff options
Diffstat (limited to 'lib/libUPnP/Neptune/Build/Boot.scons')
-rw-r--r-- | lib/libUPnP/Neptune/Build/Boot.scons | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libUPnP/Neptune/Build/Boot.scons b/lib/libUPnP/Neptune/Build/Boot.scons index 67e858ea2f..979573b90f 100644 --- a/lib/libUPnP/Neptune/Build/Boot.scons +++ b/lib/libUPnP/Neptune/Build/Boot.scons @@ -9,7 +9,7 @@ EnsureSConsVersion(0,98,1) ####################################################### # Platform to Target Map (specifies which default target to build on a platform) -PLATFORM_TO_TARGET_MAP = { +PLATFORM_TO_TARGET_MAP = { 'linux-i386' : 'x86-unknown-linux', 'linux-x86_64': 'x86_64-unknown-linux', 'linux-arm' : 'arm-unknown-linux', @@ -18,7 +18,7 @@ PLATFORM_TO_TARGET_MAP = { 'cygwin' : 'x86-unknown-cygwin', 'darwin' : 'universal-apple-macosx' } - + # list all target dirs scons_root = Environment().GetBuildPath('#') targets_dir = scons_root+'/Build/Targets' @@ -40,7 +40,7 @@ def DefaultTarget(): if PLATFORM_TO_TARGET_MAP.has_key(platform_id): return PLATFORM_TO_TARGET_MAP[platform_id] - else: + else: return None ####################################################### @@ -50,6 +50,7 @@ options = Variables() options.AddVariables( EnumVariable('target', 'Build Target', DefaultTarget(), allowed_values=TARGET_PLATFORMS), BoolVariable('stop_on_warning', 'Stop the build on warnings', False), + BoolVariable('shared', 'Build a shared library', False), ListVariable('build_config', 'build configurations', 'Debug', names=['Debug', 'Release']) ) @@ -61,5 +62,5 @@ base_env = env for build_config in env['build_config']: env = base_env.Clone() env['build_config'] = build_config - print '********** Configuring Build Target =', env['target'], '/', build_config, '********' + print '********** Configuring Build Target =', env['target'], '/', build_config, '********' SConscript('Build.scons', variant_dir='Targets/'+env['target']+'/'+build_config, exports='env', duplicate=0) |