From fcb74a3f592721f8810933a13145d4c1ef812c47 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 25 Dec 2022 22:26:04 +0000 Subject: [PATCH] Error out when trying to build UI with DISTRHO_PLUGIN_HAS_UI == 0 Signed-off-by: falkTX --- distrho/DistrhoUIMain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distrho/DistrhoUIMain.cpp b/distrho/DistrhoUIMain.cpp index 7970f01e..572b62e4 100644 --- a/distrho/DistrhoUIMain.cpp +++ b/distrho/DistrhoUIMain.cpp @@ -16,6 +16,10 @@ #include "src/DistrhoUI.cpp" +#if ! DISTRHO_PLUGIN_HAS_UI +# error Trying to build UI without DISTRHO_PLUGIN_HAS_UI set to 1 +#endif + #if defined(DISTRHO_PLUGIN_TARGET_CARLA) # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 #elif defined(DISTRHO_PLUGIN_TARGET_CLAP)