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.

72 lines
1.7 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_EXE_posix.VPC
  3. //
  4. // Base Settings for Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $Include "$SRCDIR\vpc_scripts\version.vpc"
  7. $Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
  8. $MacroRequired "SRCDIR"
  9. $MacroRequired "OUTBINNAME" "$PROJECTNAME"
  10. $Conditional IS_LIB_PROJECT "1"
  11. $Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
  12. $IgnoreRedundancyWarning "ON"
  13. $Configuration
  14. {
  15. $General
  16. {
  17. $ConfigurationType "Application (.exe)"
  18. }
  19. $Compiler
  20. {
  21. $PreprocessorDefinitions "$BASE;EXENAME=$OUTBINNAME"
  22. }
  23. $Linker
  24. {
  25. $OutputFile "$OUTBINDIR/$OUTBINNAME"
  26. // In order to get the Valve standard allocator memory alignment (16-byte
  27. // alignment for objects that are a multiple of 16 bytes) we use tcmalloc.
  28. // Using -l will ask the linker to use it, but if there are no references
  29. // to malloc/free then it may not actually use it. Wrapping the flag in the
  30. // as-needed controls forces it to be pulled in (from libtcmalloc_minimal.so).
  31. $GCC_ExtraLinkerFlags "-Wl,--no-as-needed -ltcmalloc_minimal -Wl,--as-needed" [$LINUXALL&&!$DEDICATED]
  32. }
  33. }
  34. $Project
  35. {
  36. $Folder "Source Files"
  37. {
  38. $File "$SRCDIR\public\tier0\memoverride.cpp"
  39. {
  40. $Configuration
  41. {
  42. $Compiler
  43. {
  44. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  45. }
  46. }
  47. }
  48. }
  49. $Folder "Resources"
  50. {
  51. $File "$ROOTSCRIPT"
  52. }
  53. $Folder "Link Libraries" [$LINUXALL&&!$DEDICATED]
  54. {
  55. $ImpLibExternal "$SRCDIR/thirdparty/gperftools-2.0/.libs/tcmalloc_minimal" [$LINUX32]
  56. $ImpLibExternal "$SRCDIR/thirdparty/gperftools-2.0/.libs/x86_64/tcmalloc_minimal" [$LINUX64]
  57. }
  58. }