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.

111 lines
2.9 KiB

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