1
0

MPTrackLink.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * MPTrackLink.cpp
  3. * ---------------
  4. * Purpose: Consolidated linking against MSVC/Windows libraries.
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #include "stdafx.h"
  10. OPENMPT_NAMESPACE_BEGIN
  11. #if defined(MPT_BUILD_MSVC)
  12. #if MPT_COMPILER_MSVC || MPT_COMPILER_CLANG
  13. #if !defined(MPT_BUILD_RETRO)
  14. #pragma comment(lib, "delayimp.lib")
  15. #endif // !MPT_BUILD_RETRO
  16. #pragma comment(lib, "version.lib")
  17. #pragma comment(lib, "rpcrt4.lib")
  18. #pragma comment(lib, "shlwapi.lib")
  19. #pragma comment(lib, "wininet.lib")
  20. #pragma comment(lib, "htmlhelp.lib")
  21. #pragma comment(lib, "uxtheme.lib")
  22. #pragma comment(lib, "bcrypt.lib")
  23. #pragma comment(lib, "ncrypt.lib")
  24. #pragma comment(lib, "gdiplus.lib")
  25. #pragma comment(lib, "dmoguids.lib")
  26. #pragma comment(lib, "strmiids.lib")
  27. #if (_WIN32_WINNT >= 0x600)
  28. #pragma comment(lib, "avrt.lib")
  29. #endif
  30. #if defined(MPT_WITH_DIRECTSOUND)
  31. #pragma comment(lib, "dsound.lib")
  32. #endif // MPT_WITH_DIRECTSOUND
  33. #pragma comment(lib, "winmm.lib")
  34. #pragma comment(lib, "ksuser.lib")
  35. #ifdef MPT_WITH_MEDIAFOUNDATION
  36. #pragma comment(lib, "mf.lib")
  37. #pragma comment(lib, "mfplat.lib")
  38. #pragma comment(lib, "mfreadwrite.lib")
  39. #pragma comment(lib, "mfuuid.lib") // static lib
  40. #pragma comment(lib, "propsys.lib")
  41. #endif
  42. // work-around VS2019 16.8.1 bug on ARM and ARM64
  43. #if MPT_COMPILER_MSVC
  44. #if defined(_M_ARM) || defined(_M_ARM64)
  45. #pragma comment(lib, "Synchronization.lib")
  46. #endif
  47. #endif
  48. #if MPT_COMPILER_MSVC
  49. #pragma comment( linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df'\"" )
  50. #endif // MPT_COMPILER_MSVC
  51. #endif // MPT_COMPILER_MSVC || MPT_COMPILER_CLANG
  52. #endif // MPT_BUILD_MSVC
  53. OPENMPT_NAMESPACE_END