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.

123 lines
3.8 KiB

  1. //-----------------------------------------------------------------------------
  2. // Base Settings for Source(TM) Projects
  3. //-----------------------------------------------------------------------------
  4. $MacroRequired "SRCDIR"
  5. $MacroRequired "OUTBINNAME"
  6. $MacroRequired "OUTBINDIR"
  7. $MacroRequired "SCE_PPU_GCC_LIBROOT"
  8. $MacroRequired "SCE_PPU_LIBROOT"
  9. $IgnoreRedundancyWarning "ON"
  10. $Configuration "Release"
  11. {
  12. $General
  13. {
  14. // General
  15. $OutputDirectory ".\Release_PS3"
  16. $IntermediateDirectory ".\Release_PS3"
  17. $ExtensionsToDeleteOnClean
  18. $BuildLogFile
  19. $SystemIncludeDependencies
  20. $SaveDebuggerPropertiesInProject
  21. $ConfigurationType "PRX"
  22. }
  23. $SNCCompiler
  24. {
  25. // General
  26. $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1;$(SN_PS3_PATH)\ppu\include\sn;$(SCE_PS3_ROOT)\target\ppu\include;$(SCE_PS3_ROOT)\target\common\include;$(SCE_PS3_ROOT)\target\ppu\include\sys;"
  27. $PreprocessorDefinitions "SN_TARGET_PS3;NDEBUG;__SNC__;POSIX"
  28. $ForceIncludes "tier0/platform.h"
  29. $GenerateDebugInformation "yes"
  30. $Warnings "Generate Warnings (=1)"
  31. $TreatMessagesAsErrors "Reported Errors Only (=0)"
  32. $DisableSpecificWarnings "64;68;112;175;178;186;187;237;285;369;429;496;552;613;832;1011;1323;1421;1437;1772;1773;1778;1787"
  33. $ObjectFileName "$(IntDir)\"
  34. $CallprofHierarchicalProfiling "No"
  35. // Optimization
  36. $OptimizationLevel "Optimize for Size (-Os)"
  37. $FastMath "Yes"
  38. $RelaxAliasChecking "Default"
  39. $BranchlessCompares "Always Use Branches (=0)"
  40. $UnrollLoops "30"
  41. $AssumeAlignedPointers "No"
  42. $AssumeCorrectSign "Yes"
  43. // Code Generation
  44. $TOCPointerPreservation "Preserve the TOC for all Function Calls (=0)"
  45. $InitializedDataPlacement "Automatic .bss and .data Placement (=1)"
  46. $PromoteFPConstantsToDoubles "No"
  47. // Language
  48. $CC++Dialect "Mixed with GNU Extensions"
  49. $C++ExceptionsAndRTTIUsage "Using RTTI only"
  50. $DefaultCharUnsigned "No"
  51. $DefaultFPConstantsAsTypeFloat "No"
  52. $BuiltInDefinitionForWCHAR_TType "unsigned short (=ushort)"
  53. // Precompiled Headers
  54. $Create/UsePrecompiledHeader "Not Using Precompiled Header File(s)"
  55. $PrecompiledHeaderFile
  56. // Command Line (disable strict aliasing, our code is not supporting strict aliasing)
  57. $AdditionalOptions "-Xrelaxalias=0"
  58. }
  59. $SNCLinker
  60. {
  61. // General
  62. $OutputFile $(OutDir)/$OUTBINNAME_ps3.prx
  63. $OutputFormat "PRX file"
  64. $AdditionalDependencies "libgcc.a libsyscall.a liblv2_stub.a libsupc++.a fno-exceptions\libc_stub.a fno-exceptions\libstdc++.a fno-exceptions\libm_stub.a libfios.a libpthread.a libfs_stub.a libsysutil_stub.a libsysutil_np_stub.a libsysmodule_stub.a libsysutil_avconf_ext_stub.a"
  65. $AdditionalLibraryDirectories
  66. $IgnoreAllDefaultLibraries "No"
  67. $UsingExceptionHandling "No"
  68. $TOCPointerElimination "No"
  69. $ForceSymbolReferences
  70. $CallprofHierarchicalProfiling "No"
  71. $DebugInfoAndSymbolStripping "No Symbol Stripping"
  72. $UnusedFunctionAndDataStripping "Strip Unused Functions and Data"
  73. $ImportLibrary "$(TargetDir)$OUTBINNAME_stub.a"
  74. $GenerateMapFile "No Map File"
  75. $MapFileName
  76. $LinkLibraryDependencies "Yes"
  77. // Command Line
  78. $AdditionalOptions "-disable-warning=25 --ppuguid"
  79. }
  80. $PreBuildEvent
  81. {
  82. $CommandLine
  83. $Description
  84. $ExcludedFromBuild "No"
  85. }
  86. $PreLinkEvent
  87. {
  88. $CommandLine
  89. $Description
  90. $ExcludedFromBuild "No"
  91. }
  92. $PostBuildEvent
  93. {
  94. $CommandLine "$(SCE_PS3_ROOT)\host-win32\bin\make_fself "$(TargetPath)" "$(TargetDir)$(TargetName).sprx""
  95. $Description "Fake Signing PRX "$(TargetDir)$(TargetName).self""
  96. $ExcludedFromBuild "No"
  97. }
  98. $CustomBuildStep
  99. {
  100. // General
  101. $CommandLine
  102. $Description
  103. $Outputs
  104. $AdditionalDependencies
  105. }
  106. }