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.

110 lines
2.6 KiB

  1. //-----------------------------------------------------------------------------
  2. // Base Settings for Source(TM) Projects
  3. //-----------------------------------------------------------------------------
  4. $MacroRequired "SRCDIR"
  5. $MacroRequired "OUTBINNAME"
  6. $MacroRequired "OUTBINDIR"
  7. $MacroRequired "SCE_LIBROOT"
  8. $IgnoreRedundancyWarning "ON"
  9. $Configuration "Debug"
  10. {
  11. $General
  12. {
  13. // General
  14. $OutputDirectory ".\Debug_SPU"
  15. $IntermediateDirectory ".\Debug_SPU"
  16. $ExtensionsToDeleteOnClean
  17. $BuildLogFile
  18. $SystemIncludeDependencies
  19. $ConfigurationType "ELF"
  20. }
  21. $GCCCompiler
  22. {
  23. // General
  24. $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$QUOTE$(SN_PS3_PATH)\spu\include\sn$QUOTE;$QUOTE$(SCE_PS3_ROOT)\target\spu\include$QUOTE;$QUOTE$(SCE_PS3_ROOT)\target\common\include$QUOTE"
  25. $PreprocessorDefinitions "SN_TARGET_PS3_SPU;_DEBUG;__GCC__;SPU;_PS3;__CELL_ASSERT__"
  26. $ForceIncludes
  27. $GenerateDebugInformation "Yes"
  28. $Warnings "Generate More Warnings (-Wall)"
  29. $ExtraWarnings
  30. $TreatWarningsAsErrors
  31. $ObjectFileName
  32. $SPURSUsage "Lightweight Job (-mspurs-job)"
  33. // Optimization
  34. $OptimizationLevel "No Optimization (-O0)"
  35. $FastMath
  36. $NoStrictAliasing
  37. $UnrollLoops
  38. $InlineFunctionSizeLimit
  39. // Code Generation
  40. $Position-IndependentCode "Yes"
  41. $FunctionSections
  42. $DataSections
  43. $StackCheck
  44. // Language
  45. $C++ExceptionsAndRTTIUsage "Not using Exceptions or RTTI"
  46. $CheckANSICompliance
  47. $DefaultCharSigned
  48. $Permissive
  49. $RelaxC++Compliance
  50. // Command Line
  51. $AdditionalOptions
  52. }
  53. $GCCLinker
  54. {
  55. $OutputFile "$(OutDir)/$(ProjectName)_spu.elf"
  56. $AdditionalDependencies "$(SCE_PS3_ROOT)\target\spu\lib\libspurs.a" [!$RAWSPU]
  57. $AdditionalLibraryDirectories
  58. $ImportLibrary "$(OutDir)/$(TargetName).bin.o" [!$RAWSPU]
  59. $SPURSUsage "Lightweight Job (-mspurs-job)"
  60. $Position-IndependentCode "Yes"
  61. $EmitRelocations "Yes"
  62. $GarbageCollection
  63. $GenerateMapFile
  64. $MapFileName
  65. $LinkLibraryDependencies "Yes"
  66. // Command Line
  67. $AdditionalOptions
  68. }
  69. $PreBuildEvent
  70. {
  71. $CommandLine
  72. $Description
  73. $ExcludedFromBuild "No"
  74. }
  75. $PreLinkEvent
  76. {
  77. $CommandLine
  78. $Description
  79. $ExcludedFromBuild "No"
  80. }
  81. $PostBuildEvent
  82. {
  83. $CommandLine "spu_elf-to-ppu_obj --verbose --format=jobbin2 $QUOTE$(TargetPath)$QUOTE $QUOTE$(TargetDir)$(TargetName).bin.o$QUOTE > $QUOTE$(TargetDir)$(TargetName).bin.log$QUOTE"
  84. $Description "creating jobbin2 PPU object file from the job elf"
  85. $ExcludedFromBuild "No"
  86. }
  87. $CustomBuildStep
  88. {
  89. // General
  90. $CommandLine
  91. $Description
  92. $Outputs
  93. $AdditionalDependencies
  94. }
  95. }