csbuild.toolchain_msvc module

Contains a plugin class for interfacing with MSVC

class csbuild.toolchain_msvc.MsvcBase

Bases: object

GetMsvcBinPath()
GetValidArchitectures()
InterruptExitCode()
SetMsvcVersion(msvc_version)

Set the MSVC version

Parameters:msvc_version (int) – The version to compile with
class csbuild.toolchain_msvc.SubSystem

Enum to define the subsystem to compile against.

BOOT_APPLICATION = 6
CONSOLE = 1
DEFAULT = 0
EFI_APPLICATION = 7
EFI_BOOT_SERVICE_DRIVER = 8
EFI_ROM = 9
EFI_RUNTIME_DRIVER = 10
NATIVE = 4
POSIX = 5
WINDOWS = 2
WINDOWS_CE = 3
class csbuild.toolchain_msvc.VisualStudioPackage

Helper enum for filling in the MSVC version based on specific versions of Visual Studio.

Vs2010 = 100
Vs2012 = 110
Vs2013 = 120
class csbuild.toolchain_msvc.compiler_msvc

Bases: csbuild.toolchain_msvc.MsvcBase, csbuild.toolchain.compilerBase

GetBaseCcCommand(project)
GetBaseCcPrecompileCommand(project)
GetBaseCxxCommand(project)
GetBaseCxxPrecompileCommand(project)
GetExtendedCommand(baseCmd, project, forceIncludeFile, outObj, inFile)
GetExtendedPrecompileCommand(baseCmd, project, forceIncludeFile, outObj, inFile)
GetObjExt()
GetPchFile(fileName)
GetPreprocessCommand(baseCmd, project, inFile)
PragmaMessage(message)
copy()
preLinkStep(project)
class csbuild.toolchain_msvc.linker_msvc

Bases: csbuild.toolchain_msvc.MsvcBase, csbuild.toolchain.linkerBase

FindLibrary(project, library, libraryDirs, force_static, force_shared)
GetDefaultOutputExtension(projectType)
GetLinkCommand(project, outputFile, objList)
LinkDebugRuntime()

Link with debug runtime

LinkReleaseRuntime()

Link with release runtime

SetOutputSubSystem(subsystem)

Sets the subsystem to compile against

Parameters:subsystem (A SubSystem enum value) – The subsystem to be used to compile
copy()

This Page