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.

100 lines
2.7 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]
  14. }
  15. $Compiler
  16. {
  17. $PreprocessorDefinitions "$BASE;LAUNCHERONLY"
  18. }
  19. $Linker
  20. {
  21. $AdditionalDependencies "$BASE shlwapi.lib winmm.lib wsock32.lib odbc32.lib odbccp32.lib $SRCDIR\dx9sdk\lib\dinput8.lib $SRCDIR\dx9sdk\lib\ddraw.lib" [$WIN32]
  22. $SystemLibraries "iconv" [$OSXALL]
  23. $SystemFrameworks "Carbon;AppKit;OpenGL;IOKit" [$OSXALL]
  24. // We run from the ./game dir, but want to look in the ./game/bin directory when loading libraries.
  25. // To dump rpath/runpath of a library, use "chrpath --list blah.so" or "objdump -x blah.so" or "readelf -d bin/launcher.so"
  26. $GCC_ExtraLinkerFlags "-Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,'$$ORIGIN' -L/usr/lib32 -L/usr/lib" [$LINUXALL]
  27. }
  28. }
  29. $Configuration "Debug"
  30. {
  31. $Linker
  32. {
  33. $AdditionalDependencies "$BASE Xonlined.lib" [$X360]
  34. }
  35. }
  36. $Configuration "Release"
  37. {
  38. $Linker
  39. {
  40. $AdditionalDependencies "$BASE Xonline.lib" [$X360]
  41. }
  42. }
  43. $Project "launcher"
  44. {
  45. $Folder "Source Files"
  46. {
  47. $File "$SRCDIR\public\filesystem_init.cpp"
  48. $File "launcher.cpp"
  49. $File "reslistgenerator.cpp"
  50. }
  51. $Folder "Header Files"
  52. {
  53. $File "$SRCDIR\public\tier0\basetypes.h"
  54. $File "$SRCDIR\public\tier0\commonmacros.h"
  55. $File "$SRCDIR\public\tier0\dbg.h"
  56. $File "$SRCDIR\common\engine_launcher_api.h"
  57. $File "$SRCDIR\public\tier0\fasttimer.h"
  58. $File "$SRCDIR\public\appframework\IAppSystem.h"
  59. $File "$SRCDIR\public\tier0\icommandline.h"
  60. $File "ifilesystem.h"
  61. $File "$SRCDIR\public\vgui\IHTML.h"
  62. $File "$SRCDIR\public\vgui\IImage.h"
  63. $File "$SRCDIR\public\tier1\interface.h"
  64. $File "$SRCDIR\public\vgui\ISurface.h"
  65. $File "$SRCDIR\public\vgui\KeyCode.h"
  66. $File "$SRCDIR\public\tier0\mem.h"
  67. $File "$SRCDIR\public\tier0\memalloc.h"
  68. $File "$SRCDIR\public\vgui\MouseCode.h"
  69. $File "$SRCDIR\public\tier0\platform.h"
  70. $File "$SRCDIR\public\tier0\protected_things.h"
  71. $File "reslistgenerator.h"
  72. $File "$SRCDIR\public\string_t.h"
  73. $File "$SRCDIR\public\tier1\strtools.h"
  74. $File "$SRCDIR\public\tier0\vcr_shared.h"
  75. $File "$SRCDIR\public\tier0\vcrmode.h"
  76. $File "$SRCDIR\public\mathlib\vector2d.h"
  77. $File "$SRCDIR\public\vgui\VGUI.h"
  78. $File "$SRCDIR\public\vstdlib\vstdlib.h"
  79. }
  80. $folder "Link Libraries"
  81. {
  82. $Lib appframework
  83. $Lib tier2
  84. $Lib tier3
  85. $Implib steam_api
  86. $ImpLib togl [!$IS_LIB_PROJECT && $GL]
  87. $ImpLib SDL2 [$SDL]
  88. }
  89. }