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.

121 lines
3.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 "Release"
  10. {
  11. $General
  12. {
  13. // General
  14. $OutputDirectory ".\Release_PS3"
  15. $IntermediateDirectory ".\Release_PS3"
  16. $ExtensionsToDeleteOnClean
  17. $BuildLogFile
  18. $SystemIncludeDependencies
  19. $SaveDebuggerPropertiesInProject
  20. $ConfigurationType "ELF"
  21. }
  22. $SNCCompiler
  23. {
  24. // General
  25. $AdditionalIncludeDirectories
  26. $PreprocessorDefinitions "SN_TARGET_PS3;NDEBUG;__SNC__;POSIX"
  27. $ForceIncludes "tier0/platform.h"
  28. $GenerateDebugInformation "yes"
  29. $Warnings "Generate Warnings (=1)"
  30. $TreatMessagesAsErrors "Reported Errors Only (=0)"
  31. $DisableSpecificWarnings
  32. $ObjectFileName "$(IntDir)\"
  33. $CallprofHierarchicalProfiling "No"
  34. // Optimization
  35. $OptimizationLevel "Optimize for Size (-Os)"
  36. $FastMath "Yes"
  37. $RelaxAliasChecking "Default"
  38. $BranchlessCompares "Always Use Branches (=0)"
  39. $UnrollLoops "30"
  40. $AssumeAlignedPointers "No"
  41. $AssumeCorrectSign "Yes"
  42. // Code Generation
  43. $TOCPointerPreservation "Preserve the TOC for all Function Calls (=0)"
  44. $InitializedDataPlacement "Automatic .bss and .data Placement (=1)"
  45. $PromoteFPConstantsToDoubles "No"
  46. // Language
  47. $CC++Dialect "Mixed with GNU Extensions"
  48. $C++ExceptionsAndRTTIUsage "Using RTTI only"
  49. $DefaultCharUnsigned "No"
  50. $DefaultFPConstantsAsTypeFloat "No"
  51. $BuiltInDefinitionForWCHAR_TType "unsigned short (=ushort)"
  52. // Precompiled Headers
  53. $Create/UsePrecompiledHeader "Not Using Precompiled Header File(s)"
  54. $PrecompiledHeaderFile
  55. // Command Line
  56. $AdditionalOptions
  57. }
  58. $SNCLinker
  59. {
  60. // General
  61. $OutputFile $(OutDir)/$(ProjectName)_ps3.elf
  62. $OutputFormat "ELF file"
  63. $AdditionalDependencies "$SCE_LIBROOT\libgcm_cmd.a $SCE_LIBROOT\libgcm_sys_stub.a $SCE_LIBROOT\libsysmodule_stub.a $SCE_LIBROOT\libsysutil_stub.a $SCE_LIBROOT\libusbd_stub.a $SCE_LIBROOT\libresc_stub.a $SCE_LIBROOT\libio_stub.a $SCE_LIBROOT\fno-exceptions\libc_libent.o $SCE_LIBROOT\fno-exceptions\libm_libent.o $SCE_LIBROOT\fno-exceptions\libstdc++_libent.o $SCE_LIBROOT\fno-exceptions\libc.a $SCE_LIBROOT\fno-exceptions\libm.a $SCE_LIBROOT\fno-exceptions\libstdc++.a libfios.a libfs_stub.a libsysutil_stub.a libsysutil_np_stub.a libsysmodule_stub.a"
  64. $AdditionalLibraryDirectories
  65. $IgnoreAllDefaultLibraries "No"
  66. $UsingExceptionHandling "No"
  67. $TOCPointerElimination "No"
  68. $ForceSymbolReferences
  69. $CallprofHierarchicalProfiling "No"
  70. $DebugInfoAndSymbolStripping "No Symbol Stripping"
  71. $UnusedFunctionAndDataStripping "Strip Unused Functions and Data"
  72. $ImportLibrary
  73. $GenerateMapFile "No Map File"
  74. $MapFileName
  75. $LinkLibraryDependencies "Yes"
  76. // Command Line
  77. $AdditionalOptions "--strip-duplicates --ppuguid"
  78. }
  79. $PreBuildEvent
  80. {
  81. $CommandLine
  82. $Description
  83. $ExcludedFromBuild "No"
  84. }
  85. $PreLinkEvent
  86. {
  87. $CommandLine
  88. $Description
  89. $ExcludedFromBuild "No"
  90. }
  91. $PostBuildEvent
  92. {
  93. $CommandLine "$(SCE_PS3_ROOT)\host-win32\bin\make_fself -c "$(TargetPath)" "$(TargetDir)$(TargetName).self""
  94. $Description "Fake Signing ELF (compressed) "$(TargetDir)$(TargetName).self""
  95. $ExcludedFromBuild "No"
  96. }
  97. $CustomBuildStep
  98. {
  99. // General
  100. $CommandLine
  101. $Description
  102. $Outputs
  103. $AdditionalDependencies
  104. }
  105. }