cmVS10CLFlagTable.h 9.4 KB

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