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.

74 lines
2.0 KiB

  1. $Include "$SRCDIR\vpc_scripts\version.vpc"
  2. $Include "$SRCDIR\vpc_scripts\source_lowest_base.vpc"
  3. $Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
  4. $Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR"
  5. $MacroRequired "SRCDIR"
  6. $Macro "DEVTOOLS" "$SRCDIR/devtools"
  7. $Configuration "Debug"
  8. {
  9. $Compiler
  10. {
  11. $PreprocessorDefinitions "$BASE;DEBUG;_DEBUG"
  12. $OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
  13. $OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
  14. }
  15. }
  16. $Configuration "Release"
  17. {
  18. $Compiler
  19. {
  20. $PreprocessorDefinitions "$BASE;NDEBUG"
  21. $OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
  22. $OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
  23. }
  24. }
  25. $Configuration
  26. {
  27. $General [!$IS_LIB_PROJECT]
  28. {
  29. $ConfigurationType "Application (.exe)"
  30. }
  31. $Compiler
  32. {
  33. $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
  34. $PreprocessorDefinitions "$BASE;GNUC;POSIX;COMPILER_GCC;MEMOVERRIDE_MODULE=$PROJECTNAME;_DLL_EXT=$_DLL_EXT"
  35. $PreprocessorDefinitions "$BASE;DEDICATED" [$DEDICATED]
  36. // the 10240 in the following line is the output of `sysctl -n kern.maxfilesperproc`
  37. $PreprocessorDefinitions "$BASE;_OSX;OSX;_DARWIN_UNLIMITED_SELECT;FD_SETSIZE=10240;" [$OSXALL]
  38. $PreprocessorDefinitions "$BASE;_LINUX;LINUX;" [$LINUX]
  39. $SymbolVisibility "hidden" [$POSIX]
  40. $PreprocessorDefinitions "$BASE;POSIX;_POSIX" [$POSIX]
  41. $PreprocessorDefinitions "$BASE;PLATFORM_64BITS" [$OSX64]
  42. $GCC_ExtraCompilerFlags "$BASE -arch x86_64" [$OSX64]
  43. $Create/UsePCHThroughFile "stdafx.h"
  44. }
  45. $Linker [!$IS_LIB_PROJECT]
  46. {
  47. $GCC_ExtraLinkerFlags "$BASE -arch x86_64" [$OSX64]
  48. }
  49. }
  50. $Project
  51. {
  52. $Folder "Link Libraries"
  53. {
  54. $ImpLib "$LIBPUBLIC\tier0" [!$IS_LIB_PROJECT]
  55. $Lib "$LIBPUBLIC\tier1" [!$IS_LIB_PROJECT]
  56. $Lib "$LIBPUBLIC\interfaces" [!$IS_LIB_PROJECT]
  57. $ImpLib "$LIBPUBLIC\vstdlib" [!$IS_LIB_PROJECT]
  58. }
  59. }