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.

115 lines
3.1 KiB

  1. //-----------------------------------------------------------------------------
  2. // TOGL.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $Macro SRCDIR ".." [$WIN32]
  7. $Macro SRCDIR ".." [!$WIN32]
  8. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  9. $Macro OUTBINNAME "togl"
  10. $Macro TOGL_SRCDIR "$SRCDIR/togl/linuxwin"
  11. $Macro TOGL_INCDIR "$SRCDIR/public/togl/linuxwin"
  12. $include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  13. // Common Configuration
  14. $Configuration
  15. {
  16. $Compiler
  17. {
  18. $AdditionalIncludeDirectories "$BASE;..\"
  19. $PreprocessorDefinitions "$BASE;TOGL_DLL_EXPORT;PROTECTED_THINGS_ENABLE;strncpy=use_Q_strncpy_instead;_snprintf=use_Q_snprintf_instead" [!$OSXALL]
  20. $PreprocessorDefinitions "$BASE;TOGL_DLL_EXPORT" [$OSXALL]
  21. }
  22. $Linker
  23. {
  24. $ImportLibrary "$LIBPUBLIC\$_IMPLIB_PREFIX$OUTBINNAME$_IMPLIB_EXT" [!$X360 && !$OSXALL]
  25. $ImportLibrary "$SRCDIR\lib\$PLATFORM\$_IMPLIB_PREFIX$OUTBINNAME$_IMPLIB_EXT" [$OSXALL]
  26. }
  27. $Linker [$OSXALL]
  28. {
  29. $SystemFrameworks "Carbon;OpenGL;Quartz;Cocoa;IOKit"
  30. }
  31. // togl/tier0/vstdlib traditionally used "lib" prefix though nobody else seems to.
  32. $Linker [$POSIX]
  33. {
  34. $OutputFile "$(OBJ_DIR)/$_IMPLIB_PREFIX$OUTBINNAME$_DLL_EXT"
  35. }
  36. $General [$POSIX]
  37. {
  38. $GameOutputFile "$OUTBINDIR/$_IMPLIB_PREFIX$OUTBINNAME$_DLL_EXT"
  39. }
  40. $PreLinkEvent [$WINDOWS]
  41. {
  42. $CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $LIBPUBLIC\$(TargetName).lib $SRCDIR" "\n" \
  43. "$BASE"
  44. }
  45. }
  46. $Project "togl"
  47. {
  48. $Folder "Source Files" [$GL]
  49. {
  50. $File "$TOGL_SRCDIR/dx9asmtogl2.cpp"
  51. $File "$TOGL_SRCDIR/dxabstract.cpp"
  52. $File "$TOGL_SRCDIR/glentrypoints.cpp"
  53. $File "$TOGL_SRCDIR/glmgr.cpp"
  54. $File "$TOGL_SRCDIR/glmgrbasics.cpp"
  55. $File "$TOGL_SRCDIR/glmgrcocoa.mm" [$OSXALL]
  56. $File "$TOGL_SRCDIR/intelglmallocworkaround.cpp" [$OSXALL]
  57. $File "$TOGL_SRCDIR/mach_override.c" [$OSXALL]
  58. $File "$TOGL_SRCDIR/cglmtex.cpp"
  59. $File "$TOGL_SRCDIR/cglmfbo.cpp"
  60. $File "$TOGL_SRCDIR/cglmprogram.cpp"
  61. $File "$TOGL_SRCDIR/cglmbuffer.cpp"
  62. $File "$TOGL_SRCDIR/cglmquery.cpp"
  63. }
  64. $Folder "DirectX Header Files" [$WIN32 && !$GL]
  65. {
  66. }
  67. $Folder "Header Files" [$GL]
  68. {
  69. $File "$TOGL_SRCDIR/dx9asmtogl2.h"
  70. $File "$TOGL_SRCDIR/glmgr_flush.inl"
  71. $File "$TOGL_SRCDIR/intelglmallocworkaround.h" [$OSXALL]
  72. $File "$TOGL_SRCDIR/mach_override.h" [$OSXALL]
  73. }
  74. $Folder "Public Header Files" [$GL]
  75. {
  76. $File "$SRCDIR/public/togl/rendermechanism.h"
  77. $File "$TOGL_INCDIR/dxabstract.h"
  78. $File "$TOGL_INCDIR/dxabstract_types.h"
  79. $File "$TOGL_INCDIR/glbase.h"
  80. $File "$TOGL_INCDIR/glentrypoints.h"
  81. $File "$TOGL_INCDIR/glmgr.h"
  82. $File "$TOGL_INCDIR/glmdebug.h"
  83. $File "$TOGL_INCDIR/glmgrbasics.h"
  84. $File "$TOGL_INCDIR/glmgrext.h"
  85. $File "$TOGL_INCDIR/glmdisplay.h"
  86. $File "$TOGL_INCDIR/glmdisplaydb.h"
  87. $File "$TOGL_INCDIR/glfuncs.h"
  88. $File "$TOGL_INCDIR/cglmtex.h"
  89. $File "$TOGL_INCDIR/cglmfbo.h"
  90. $File "$TOGL_INCDIR/cglmprogram.h"
  91. $File "$TOGL_INCDIR/cglmbuffer.h"
  92. $File "$TOGL_INCDIR/cglmquery.h"
  93. }
  94. $Folder "Link Libraries"
  95. {
  96. $Lib tier2
  97. $Lib mathlib
  98. }
  99. }