1
0

ext-rtaudio.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. project "rtaudio"
  2. uuid "4886456b-1342-4ec8-ad3f-d92aeb8c1097"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "rtaudio"
  6. dofile "../../build/premake/premake-defaults-LIB.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-rtaudio"
  9. filter {}
  10. filter { "action:vs*" }
  11. characterset "Unicode"
  12. filter {}
  13. filter { "action:vs2017" }
  14. if _OPTIONS["winxp"] then
  15. defines {
  16. "__WINDOWS_DS__",
  17. }
  18. else
  19. defines {
  20. -- WASAPI causes link failure due to confused SDK headers
  21. }
  22. end
  23. filter { "not action:vs2017" }
  24. if _OPTIONS["winxp"] then
  25. defines {
  26. "__WINDOWS_DS__",
  27. }
  28. else
  29. defines {
  30. "__WINDOWS_WASAPI__",
  31. }
  32. end
  33. filter {}
  34. files {
  35. "../../include/rtaudio/RtAudio.cpp",
  36. "../../include/rtaudio/RtAudio.h",
  37. }
  38. if _OPTIONS["winxp"] then
  39. if _OPTIONS["clang"] then
  40. filter { "not kind:StaticLib" }
  41. links { "dsound" }
  42. filter {}
  43. else
  44. filter {}
  45. links { "dsound" }
  46. filter {}
  47. end
  48. end
  49. filter { }
  50. filter { "action:vs*" }
  51. buildoptions { "/wd4267" }
  52. filter {}
  53. filter { "action:vs*" }
  54. buildoptions { "/wd6031" } -- analyze
  55. filter {}