From 63c1f9776b49ab45c35f344730fab96aa20853b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Wasylk=C3=B3w?= Date: Thu, 2 Apr 2020 13:35:28 +0200 Subject: [PATCH] premake: add soundtouch plugin --- premake5-win.lua | 33 ++++++++++++++++++++++++++++++++- premake5.lua | 29 +++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/premake5-win.lua b/premake5-win.lua index 4c1e6f2042..a82228ae6c 100644 --- a/premake5-win.lua +++ b/premake5-win.lua @@ -23,7 +23,7 @@ newoption { if _OPTIONS["standard"] ~= nil then plugins_to_disable = {"plugin-artwork", "plugin-converter", "plugin-converter_gtk2", "plugin-converter_gtk3","plugin-ffmpeg","plugin-waveout", - "plugin-wildmidi" } + "plugin-wildmidi", "plugin-soundtouch" } for i,v in ipairs(plugins_to_disable) do if _OPTIONS[v] == nil then _OPTIONS[v] = "disabled" @@ -879,6 +879,37 @@ project "lastfm" pkgconfig ("libcurl") end +if option ("plugin-soundtouch") then +project "ddb_soundtouch" + kind "SharedLib" + language "C++" + targetdir "bin/%{cfg.buildcfg}/plugins" + targetprefix "" + + includedirs { "plugins/soundtouch/soundtouch/include" } + + files { + "plugins/soundtouch/plugin.c", + "plugins/soundtouch/st.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/AAFilter.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/BPMDetect.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/FIFOSampleBuffer.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/FIRFilter.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateCubic.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateLinear.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateShannon.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/PeakFinder.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/RateTransposer.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.sln", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.vcxproj", + "plugins/soundtouch/soundtouch/source/SoundTouch/TDStretch.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/mmx_optimized.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/sse_optimized.cpp" + } +end + project "translations" kind "Utility" diff --git a/premake5.lua b/premake5.lua index a673ea7783..9b085a41b4 100644 --- a/premake5.lua +++ b/premake5.lua @@ -621,6 +621,35 @@ project "nullout" "plugins/nullout/*.c", } +project "ddb_soundtouch" + kind "SharedLib" + language "C++" + targetdir "bin/%{cfg.buildcfg}/plugins" + targetprefix "" + + includedirs { "plugins/soundtouch/soundtouch/include" } + + files { + "plugins/soundtouch/plugin.c", + "plugins/soundtouch/st.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/AAFilter.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/BPMDetect.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/FIFOSampleBuffer.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/FIRFilter.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateCubic.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateLinear.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/InterpolateShannon.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/PeakFinder.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/RateTransposer.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.sln", + "plugins/soundtouch/soundtouch/source/SoundTouch/SoundTouch.vcxproj", + "plugins/soundtouch/soundtouch/source/SoundTouch/TDStretch.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/mmx_optimized.cpp", + "plugins/soundtouch/soundtouch/source/SoundTouch/sse_optimized.cpp" + } + project "resources" kind "Utility"