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.

107 lines
3.0 KiB

  1. //-----------------------------------------------------------------------------
  2. // LAUNCHER.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $Macro SRCDIR ".."
  7. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  8. $include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  9. $Configuration
  10. {
  11. $General
  12. {
  13. $AdditionalProjectDependencies "$BASE;togl" [$OSXALL && $SDL]
  14. }
  15. $Compiler
  16. {
  17. $PreprocessorDefinitions "$BASE;LAUNCHERONLY;INCLUDE_SCALEFORM"
  18. $PreprocessorDefinitions "$BASE;ALLOW_TEXT_MODE=1" [$CSTRIKE_TRUNK_BUILD||$CSTRIKE_STAGING_BUILD]
  19. }
  20. $Linker [!$PS3]
  21. {
  22. $AdditionalDependencies "$BASE shlwapi.lib winmm.lib wsock32.lib odbc32.lib odbccp32.lib $SRCDIR\dx9sdk\lib\dinput8.lib" [$WINDOWS]
  23. $SystemFrameworks "Carbon;AppKit;OpenGL;IOKit"
  24. $SystemFrameworks "Carbon;AppKit;OpenGL;IOKit"
  25. $SystemLibraries "iconv" [$OSXALL]
  26. $SystemLibraries "SDL2" [$LINUXALL]
  27. // We run from the ./game dir, but want to look in the ./game/bin directory when loading libraries.
  28. // To dump rpath/runpath of a library, use "chrpath --list blah.so" or "objdump -x blah.so" or "readelf -d bin/launcher.so"
  29. $GCC_ExtraLinkerFlags "-Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,'$$ORIGIN' -L/usr/lib32 -L/usr/lib" [$LINUXALL]
  30. }
  31. }
  32. $Configuration "Debug"
  33. {
  34. $Linker
  35. {
  36. $AdditionalDependencies "$BASE Xonlined.lib" [$X360]
  37. }
  38. }
  39. $Configuration "Release"
  40. {
  41. $Linker
  42. {
  43. $AdditionalDependencies "$BASE Xonline.lib" [$X360]
  44. }
  45. }
  46. $Project
  47. {
  48. $Folder "Source Files" [$PS3]
  49. {
  50. -$File "$SRCDIR\common\ps3\prx.cpp"
  51. }
  52. }
  53. $Project "launcher"
  54. {
  55. $Folder "Source Files"
  56. {
  57. $File "$SRCDIR\public\filesystem_init.cpp"
  58. $File "launcher.cpp"
  59. $File "reslistgenerator.cpp"
  60. $File "prx.cpp" [$PS3]
  61. }
  62. $Folder "Header Files"
  63. {
  64. $File "$SRCDIR\public\tier0\basetypes.h"
  65. $File "$SRCDIR\public\tier0\dbg.h"
  66. $File "$SRCDIR\common\engine_launcher_api.h"
  67. $File "$SRCDIR\public\tier0\fasttimer.h"
  68. $File "$SRCDIR\public\appframework\iappsystem.h"
  69. $File "$SRCDIR\public\tier0\icommandline.h"
  70. $File "ifilesystem.h"
  71. $File "$SRCDIR\public\vgui\IHTML.h"
  72. $File "$SRCDIR\public\vgui\IImage.h"
  73. $File "$SRCDIR\public\tier1\interface.h"
  74. $File "$SRCDIR\public\vgui\ISurface.h"
  75. $File "$SRCDIR\public\vgui\KeyCode.h"
  76. $File "$SRCDIR\public\tier0\mem.h"
  77. $File "$SRCDIR\public\tier0\memalloc.h"
  78. $File "$SRCDIR\public\vgui\MouseCode.h"
  79. $File "$SRCDIR\public\tier0\platform.h"
  80. $File "reslistgenerator.h"
  81. $File "$SRCDIR\public\string_t.h"
  82. $File "$SRCDIR\public\tier1\strtools.h"
  83. $File "$SRCDIR\public\mathlib\vector2d.h"
  84. $File "$SRCDIR\public\vgui\vgui.h"
  85. $File "$SRCDIR\public\vstdlib\vstdlib.h"
  86. }
  87. $folder "Link Libraries"
  88. {
  89. $Lib appframework
  90. $Lib tier2
  91. $Lib tier3
  92. $ImplibExternal steam_api [ ( $WIN32 || $POSIX || $PS3 ) && !$NO_STEAM ]
  93. $ImplibExternal steam_api64 [ $WIN64 && !$NO_STEAM ]
  94. $ImpLib togl [!$IS_LIB_PROJECT && $GL]
  95. $ImpLib SDL2 [$SDL && !$LINUXALL]
  96. }
  97. }