Team Fortress 2 Source Code as on 22/4/2020
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.

216 lines
5.7 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_LIB_WIN32_RELEASE.VPC
  3. //
  4. // Base Settings for all Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $IgnoreRedundancyWarning "ON"
  7. // Disable frame pointer omission to allow fast stack walking, necessary for
  8. // good ETW profiling.
  9. $Conditional NOFPO "1"
  10. $MacroRequired "SRCDIR"
  11. $MacroRequired "OUTLIBNAME"
  12. $MacroRequired "OUTLIBDIR"
  13. $MacroRequired "LIBPUBLIC"
  14. $MacroRequired "LIBCOMMON"
  15. $MacroRequired "PLATSUBDIR"
  16. $MacroRequiredAllowEmpty "GAMENAME"
  17. $MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
  18. $MacroRequiredAllowEmpty "_UNITYSUBDIR"
  19. $MacroRequiredAllowEmpty "_STATICSUBDIR"
  20. $Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$_STATICSUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
  21. $Configuration "Release"
  22. {
  23. $General
  24. {
  25. // General
  26. $OutputDirectory "$OUTLIBDIR"
  27. $IntermediateDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
  28. $IntermediateDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
  29. $IntermediateDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
  30. $ExtensionsToDeleteOnClean
  31. $BuildLogFile
  32. $InheritedProjectPropertySheets
  33. // Project Defaults
  34. $ConfigurationType "Static Library (.lib)"
  35. $UseOfMFC
  36. $UseOfATL
  37. $MinimizeCRTUseInATL
  38. $CharacterSet "Use Multi-Byte Character Set"
  39. $CommonLanguageRuntimeSupport
  40. $WholeProgramOptimization "Use Link Time Code Generation" [$LTCG]
  41. }
  42. $Debugging
  43. {
  44. $Command
  45. $CommandArguments
  46. $WorkingDirectory
  47. $Attach
  48. $DebuggerType
  49. $Environment
  50. $MergeEnvironment
  51. $SQLDebugging
  52. }
  53. $Compiler
  54. {
  55. // General
  56. $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
  57. $Resolve#UsingReferences
  58. $DebugInformationFormat "C7 Compatible (/Z7)"
  59. $SuppressStartupBanner
  60. $WarningLevel "Level 4 (/W4)"
  61. $Detect64bitPortabilityIssues "Yes (/Wp64)"
  62. $TreatWarningsAsErrors
  63. $UseUNICODEResponseFiles "No"
  64. // Optimization
  65. $Optimization "Maximize Speed (/O2)"
  66. $InlineFunctionExpansion "Any Suitable (/Ob2)"
  67. $EnableIntrinsicFunctions "Yes (/Oi)"
  68. $FavorSizeOrSpeed "Favor Fast Code (/Ot)"
  69. $OmitFramePointers
  70. $EnableFiberSafeOptimizations
  71. $WholeProgramOptimization
  72. // Preprocessor
  73. $PreprocessorDefinitions "$BASE;WIN32;_WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;%(PreprocessorDefinitions)"
  74. $PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
  75. $IgnoreStandardIncludePath
  76. $GeneratePreprocessedFile
  77. $KeepComments
  78. // Code Generation
  79. $EnableStringPooling "Yes (/GF)"
  80. $EnableMinimalRebuild
  81. $EnableC++Exceptions "No"
  82. $SmallerTypeCheck
  83. $BasicRuntimeChecks
  84. $RuntimeLibrary "Multi-threaded (/MT)"
  85. $StructMemberAlignment
  86. $BufferSecurityCheck "No" [$RETAIL]
  87. $BufferSecurityCheck "Yes" [!$RETAIL]
  88. $EnableFunctionLevelLinking "Yes (/Gy)"
  89. $EnableEnhancedInstructionSet
  90. $FloatingPointModel "Fast (/fp:fast)"
  91. $EnableFloatingPointExceptions
  92. // Language
  93. $DisableLanguageExtensions
  94. $DefaultCharUnsigned
  95. $TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
  96. $ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
  97. $EnableRunTimeTypeInfo "Yes (/GR)"
  98. $OpenMPSupport "No"
  99. // Precompiled Headers
  100. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  101. $Create/UsePCHThroughFile
  102. $PrecompiledHeaderFile
  103. // Output Files
  104. $ExpandAttributedSource "No"
  105. $AssemblerOutput "No Listing"
  106. $ASMListLocation "$(IntDir)/"
  107. $ObjectFileName "$(IntDir)/"
  108. $ProgramDatabaseFileName "$(IntDir)/"
  109. $GenerateXMLDocumentationFiles "No"
  110. $XMLDocumentationFileName
  111. // Browse Information
  112. $EnableBrowseInformation "None"
  113. $BrowseFile "$(IntDir)/"
  114. // Advanced
  115. $CallingConvention
  116. $CompileAs "Compile as C++ Code (/TP)"
  117. $DisableSpecificWarnings
  118. $ForceIncludes
  119. $Force#Using
  120. $ShowIncludes
  121. $UndefinePreprocessorDefinitions
  122. $UndefineAllPreprocessorDefinitions
  123. $UseFullPaths "Yes (/FC)"
  124. $OmitDefaultLibraryNames
  125. $ErrorReporting "Prompt Immediately (/errorReport:prompt)"
  126. // Enable extra debugging information. This switch requires VS 2013 Update 3.
  127. // With VS 2013 make sure that Edit-And-Continue is disabled in the debugger settings so that
  128. // the debugger uses the enhanced debug information.
  129. // http://randomascii.wordpress.com/2013/09/11/debugging-optimized-codenew-in-visual-studio-2012/
  130. $AdditionalOptions "$BASE /Zo"
  131. $AdditionalOptions "$BASE /Oy-" [$NOFPO]
  132. }
  133. $Librarian
  134. {
  135. // General
  136. $OutputFile "$OUTLIBDIR\$OUTLIBNAME.lib"
  137. $AdditionalDependencies
  138. $AdditionalLibraryDirectories
  139. $SuppressStartupBanner "Yes (/NOLOGO)"
  140. $ModuleDefinitionFileName
  141. $IgnoreAllDefaultLibraries
  142. $IgnoreSpecificLibrary
  143. $ExportNamedFunctions
  144. $ForceSymbolReferences
  145. $UseUNICODEResponseFiles "No"
  146. $LinkLibraryDependencies
  147. // Command Line
  148. $AdditionalOptions
  149. }
  150. $XMLDocumentGenerator
  151. {
  152. // General
  153. $SuppressStartupBanner "Yes (/nologo)"
  154. $ValidateIntelliSense
  155. $AdditionalDocumentFiles
  156. $OutputDocumentFile
  157. $DocumentLibraryDependencies
  158. $UseUNICODEResponseFiles
  159. }
  160. $BrowseInformation
  161. {
  162. $SuppressStartupBanner "Yes (/nologo)"
  163. $OutputFile "$(OutDir)/$OUTLIBNAME.bsc"
  164. $AdditionalOptions
  165. }
  166. $PreBuildEvent
  167. {
  168. $CommandLine
  169. $Description
  170. $ExcludedFromBuild "No"
  171. }
  172. $PreLinkEvent
  173. {
  174. $CommandLine
  175. $Description
  176. $ExcludedFromBuild "No"
  177. }
  178. $PostBuildEvent
  179. {
  180. $CommandLine
  181. $Description
  182. $ExcludedFromBuild "No"
  183. }
  184. $CustomBuildStep
  185. {
  186. // General
  187. $CommandLine
  188. $Description
  189. $Outputs
  190. $AdditionalDependencies
  191. }
  192. }