cmVS10LinkFlagTable.h 12 KB

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