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.

50 lines
2.2 KiB

  1. //-----------------------------------------------------------------------------
  2. // AVI_BASE.VPC
  3. //
  4. // Controls selection (and compilation) of various video subsystems
  5. //
  6. // Defines to add or remove to the preprocessor definitions:
  7. //
  8. // AVI_VIDEO - controls availability of IAvi interface, playing of AVI Video files in Engine
  9. // BINK_VIDEO - controls availability of IBik interface
  10. // QUICKTIME_VIDEO - controls availability of IQuickTime interface
  11. // WMV_VIDEO - controls availability of playing WMV MPEG video files in Engine
  12. //
  13. // FORCE_QUICKTIME - causes engine to force change ".bik" ".wmv" ".avi" extensions to ".mov" and
  14. // look for Quicktime playback *IF* the same file exists in .mov form
  15. //
  16. //-----------------------------------------------------------------------------
  17. // We use Quicktime exclusively (and only quicktime) on the Mac
  18. //
  19. // We have two configurations for Win32.
  20. //
  21. // 1) Comment out the following $macro line out to enable BINK (and AVI and WMV) playback of videos
  22. // 2) Uncomment the following $macro line out to enable Quicktime (and AVI and WMV) playback of videos and
  23. // - the Quicktime file override ( the Quicktime .mov is played if present even if a .bnk, .avi or .wmv file was specified )
  24. // $macro QUICKTIME_WIN32 1
  25. $Conditional GL "1" [!$DEDICATED && !$WIN32 && !$WIN64]
  26. // If we're using OpenGL, we're implicitly using SDL.
  27. $Macro SDL "1" [$GL && !$DEDICATED]
  28. $Configuration
  29. {
  30. $Compiler
  31. {
  32. $PreprocessorDefinitions "$BASE;QUICKTIME_VIDEO;FORCE_QUICKTIME" [$OSXALL]
  33. // Windows PC, without Quicktime, and with Quicktime
  34. $PreprocessorDefinitions "$BASE;BINK_VIDEO;AVI_VIDEO;WMV_VIDEO" [$WIN32&&!$QUICKTIME_WIN32]
  35. $PreprocessorDefinitions "$BASE;AVI_VIDEO;WMV_VIDEO;QUICKTIME_VIDEO" [$WIN32&&$QUICKTIME_WIN32]
  36. $PreprocessorDefinitions "$BASE;BINK_VIDEO" [$X360]
  37. $PreprocessorDefinitions "$BASE;BINK_VIDEO" [$LINUXALL]
  38. $PreprocessorDefinitions "$BASE;GL_GLEXT_PROTOTYPES;DX_TO_GL_ABSTRACTION" [$GL]
  39. $PreprocessorDefinitions "$BASE;USE_SDL" [$SDL]
  40. $AdditionalIncludeDirectories "$BASE;$SRCDIR\thirdparty\SDL2" [$SDL || $DEDICATED]
  41. }
  42. }