mssdk_setup_env
from SCons.Tool.MSCommon.vc import msvc_exists, \
- msvc_setup_env
+ msvc_setup_env, \
+ msvc_setup_env_once
from SCons.Tool.MSCommon.vs import get_default_version, \
get_vs_by_version, \
import SCons.Tool.msvc
import SCons.Util
-from MSCommon import msvs_exists, merge_default_version
+from MSCommon import msvs_exists, msvc_setup_env_once
def generate(env):
"""Add Builders and construction variables for lib to an Environment."""
SCons.Tool.createStaticLibBuilder(env)
- # Set-up ms tools paths for default version
- merge_default_version(env)
+ # Set-up ms tools paths
+ msvc_setup_env_once(env)
env['AR'] = 'lib'
env['ARFLAGS'] = SCons.Util.CLVar('/nologo')
import SCons.Tool.msvs
import SCons.Util
-from MSCommon import merge_default_version, msvs_exists
+from MSCommon import msvc_setup_env_once, msvs_exists
def pdbGenerator(env, target, source, for_signature):
try:
env['REGSVRFLAGS'] = '/s '
env['REGSVRCOM'] = '$REGSVR $REGSVRFLAGS ${TARGET.windows}'
- # Set-up ms tools paths for default version
- merge_default_version(env)
+ # Set-up ms tools paths
+ msvc_setup_env_once(env)
+
# Loadable modules are on Windows the same as shared libraries, but they
# are subject to different build parameters (LDMODULE* variables).
import SCons.Warnings
import SCons.Scanner.RC
-from MSCommon import msvc_exists, msvc_setup_env
+from MSCommon import msvc_exists, msvc_setup_env_once
CSuffixes = ['.c', '.C']
CXXSuffixes = ['.cc', '.cpp', '.cxx', '.c++', '.C++']
env['SHOBJPREFIX'] = '$OBJPREFIX'
env['SHOBJSUFFIX'] = '$OBJSUFFIX'
- # Set-up ms tools paths for default version
- msvc_setup_env(env)
+ # Set-up ms tools paths
+ msvc_setup_env_once(env)
import mssdk
mssdk.generate(env)