cmVS140LinkFlagTable.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. static cmVS7FlagTable cmVS140LinkFlagTable[] = {
  2. // Enum Properties
  3. { "ShowProgress", "", "Not Set", "NotSet", 0 },
  4. { "ShowProgress", "VERBOSE", "Display all progress messages", "LinkVerbose",
  5. 0 },
  6. { "ShowProgress", "VERBOSE:Lib", "For Libraries Searched", "LinkVerboseLib",
  7. 0 },
  8. { "ShowProgress", "VERBOSE:ICF",
  9. "About COMDAT folding during optimized linking", "LinkVerboseICF", 0 },
  10. { "ShowProgress", "VERBOSE:REF",
  11. "About data removed during optimized linking", "LinkVerboseREF", 0 },
  12. { "ShowProgress", "VERBOSE:SAFESEH", "About Modules incompatible with SEH",
  13. "LinkVerboseSAFESEH", 0 },
  14. { "ShowProgress", "VERBOSE:CLR",
  15. "About linker activity related to managed code", "LinkVerboseCLR", 0 },
  16. { "ForceFileOutput", "FORCE", "Enabled", "Enabled", 0 },
  17. { "ForceFileOutput", "FORCE:MULTIPLE", "Multiply Defined Symbol Only",
  18. "MultiplyDefinedSymbolOnly", 0 },
  19. { "ForceFileOutput", "FORCE:UNRESOLVED", "Undefined Symbol Only",
  20. "UndefinedSymbolOnly", 0 },
  21. { "CreateHotPatchableImage", "FUNCTIONPADMIN", "Enabled", "Enabled", 0 },
  22. { "CreateHotPatchableImage", "FUNCTIONPADMIN:5", "X86 Image Only",
  23. "X86Image", 0 },
  24. { "CreateHotPatchableImage", "FUNCTIONPADMIN:6", "X64 Image Only",
  25. "X64Image", 0 },
  26. { "CreateHotPatchableImage", "FUNCTIONPADMIN:16", "Itanium Image Only",
  27. "ItaniumImage", 0 },
  28. // correct flags for uac should be /MANIFESTUAC, but some projects already
  29. // use this bug to access uac field, so keep these for compatibility
  30. { "UACExecutionLevel", "level='asInvoker'", "asInvoker", "AsInvoker", 0 },
  31. { "UACExecutionLevel", "level='highestAvailable'", "highestAvailable",
  32. "HighestAvailable", 0 },
  33. { "UACExecutionLevel", "level='requireAdministrator'",
  34. "requireAdministrator", "RequireAdministrator", 0 },
  35. { "GenerateDebugInformation", "DEBUG:FASTLINK",
  36. "Optimize for faster linking", "DebugFastLink",
  37. cmVS7FlagTable::CaseInsensitive },
  38. { "GenerateDebugInformation", "DEBUG:FULL", "Optimize for debugging", "true",
  39. cmVS7FlagTable::CaseInsensitive },
  40. { "GenerateDebugInformation", "DEBUG:NONE",
  41. "Produces no debugging information", "false",
  42. cmVS7FlagTable::CaseInsensitive },
  43. { "GenerateDebugInformation", "DEBUG", "Optimize for debugging", "true",
  44. cmVS7FlagTable::CaseInsensitive },
  45. { "SubSystem", "", "Not Set", "NotSet", 0 },
  46. { "SubSystem", "SUBSYSTEM:CONSOLE", "Console", "Console", 0 },
  47. { "SubSystem", "SUBSYSTEM:WINDOWS", "Windows", "Windows", 0 },
  48. { "SubSystem", "SUBSYSTEM:NATIVE", "Native", "Native", 0 },
  49. { "SubSystem", "SUBSYSTEM:EFI_APPLICATION", "EFI Application",
  50. "EFI Application", 0 },
  51. { "SubSystem", "SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER",
  52. "EFI Boot Service Driver", "EFI Boot Service Driver", 0 },
  53. { "SubSystem", "SUBSYSTEM:EFI_ROM", "EFI ROM", "EFI ROM", 0 },
  54. { "SubSystem", "SUBSYSTEM:EFI_RUNTIME_DRIVER", "EFI Runtime", "EFI Runtime",
  55. 0 },
  56. { "SubSystem", "SUBSYSTEM:POSIX", "POSIX", "POSIX", 0 },
  57. { "Driver", "", "Not Set", "NotSet", 0 },
  58. { "Driver", "Driver", "Driver", "Driver", 0 },
  59. { "Driver", "DRIVER:UPONLY", "UP Only", "UpOnly", 0 },
  60. { "Driver", "DRIVER:WDM", "WDM", "WDM", 0 },
  61. { "LinkTimeCodeGeneration", "", "Default", "Default", 0 },
  62. { "LinkTimeCodeGeneration", "LTCG:incremental",
  63. "Use Fast Link Time Code Generation", "UseFastLinkTimeCodeGeneration", 0 },
  64. { "LinkTimeCodeGeneration", "LTCG", "Use Link Time Code Generation",
  65. "UseLinkTimeCodeGeneration", 0 },
  66. { "LinkTimeCodeGeneration", "LTCG:PGInstrument",
  67. "Profile Guided Optimization - Instrument", "PGInstrument", 0 },
  68. { "LinkTimeCodeGeneration", "LTCG:PGOptimize",
  69. "Profile Guided Optimization - Optimization", "PGOptimization", 0 },
  70. { "LinkTimeCodeGeneration", "LTCG:PGUpdate",
  71. "Profile Guided Optimization - Update", "PGUpdate", 0 },
  72. { "GenerateWindowsMetadata", "WINMD", "Yes", "true", 0 },
  73. { "GenerateWindowsMetadata", "WINMD:NO", "No", "false", 0 },
  74. { "WindowsMetadataSignHash", "WINMDSIGNHASH:SHA1", "SHA1", "SHA1", 0 },
  75. { "WindowsMetadataSignHash", "WINMDSIGNHASH:SHA256", "SHA256", "SHA256", 0 },
  76. { "WindowsMetadataSignHash", "WINMDSIGNHASH:SHA384", "SHA384", "SHA384", 0 },
  77. { "WindowsMetadataSignHash", "WINMDSIGNHASH:SHA512", "SHA512", "SHA512", 0 },
  78. { "TargetMachine", "", "Not Set", "NotSet", 0 },
  79. { "TargetMachine", "MACHINE:ARM", "MachineARM", "MachineARM", 0 },
  80. { "TargetMachine", "MACHINE:EBC", "MachineEBC", "MachineEBC", 0 },
  81. { "TargetMachine", "MACHINE:IA64", "MachineIA64", "MachineIA64", 0 },
  82. { "TargetMachine", "MACHINE:MIPS", "MachineMIPS", "MachineMIPS", 0 },
  83. { "TargetMachine", "MACHINE:MIPS16", "MachineMIPS16", "MachineMIPS16", 0 },
  84. { "TargetMachine", "MACHINE:MIPSFPU", "MachineMIPSFPU", "MachineMIPSFPU",
  85. 0 },
  86. { "TargetMachine", "MACHINE:MIPSFPU16", "MachineMIPSFPU16",
  87. "MachineMIPSFPU16", 0 },
  88. { "TargetMachine", "MACHINE:SH4", "MachineSH4", "MachineSH4", 0 },
  89. { "TargetMachine", "MACHINE:THUMB", "MachineTHUMB", "MachineTHUMB", 0 },
  90. { "TargetMachine", "MACHINE:X64", "MachineX64", "MachineX64", 0 },
  91. { "TargetMachine", "MACHINE:X86", "MachineX86", "MachineX86", 0 },
  92. { "CLRThreadAttribute", "CLRTHREADATTRIBUTE:MTA", "MTA threading attribute",
  93. "MTAThreadingAttribute", 0 },
  94. { "CLRThreadAttribute", "CLRTHREADATTRIBUTE:STA", "STA threading attribute",
  95. "STAThreadingAttribute", 0 },
  96. { "CLRThreadAttribute", "CLRTHREADATTRIBUTE:NONE",
  97. "Default threading attribute", "DefaultThreadingAttribute", 0 },
  98. { "CLRImageType", "CLRIMAGETYPE:IJW", "Force IJW image", "ForceIJWImage",
  99. 0 },
  100. { "CLRImageType", "CLRIMAGETYPE:PURE", "Force Pure IL Image",
  101. "ForcePureILImage", 0 },
  102. { "CLRImageType", "CLRIMAGETYPE:SAFE", "Force Safe IL Image",
  103. "ForceSafeILImage", 0 },
  104. { "CLRImageType", "", "Default image type", "Default", 0 },
  105. { "SignHash", "CLRSIGNHASH:SHA1", "SHA1", "SHA1", 0 },
  106. { "SignHash", "CLRSIGNHASH:SHA256", "SHA256", "SHA256", 0 },
  107. { "SignHash", "CLRSIGNHASH:SHA384", "SHA384", "SHA384", 0 },
  108. { "SignHash", "CLRSIGNHASH:SHA512", "SHA512", "SHA512", 0 },
  109. { "LinkErrorReporting", "ERRORREPORT:PROMPT", "PromptImmediately",
  110. "PromptImmediately", 0 },
  111. { "LinkErrorReporting", "ERRORREPORT:QUEUE", "Queue For Next Login",
  112. "QueueForNextLogin", 0 },
  113. { "LinkErrorReporting", "ERRORREPORT:SEND", "Send Error Report",
  114. "SendErrorReport", 0 },
  115. { "LinkErrorReporting", "ERRORREPORT:NONE", "No Error Report",
  116. "NoErrorReport", 0 },
  117. { "CLRSupportLastError", "CLRSupportLastError", "Enabled", "Enabled", 0 },
  118. { "CLRSupportLastError", "CLRSupportLastError:NO", "Disabled", "Disabled",
  119. 0 },
  120. { "CLRSupportLastError", "CLRSupportLastError:SYSTEMDLL", "System Dlls Only",
  121. "SystemDlls", 0 },
  122. // Bool Properties
  123. { "LinkIncremental", "INCREMENTAL:NO", "", "false", 0 },
  124. { "LinkIncremental", "INCREMENTAL", "", "true", 0 },
  125. { "SuppressStartupBanner", "NOLOGO", "", "true", 0 },
  126. { "LinkStatus", "LTCG:NOSTATUS", "", "false", 0 },
  127. { "LinkStatus", "LTCG:STATUS", "", "true", 0 },
  128. { "PreventDllBinding", "ALLOWBIND:NO", "", "false", 0 },
  129. { "PreventDllBinding", "ALLOWBIND", "", "true", 0 },
  130. { "TreatLinkerWarningAsErrors", "WX:NO", "", "false", 0 },
  131. { "TreatLinkerWarningAsErrors", "WX", "", "true", 0 },
  132. { "IgnoreAllDefaultLibraries", "NODEFAULTLIB", "", "true", 0 },
  133. { "GenerateManifest", "MANIFEST:NO", "", "false", 0 },
  134. { "GenerateManifest", "MANIFEST", "", "true", 0 },
  135. { "AllowIsolation", "ALLOWISOLATION:NO", "", "false", 0 },
  136. // correct flags for uac should be /MANIFESTUAC, but some projects already
  137. // use this bug to access uac field, so keep these for compatibility
  138. { "UACUIAccess", "uiAccess='false'", "", "false", 0 },
  139. { "UACUIAccess", "uiAccess='true'", "", "true", 0 },
  140. { "ManifestEmbed", "manifest:embed", "", "true", 0 },
  141. { "MapExports", "MAPINFO:EXPORTS", "", "true", 0 },
  142. { "AssemblyDebug", "ASSEMBLYDEBUG:DISABLE", "", "false", 0 },
  143. { "AssemblyDebug", "ASSEMBLYDEBUG", "", "true", 0 },
  144. { "LargeAddressAware", "LARGEADDRESSAWARE:NO", "", "false", 0 },
  145. { "LargeAddressAware", "LARGEADDRESSAWARE", "", "true", 0 },
  146. { "TerminalServerAware", "TSAWARE:NO", "", "false", 0 },
  147. { "TerminalServerAware", "TSAWARE", "", "true", 0 },
  148. { "SwapRunFromCD", "SWAPRUN:CD", "", "true", 0 },
  149. { "SwapRunFromNET", "SWAPRUN:NET", "", "true", 0 },
  150. { "OptimizeReferences", "OPT:NOREF", "", "false", 0 },
  151. { "OptimizeReferences", "OPT:REF", "", "true", 0 },
  152. { "EnableCOMDATFolding", "OPT:NOICF", "", "false", 0 },
  153. { "EnableCOMDATFolding", "OPT:ICF", "", "true", 0 },
  154. { "IgnoreEmbeddedIDL", "IGNOREIDL", "", "true", 0 },
  155. { "AppContainer", "APPCONTAINER", "", "true", 0 },
  156. { "WindowsMetadataLinkDelaySign", "WINMDDELAYSIGN:NO", "", "false", 0 },
  157. { "WindowsMetadataLinkDelaySign", "WINMDDELAYSIGN", "", "true", 0 },
  158. { "NoEntryPoint", "NOENTRY", "", "true", 0 },
  159. { "SetChecksum", "RELEASE", "", "true", 0 },
  160. { "RandomizedBaseAddress", "DYNAMICBASE:NO", "", "false", 0 },
  161. { "RandomizedBaseAddress", "DYNAMICBASE", "", "true", 0 },
  162. { "FixedBaseAddress", "FIXED:NO", "", "false", 0 },
  163. { "FixedBaseAddress", "FIXED", "", "true", 0 },
  164. { "DataExecutionPrevention", "NXCOMPAT:NO", "", "false", 0 },
  165. { "DataExecutionPrevention", "NXCOMPAT", "", "true", 0 },
  166. { "TurnOffAssemblyGeneration", "NOASSEMBLY", "", "true", 0 },
  167. { "SupportUnloadOfDelayLoadedDLL", "DELAY:UNLOAD", "", "true", 0 },
  168. { "SupportNobindOfDelayLoadedDLL", "DELAY:NOBIND", "", "true", 0 },
  169. { "Profile", "PROFILE", "", "true", 0 },
  170. { "LinkDelaySign", "DELAYSIGN:NO", "", "false", 0 },
  171. { "LinkDelaySign", "DELAYSIGN", "", "true", 0 },
  172. { "CLRUnmanagedCodeCheck", "CLRUNMANAGEDCODECHECK:NO", "", "false", 0 },
  173. { "CLRUnmanagedCodeCheck", "CLRUNMANAGEDCODECHECK", "", "true", 0 },
  174. { "DetectOneDefinitionRule", "ODR", "", "true", 0 },
  175. { "ImageHasSafeExceptionHandlers", "SAFESEH:NO", "", "false", 0 },
  176. { "ImageHasSafeExceptionHandlers", "SAFESEH", "", "true", 0 },
  177. { "LinkDLL", "DLL", "", "true", 0 },
  178. // Bool Properties With Argument
  179. { "EnableUAC", "MANIFESTUAC:", "", "",
  180. cmVS7FlagTable::UserValueRequired | cmVS7FlagTable::SpaceAppendable },
  181. { "GenerateMapFile", "MAP", "", "true",
  182. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  183. { "MapFileName", "MAP:", "Generate Map File", "",
  184. cmVS7FlagTable::UserValueRequired },
  185. // String List Properties
  186. { "AdditionalLibraryDirectories", "LIBPATH:",
  187. "Additional Library Directories", "",
  188. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  189. { "Natvis", "NATVIS:", "Natvis files", "",
  190. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  191. // Skip [AdditionalDependencies] - no command line Switch.
  192. { "IgnoreSpecificDefaultLibraries", "NODEFAULTLIB:",
  193. "Ignore Specific Default Libraries", "",
  194. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  195. { "AddModuleNamesToAssembly", "ASSEMBLYMODULE:", "Add Module to Assembly",
  196. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  197. { "EmbedManagedResourceFile", "ASSEMBLYRESOURCE:",
  198. "Embed Managed Resource File", "",
  199. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  200. { "ForceSymbolReferences", "INCLUDE:", "Force Symbol References", "",
  201. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  202. { "DelayLoadDLLs", "DELAYLOAD:", "Delay Loaded Dlls", "",
  203. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  204. { "AssemblyLinkResource", "ASSEMBLYLINKRESOURCE:", "Assembly Link Resource",
  205. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  206. { "AdditionalManifestDependencies", "MANIFESTDEPENDENCY:",
  207. "Additional Manifest Dependencies", "",
  208. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  209. { "ManifestInput", "manifestinput:", "Manifest Input", "",
  210. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  211. // String Properties
  212. { "OutputFile", "OUT:", "Output File", "", cmVS7FlagTable::UserValue },
  213. { "Version", "VERSION:", "Version", "", cmVS7FlagTable::UserValue },
  214. { "SpecifySectionAttributes", "SECTION:", "Specify Section Attributes", "",
  215. cmVS7FlagTable::UserValue },
  216. { "MSDOSStubFileName", "STUB:", "MS-DOS Stub File Name", "",
  217. cmVS7FlagTable::UserValue },
  218. // Skip [TrackerLogDirectory] - no command line Switch.
  219. { "ModuleDefinitionFile", "DEF:", "Module Definition File", "",
  220. cmVS7FlagTable::UserValue },
  221. { "ManifestFile", "ManifestFile:", "Manifest File", "",
  222. cmVS7FlagTable::UserValue },
  223. { "ProgramDatabaseFile", "PDB:", "Generate Program Database File", "",
  224. cmVS7FlagTable::UserValue },
  225. { "StripPrivateSymbols", "PDBSTRIPPED:", "Strip Private Symbols", "",
  226. cmVS7FlagTable::UserValue },
  227. // Skip [MapFileName] - no command line Switch.
  228. // Skip [MinimumRequiredVersion] - no command line Switch.
  229. { "HeapReserveSize", "HEAP:", "Heap Reserve Size", "",
  230. cmVS7FlagTable::UserValue },
  231. // Skip [HeapCommitSize] - no command line Switch.
  232. { "StackReserveSize", "STACK:", "Stack Reserve Size", "",
  233. cmVS7FlagTable::UserValue },
  234. // Skip [StackCommitSize] - no command line Switch.
  235. { "FunctionOrder", "ORDER:@", "Function Order", "",
  236. cmVS7FlagTable::UserValue },
  237. { "ProfileGuidedDatabase", "PGD:", "Profile Guided Database", "",
  238. cmVS7FlagTable::UserValue },
  239. { "MidlCommandFile", "MIDL:@", "MIDL Commands", "",
  240. cmVS7FlagTable::UserValue },
  241. { "MergedIDLBaseFileName", "IDLOUT:", "Merged IDL Base File Name", "",
  242. cmVS7FlagTable::UserValue },
  243. { "TypeLibraryFile", "TLBOUT:", "Type Library", "",
  244. cmVS7FlagTable::UserValue },
  245. { "WindowsMetadataFile", "WINMDFILE:", "Windows Metadata File", "",
  246. cmVS7FlagTable::UserValue },
  247. { "WindowsMetadataLinkKeyFile", "WINMDKEYFILE:", "Windows Metadata Key File",
  248. "", cmVS7FlagTable::UserValue },
  249. { "WindowsMetadataKeyContainer", "WINMDKEYCONTAINER:",
  250. "Windows Metadata Key Container", "", cmVS7FlagTable::UserValue },
  251. { "EntryPointSymbol", "ENTRY:", "Entry Point", "",
  252. cmVS7FlagTable::UserValue },
  253. { "BaseAddress", "BASE:", "Base Address", "", cmVS7FlagTable::UserValue },
  254. { "ImportLibrary", "IMPLIB:", "Import Library", "",
  255. cmVS7FlagTable::UserValue },
  256. { "MergeSections", "MERGE:", "Merge Sections", "",
  257. cmVS7FlagTable::UserValue },
  258. { "LinkKeyFile", "KEYFILE:", "Key File", "", cmVS7FlagTable::UserValue },
  259. { "KeyContainer", "KEYCONTAINER:", "Key Container", "",
  260. cmVS7FlagTable::UserValue },
  261. // Skip [AdditionalOptions] - no command line Switch.
  262. { 0, 0, 0, 0, 0 }
  263. };