saker.msvc Documentation TaskDoc JavaDoc Packages
Enumeration containing possible C option preset types. The values can be used with saker.msvc.coptions.preset() for specifying the preset type. The preset types are interpreted in a case-insensitive manner.
Summary
Enumeration values
consolePreset type for console based applications.
dllPreset type for DLL (Dynamic Link Library) creation.
optimize-debugPreset that includes command line arguments for debug optimization.
optimize-releasePreset that includes command line arguments for release optimization.
uapPreset type for developing against the Universal Application Platform (also known as UWP, Universal Windows Platform).
unicodePreset that adds the UNICODE and _UNICODE preprocessor definitions.
win32Preset type for Windows based applications.
Enumeration values
Preset type for console based applications. The preset includes the /SUBSYSTEM:CONSOLE simple linker parameter, and adds appropriate include directories and library paths to access the Windows SDK. The _CONSOLE preprocessor definition is added.
Preset type for DLL (Dynamic Link Library) creation. The preset includes the /DLL /SUBSYSTEM:WINDOWS simple linker parameters and adds appropriate include directories and library paths to access the Windows SDK. The _WINDOWS, _WINDLL preprocessor definitions are added.
Preset that includes command line arguments for debug optimization. The /Od simple parameters are added for compilation. Also defines the _DEBUG macro without any value (/D_DEBUG). The preset doesn't include any linker parameters.
Preset that includes command line arguments for release optimization. The /GL /Gy /O2 /Oi simple parameters are added for compilation. Also defines the NDEBUG macro without any value (/DNDEBUG). The /LTCG /OPT:REF /OPT:ICF simple parameters are added for linking.
Preset type for developing against the Universal Application Platform (also known as UWP, Universal Windows Platform).
Preset that adds the UNICODE and _UNICODE preprocessor definitions. This allows using wide characters with the functions defined in the Windows header files. E.g. CreateFile maps to CreateFileW instead of CreatefileA.
Preset type for Windows based applications. The preset includes the /SUBSYSTEM:WINDOWS simple linker parameter, and adds appropriate include directories and library paths to access the Windows SDK. The _WINDOWS preprocessor definition is added.