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.

71 lines
1.6 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_EXE_posix.VPC
  3. //
  4. // Base Settings for Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $Include "$SRCDIR\vpc_scripts\version.vpc"
  7. $MacroRequired "SRCDIR"
  8. $MacroRequired "OUTBINNAME" "$PROJECTNAME"
  9. $Macro IS_LIB_PROJECT "1"
  10. $Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
  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 "$SRCDIR/../game/$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. $File "$SRCDIR/thirdparty/gperftools-2.0/.libs/libtcmalloc_minimal.so"
  56. }
  57. }