cmVS11LinkFlagTable.h 14 KB

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