cmVS140CLFlagTable.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. static cmVS7FlagTable cmVS140CLFlagTable[] = {
  2. // Enum Properties
  3. { "DebugInformationFormat", "", "None", "None", 0 },
  4. { "DebugInformationFormat", "Z7", "C7 compatible", "OldStyle", 0 },
  5. { "DebugInformationFormat", "Zi", "Program Database", "ProgramDatabase", 0 },
  6. { "DebugInformationFormat", "ZI", "Program Database for Edit And Continue",
  7. "EditAndContinue", 0 },
  8. { "WarningLevel", "W0", "Turn Off All Warnings", "TurnOffAllWarnings", 0 },
  9. { "WarningLevel", "W1", "Level1", "Level1", 0 },
  10. { "WarningLevel", "W2", "Level2", "Level2", 0 },
  11. { "WarningLevel", "W3", "Level3", "Level3", 0 },
  12. { "WarningLevel", "W4", "Level4", "Level4", 0 },
  13. { "WarningLevel", "Wall", "EnableAllWarnings", "EnableAllWarnings", 0 },
  14. { "Optimization", "", "Custom", "Custom", 0 },
  15. { "Optimization", "Od", "Disabled", "Disabled", 0 },
  16. { "Optimization", "O1", "Minimize Size", "MinSpace", 0 },
  17. { "Optimization", "O2", "Maximize Speed", "MaxSpeed", 0 },
  18. { "Optimization", "Ox", "Full Optimization", "Full", 0 },
  19. { "InlineFunctionExpansion", "", "Default", "Default", 0 },
  20. { "InlineFunctionExpansion", "Ob0", "Disabled", "Disabled", 0 },
  21. { "InlineFunctionExpansion", "Ob1", "Only __inline", "OnlyExplicitInline",
  22. 0 },
  23. { "InlineFunctionExpansion", "Ob2", "Any Suitable", "AnySuitable", 0 },
  24. { "FavorSizeOrSpeed", "Os", "Favor small code", "Size", 0 },
  25. { "FavorSizeOrSpeed", "Ot", "Favor fast code", "Speed", 0 },
  26. { "FavorSizeOrSpeed", "", "Neither", "Neither", 0 },
  27. { "ExceptionHandling", "EHa", "Yes with SEH Exceptions", "Async", 0 },
  28. { "ExceptionHandling", "EHsc", "Yes", "Sync", 0 },
  29. { "ExceptionHandling", "EHs", "Yes with Extern C functions", "SyncCThrow",
  30. 0 },
  31. { "ExceptionHandling", "", "No", "false", 0 },
  32. { "BasicRuntimeChecks", "RTCs", "Stack Frames", "StackFrameRuntimeCheck",
  33. 0 },
  34. { "BasicRuntimeChecks", "RTCu", "Uninitialized variables",
  35. "UninitializedLocalUsageCheck", 0 },
  36. { "BasicRuntimeChecks", "RTC1", "Both (/RTC1, equiv. to /RTCsu)",
  37. "EnableFastChecks", 0 },
  38. { "BasicRuntimeChecks", "", "Default", "Default", 0 },
  39. { "RuntimeLibrary", "MT", "Multi-threaded", "MultiThreaded", 0 },
  40. { "RuntimeLibrary", "MTd", "Multi-threaded Debug", "MultiThreadedDebug", 0 },
  41. { "RuntimeLibrary", "MD", "Multi-threaded DLL", "MultiThreadedDLL", 0 },
  42. { "RuntimeLibrary", "MDd", "Multi-threaded Debug DLL",
  43. "MultiThreadedDebugDLL", 0 },
  44. { "StructMemberAlignment", "Zp1", "1 Byte", "1Byte", 0 },
  45. { "StructMemberAlignment", "Zp2", "2 Bytes", "2Bytes", 0 },
  46. { "StructMemberAlignment", "Zp4", "4 Byte", "4Bytes", 0 },
  47. { "StructMemberAlignment", "Zp8", "8 Bytes", "8Bytes", 0 },
  48. { "StructMemberAlignment", "Zp16", "16 Bytes", "16Bytes", 0 },
  49. { "StructMemberAlignment", "", "Default", "Default", 0 },
  50. { "BufferSecurityCheck", "GS-", "Disable Security Check", "false", 0 },
  51. { "BufferSecurityCheck", "GS", "Enable Security Check", "true", 0 },
  52. { "EnableEnhancedInstructionSet", "arch:SSE", "Streaming SIMD Extensions",
  53. "StreamingSIMDExtensions", 0 },
  54. { "EnableEnhancedInstructionSet", "arch:SSE2", "Streaming SIMD Extensions 2",
  55. "StreamingSIMDExtensions2", 0 },
  56. { "EnableEnhancedInstructionSet", "arch:AVX", "Advanced Vector Extensions",
  57. "AdvancedVectorExtensions", 0 },
  58. { "EnableEnhancedInstructionSet", "arch:AVX2",
  59. "Advanced Vector Extensions 2", "AdvancedVectorExtensions2", 0 },
  60. { "EnableEnhancedInstructionSet", "arch:IA32", "No Enhanced Instructions",
  61. "NoExtensions", 0 },
  62. { "EnableEnhancedInstructionSet", "", "Not Set", "NotSet", 0 },
  63. { "FloatingPointModel", "fp:precise", "Precise", "Precise", 0 },
  64. { "FloatingPointModel", "fp:strict", "Strict", "Strict", 0 },
  65. { "FloatingPointModel", "fp:fast", "Fast", "Fast", 0 },
  66. { "PrecompiledHeader", "Yc", "Create", "Create",
  67. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  68. { "PrecompiledHeader", "Yu", "Use", "Use",
  69. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  70. { "PrecompiledHeader", "Y-", "Not Using Precompiled Headers", "NotUsing",
  71. 0 },
  72. { "AssemblerOutput", "", "No Listing", "NoListing", 0 },
  73. { "AssemblerOutput", "FA", "Assembly-Only Listing", "AssemblyCode", 0 },
  74. { "AssemblerOutput", "FAc", "Assembly With Machine Code",
  75. "AssemblyAndMachineCode", 0 },
  76. { "AssemblerOutput", "FAs", "Assembly With Source Code",
  77. "AssemblyAndSourceCode", 0 },
  78. { "AssemblerOutput", "FAcs", "Assembly, Machine Code and Source", "All", 0 },
  79. { "CallingConvention", "Gd", "__cdecl", "Cdecl", 0 },
  80. { "CallingConvention", "Gr", "__fastcall", "FastCall", 0 },
  81. { "CallingConvention", "Gz", "__stdcall", "StdCall", 0 },
  82. { "CallingConvention", "Gv", "__vectorcall", "VectorCall", 0 },
  83. { "CompileAs", "", "Default", "Default", 0 },
  84. { "CompileAs", "TC", "Compile as C Code", "CompileAsC", 0 },
  85. { "CompileAs", "TP", "Compile as C++ Code", "CompileAsCpp", 0 },
  86. { "ErrorReporting", "errorReport:none", "Do Not Send Report", "None", 0 },
  87. { "ErrorReporting", "errorReport:prompt", "Prompt Immediately", "Prompt",
  88. 0 },
  89. { "ErrorReporting", "errorReport:queue", "Queue For Next Login", "Queue",
  90. 0 },
  91. { "ErrorReporting", "errorReport:send", "Send Automatically", "Send", 0 },
  92. { "CompileAsManaged", "", "No Common Language RunTime Support", "false", 0 },
  93. { "CompileAsManaged", "clr", "Common Language RunTime Support", "true", 0 },
  94. { "CompileAsManaged", "clr:pure",
  95. "Pure MSIL Common Language RunTime Support", "Pure", 0 },
  96. { "CompileAsManaged", "clr:safe",
  97. "Safe MSIL Common Language RunTime Support", "Safe", 0 },
  98. { "CompileAsManaged", "clr:oldSyntax",
  99. "Common Language RunTime Support, Old Syntax", "OldSyntax", 0 },
  100. { "CppLanguageStandard", "", "Default", "Default", 0 },
  101. { "CppLanguageStandard", "std=c++98", "C++03", "c++98", 0 },
  102. { "CppLanguageStandard", "std=c++11", "C++11", "c++11", 0 },
  103. { "CppLanguageStandard", "std=c++1y", "C++14", "c++1y", 0 },
  104. { "CppLanguageStandard", "std=c++14", "C++14", "c++1y", 0 },
  105. { "CppLanguageStandard", "std=gnu++98", "C++03 (GNU Dialect)", "gnu++98",
  106. 0 },
  107. { "CppLanguageStandard", "std=gnu++11", "C++11 (GNU Dialect)", "gnu++11",
  108. 0 },
  109. { "CppLanguageStandard", "std=gnu++1y", "C++14 (GNU Dialect)", "gnu++1y",
  110. 0 },
  111. { "CppLanguageStandard", "std=gnu++14", "C++14 (GNU Dialect)", "gnu++1y",
  112. 0 },
  113. // Bool Properties
  114. { "CompileAsWinRT", "ZW", "", "true", 0 },
  115. { "WinRTNoStdLib", "ZW:nostdlib", "", "true", 0 },
  116. { "SuppressStartupBanner", "nologo", "", "true", 0 },
  117. { "TreatWarningAsError", "WX-", "", "false", 0 },
  118. { "TreatWarningAsError", "WX", "", "true", 0 },
  119. { "SDLCheck", "sdl-", "", "false", 0 },
  120. { "SDLCheck", "sdl", "", "true", 0 },
  121. { "IntrinsicFunctions", "Oi", "", "true", 0 },
  122. { "OmitFramePointers", "Oy-", "", "false", 0 },
  123. { "OmitFramePointers", "Oy", "", "true", 0 },
  124. { "EnableFiberSafeOptimizations", "GT", "", "true", 0 },
  125. { "WholeProgramOptimization", "GL", "", "true", 0 },
  126. { "UndefineAllPreprocessorDefinitions", "u", "", "true", 0 },
  127. { "IgnoreStandardIncludePath", "X", "", "true", 0 },
  128. { "PreprocessToFile", "P", "", "true", 0 },
  129. { "PreprocessSuppressLineNumbers", "EP", "", "true", 0 },
  130. { "PreprocessKeepComments", "C", "", "true", 0 },
  131. { "StringPooling", "GF-", "", "false", 0 },
  132. { "StringPooling", "GF", "", "true", 0 },
  133. { "MinimalRebuild", "Gm-", "", "false", 0 },
  134. { "MinimalRebuild", "Gm", "", "true", 0 },
  135. { "SmallerTypeCheck", "RTCc", "", "true", 0 },
  136. { "FunctionLevelLinking", "Gy-", "", "false", 0 },
  137. { "FunctionLevelLinking", "Gy", "", "true", 0 },
  138. { "EnableParallelCodeGeneration", "Qpar-", "", "false", 0 },
  139. { "EnableParallelCodeGeneration", "Qpar", "", "true", 0 },
  140. { "FloatingPointExceptions", "fp:except-", "", "false", 0 },
  141. { "FloatingPointExceptions", "fp:except", "", "true", 0 },
  142. { "CreateHotpatchableImage", "hotpatch", "", "true", 0 },
  143. { "DisableLanguageExtensions", "Za", "", "true", 0 },
  144. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t-", "", "false", 0 },
  145. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t", "", "true", 0 },
  146. { "ForceConformanceInForLoopScope", "Zc:forScope-", "", "false", 0 },
  147. { "ForceConformanceInForLoopScope", "Zc:forScope", "", "true", 0 },
  148. { "RemoveUnreferencedCodeData", "Zc:inline-", "", "false", 0 },
  149. { "RemoveUnreferencedCodeData", "Zc:inline", "", "true", 0 },
  150. { "RuntimeTypeInfo", "GR-", "", "false", 0 },
  151. { "RuntimeTypeInfo", "GR", "", "true", 0 },
  152. { "OpenMPSupport", "openmp-", "", "false", 0 },
  153. { "OpenMPSupport", "openmp", "", "true", 0 },
  154. { "ExpandAttributedSource", "Fx", "", "true", 0 },
  155. { "UseUnicodeForAssemblerListing", "FAu", "", "true", 0 },
  156. { "ShowIncludes", "showIncludes", "", "true", 0 },
  157. { "EnablePREfast", "analyze-", "", "false", 0 },
  158. { "EnablePREfast", "analyze", "", "true", 0 },
  159. { "UseFullPaths", "FC", "", "true", 0 },
  160. { "OmitDefaultLibName", "Zl", "", "true", 0 },
  161. // Bool Properties With Argument
  162. { "MultiProcessorCompilation", "MP", "", "true",
  163. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  164. { "ProcessorNumber", "MP", "Multi-processor Compilation", "",
  165. cmVS7FlagTable::UserValueRequired },
  166. { "GenerateXMLDocumentationFiles", "doc", "", "true",
  167. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  168. { "XMLDocumentationFileName", "doc", "Generate XML Documentation Files", "",
  169. cmVS7FlagTable::UserValueRequired },
  170. { "BrowseInformation", "FR", "", "true",
  171. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  172. { "BrowseInformationFile", "FR", "Enable Browse Information", "",
  173. cmVS7FlagTable::UserValueRequired },
  174. // String List Properties
  175. { "AdditionalIncludeDirectories", "I", "Additional Include Directories", "",
  176. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  177. { "AdditionalUsingDirectories", "AI", "Additional #using Directories", "",
  178. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  179. { "PreprocessorDefinitions", "D ", "Preprocessor Definitions", "",
  180. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  181. { "UndefinePreprocessorDefinitions", "U",
  182. "Undefine Preprocessor Definitions", "",
  183. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  184. { "DisableSpecificWarnings", "wd", "Disable Specific Warnings", "",
  185. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  186. { "ForcedIncludeFiles", "FI", "Forced Include File", "",
  187. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  188. { "ForcedUsingFiles", "FU", "Forced #using File", "",
  189. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  190. { "PREfastLog", "analyze:log", "Code Analysis Log", "",
  191. cmVS7FlagTable::UserFollowing },
  192. { "PREfastAdditionalPlugins", "analyze:plugin",
  193. "Additional Code Analysis Native plugins", "",
  194. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  195. { "TreatSpecificWarningsAsErrors", "we", "Treat Specific Warnings As Errors",
  196. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  197. // String Properties
  198. // Skip [TrackerLogDirectory] - no command line Switch.
  199. { "PreprocessOutputPath", "Fi", "Preprocess Output Path", "",
  200. cmVS7FlagTable::UserValue },
  201. { "PrecompiledHeaderFile", "Yc", "Precompiled Header Name", "",
  202. cmVS7FlagTable::UserValueRequired },
  203. { "PrecompiledHeaderFile", "Yu", "Precompiled Header Name", "",
  204. cmVS7FlagTable::UserValueRequired },
  205. { "PrecompiledHeaderOutputFile", "Fp", "Precompiled Header Output File", "",
  206. cmVS7FlagTable::UserValue },
  207. { "AssemblerListingLocation", "Fa", "ASM List Location", "",
  208. cmVS7FlagTable::UserValue },
  209. { "ObjectFileName", "Fo", "Object File Name", "",
  210. cmVS7FlagTable::UserValue },
  211. { "ProgramDataBaseFileName", "Fd", "Program Database File Name", "",
  212. cmVS7FlagTable::UserValue },
  213. // Skip [XMLDocumentationFileName] - no command line Switch.
  214. // Skip [BrowseInformationFile] - no command line Switch.
  215. // Skip [AdditionalOptions] - no command line Switch.
  216. { 0, 0, 0, 0, 0 }
  217. };