Add #ifdef WITH_VST3 guards around VST3 hosting

This commit is contained in:
Robbert van der Helm
2020-12-02 14:49:00 +01:00
parent 3db099e0fc
commit 84e13e556c
4 changed files with 41 additions and 4 deletions
+10
View File
@@ -22,6 +22,10 @@
#include <regex>
#include "../../common/communication/common.h"
#include "vst2.h"
#ifdef WITH_VST3
#include "vst3.h"
#endif
// FIXME: `std::filesystem` is broken in wineg++, at least under Wine 5.8. Any
// path operation will thrown an encoding related error
@@ -201,7 +205,13 @@ void GroupBridge::accept_requests() {
request.endpoint_base_dir);
break;
case PluginType::vst3:
#ifdef WITH_VST3
throw std::runtime_error("TODO: Not yet implemented");
#else
throw std::runtime_error(
"This version of yabridge has not been compiled "
"with VST3 support");
#endif
break;
case PluginType::unknown:
throw std::runtime_error(