Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

323 lines
7.5 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_DLL_WIN32_RELEASE.VPC
  3. //
  4. // Base Settings for all Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $IgnoreRedundancyWarning "ON"
  7. $MacroRequired "SRCDIR"
  8. $MacroRequired "OUTBINNAME"
  9. $MacroRequired "OUTBINDIR"
  10. $MacroRequired "LIBPUBLIC"
  11. $MacroRequired "LIBCOMMON"
  12. $MacroRequired "PLATSUBDIR"
  13. $Configuration "Release"
  14. {
  15. $General
  16. {
  17. // General
  18. $OutputDirectory ".\Release$PLATSUBDIR"
  19. $IntermediateDirectory ".\Release$PLATSUBDIR"
  20. $ExtensionsToDeleteOnClean
  21. $BuildLogFile
  22. $InheritedProjectPropertySheets
  23. // Project Defaults
  24. $ConfigurationType "Dynamic Library (.dll)"
  25. $UseOfMFC
  26. $UseOfATL
  27. $MinimizeCRTUseInATL
  28. $CharacterSet "Use Multi-Byte Character Set"
  29. $CommonLanguageRuntimeSupport
  30. $WholeProgramOptimization "Use Link Time Code Generation" [$LTCG]
  31. }
  32. $Debugging
  33. {
  34. $Command
  35. $CommandArguments
  36. $WorkingDirectory
  37. $Attach
  38. $DebuggerType
  39. $Environment
  40. $MergeEnvironment
  41. $SQLDebugging
  42. }
  43. $Compiler
  44. {
  45. // General
  46. $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
  47. $Resolve#UsingReferences
  48. $DebugInformationFormat "Program Database (/Zi)"
  49. $SuppressStartupBanner
  50. $WarningLevel "Level 4 (/W4)"
  51. $Detect64bitPortabilityIssues "Yes (/Wp64)"
  52. $TreatWarningsAsErrors
  53. $UseUNICODEResponseFiles
  54. // Optimization
  55. $Optimization "Maximize Speed (/O2)"
  56. $InlineFunctionExpansion "Any Suitable (/Ob2)"
  57. $EnableIntrinsicFunctions "Yes (/Oi)"
  58. $FavorSizeOrSpeed "Favor Fast Code (/Ot)"
  59. $OmitFramePointers
  60. $EnableFiberSafeOptimizations
  61. $WholeProgramOptimization
  62. // Preprocessor
  63. $PreprocessorDefinitions "$BASE;WIN32;_WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;DLLNAME=$OUTBINNAME;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;%(PreprocessorDefinitions)"
  64. $IgnoreStandardIncludePath
  65. $GeneratePreprocessedFile
  66. $KeepComments
  67. // Code Generation
  68. $EnableStringPooling "Yes (/GF)"
  69. $EnableMinimalRebuild
  70. $EnableC++Exceptions "No"
  71. $SmallerTypeCheck
  72. $BasicRuntimeChecks
  73. $RuntimeLibrary "Multi-threaded (/MT)"
  74. $StructMemberAlignment
  75. $BufferSecurityCheck "No" [$WIN32]
  76. $EnableFunctionLevelLinking "Yes (/Gy)"
  77. $EnableEnhancedInstructionSet
  78. $FloatingPointModel "Fast (/fp:fast)"
  79. $EnableFloatingPointExceptions
  80. // Language
  81. $DisableLanguageExtensions
  82. $DefaultCharUnsigned
  83. $TreatWCHAR_TAsBuiltInType
  84. $ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
  85. $EnableRunTimeTypeInfo "Yes (/GR)"
  86. $OpenMPSupport
  87. // Precompiled Headers
  88. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  89. $Create/UsePCHThroughFile
  90. $PrecompiledHeaderFile
  91. // Output Files
  92. $ExpandAttributedSource
  93. $AssemblerOutput
  94. $ASMListLocation "$(IntDir)/"
  95. $ObjectFileName "$(IntDir)/"
  96. $ProgramDatabaseFileName "$(IntDir)/"
  97. $GenerateXMLDocumentationFiles "No"
  98. $XMLDocumentationFileName
  99. // Browse Information
  100. $EnableBrowseInformation "None"
  101. $BrowseFile "$(IntDir)/"
  102. // Advanced
  103. $CallingConvention
  104. $CompileAs "Compile as C++ Code (/TP)"
  105. $DisableSpecificWarnings
  106. $ForceIncludes
  107. $Force#Using
  108. $ShowIncludes
  109. $UndefinePreprocessorDefinitions
  110. $UndefineAllPreprocessorDefinitions
  111. $UseFullPaths
  112. $OmitDefaultLibraryNames
  113. $ErrorReporting "Prompt Immediately (/errorReport:prompt)"
  114. // Command Line
  115. $AdditionalOptions "/MP"
  116. // Enable extra debugging information.
  117. $AdditionalOptions "$BASE /d2Zi+"
  118. $AdditionalOptions "$BASE /Oy-" [$NOFPO]
  119. }
  120. $Linker
  121. {
  122. // General
  123. $OutputFile "$(OutDir)/$OUTBINNAME.dll"
  124. $ShowProgress "Not Set"
  125. $Version
  126. $EnableIncrementalLinking "No (/INCREMENTAL:NO)"
  127. $SuppressStartupBanner "Yes (/NOLOGO)"
  128. $IgnoreImportLibrary
  129. $RegisterOutput
  130. $AdditionalLibraryDirectories "$LIBCOMMON;$LIBPUBLIC"
  131. $LinkLibraryDependencies
  132. $UseLibraryDependencyInputs
  133. $UseUNICODEResponseFiles "No"
  134. // Input
  135. $AdditionalDependencies
  136. $IgnoreAllDefaultLibraries
  137. $IgnoreSpecificLibrary "libc;libcd;libcmtd"
  138. $ModuleDefinitionFile
  139. $AddModuleToAssembly
  140. $EmbedManagedResourceFile
  141. $ForceSymbolReferences
  142. $DelayLoadedDLLs
  143. $AssemblyLinkResource
  144. // Manifest File
  145. $GenerateManifest "No"
  146. $ManifestFile
  147. $AdditionalManifestDependencies
  148. $AllowIsolation
  149. // Debugging
  150. $GenerateDebugInfo "Yes (/DEBUG)"
  151. $GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
  152. $StripPrivateSymbols
  153. $MapExports
  154. $DebuggableAssembly
  155. // System
  156. $SubSystem "Windows (/SUBSYSTEM:WINDOWS)"
  157. $HeapReserveSize
  158. $HeapCommitSize
  159. $StackReserveSize
  160. $StackCommitSize
  161. $EnableLargeAddresses
  162. $TerminalServer
  163. $SwapRunFromCD
  164. $SwapRunFromNetwork
  165. $Driver
  166. // Optimization
  167. $References "Eliminate Unreferenced Data (/OPT:REF)"
  168. $EnableCOMDATFolding "Remove Redundant COMDATs (/OPT:ICF)"
  169. $OptimizeForWindows98
  170. $FunctionOrder
  171. $ProfileGuidedDatabase
  172. $LinkTimeCodeGeneration
  173. // Embedded IDL
  174. $MIDLCommands
  175. $IgnoreEmbeddedIDL
  176. $MergeIDLBaseFileName
  177. $TypeLibrary
  178. $TypeLibResourceID
  179. // Advanced
  180. $EntryPoint
  181. $NoEntryPoint
  182. $SetChecksum
  183. $BaseAddress "$LOADADDRESS_DEVELOPMENT"
  184. $BaseAddress "$LOADADDRESS_RETAIL" [$RETAIL]
  185. $FixedBaseAddress
  186. $TurnOffAssemblyGeneration
  187. $DelayLoadedDLL
  188. $ImportLibrary
  189. $MergeSections
  190. $TargetMachine
  191. $Profile
  192. $CLRThreadAttribute
  193. $CLRImageType
  194. $KeyFile
  195. $KeyContainer
  196. $DelaySign
  197. $ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
  198. $CLRUnmanagedCodeCheck
  199. // Most DLLs cannot yet handle SafeSEH
  200. $ImageHasSafeExceptionHandlers "false"
  201. // Command Line
  202. // This undocumented linker command-line option improves LTCG build speeds slightly.
  203. $AdditionalOptions "$BASE /d2:-threads8" [$VS2013 && $LTCG]
  204. }
  205. $ManifestTool
  206. {
  207. // General
  208. $SuppressStartupBanner "Yes (/nologo)"
  209. $VerboseOutput
  210. $AssemblyIdentity
  211. $UseUNICODEResponseFiles
  212. $UseFAT32WorkAround
  213. // Input And Output
  214. $AdditionalManifestFiles
  215. $InputResourceManifests
  216. $EmbedManifest
  217. $OutputManifestFile
  218. $ManifestResourceFile
  219. $GenerateCatalogFiles
  220. $DependencyInformationFile
  221. // Isolated COM
  222. $TypeLibraryFile
  223. $RegistrarScriptFile
  224. $ComponentFileName
  225. $ReplacementsFile
  226. // Advanced
  227. $UpdateFileHashes
  228. $UpdateFileHashesSearchPath
  229. // Command Line
  230. $AdditionalOptions
  231. }
  232. $XMLDocumentGenerator
  233. {
  234. // General
  235. $SuppressStartupBanner "Yes (/nologo)"
  236. $ValidateIntelliSense
  237. $AdditionalDocumentFiles
  238. $OutputDocumentFile
  239. $DocumentLibraryDependencies
  240. $UseUNICODEResponseFiles
  241. }
  242. $BrowseInformation
  243. {
  244. $SuppressStartupBanner "Yes (/nologo)"
  245. $OutputFile "$(OutDir)/$OUTBINNAME.bsc"
  246. $AdditionalOptions
  247. }
  248. $Resources
  249. {
  250. // General
  251. $PreprocessorDefinitions "$BASE;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)"
  252. $Culture "English (United States) (0x409)"
  253. $AdditionalIncludeDirectories
  254. $IgnoreStandardIncludePath
  255. $ShowProgress
  256. $ResourceFileName
  257. // Command Line
  258. $AdditionalOptions
  259. }
  260. $PreBuildEvent
  261. {
  262. $CommandLine
  263. $Description
  264. $ExcludedFromBuild "No"
  265. }
  266. $PreLinkEvent
  267. {
  268. $CommandLine
  269. $Description
  270. $ExcludedFromBuild "No"
  271. }
  272. $PostBuildEvent
  273. {
  274. $CommandLine
  275. $Description
  276. $ExcludedFromBuild "No"
  277. }
  278. $CustomBuildStep
  279. {
  280. // General
  281. $CommandLine
  282. $Description
  283. $Outputs
  284. $AdditionalDependencies
  285. }
  286. }