commit fcb74a3f592721f8810933a13145d4c1ef812c47
parent 4786a13f614056e990cf31b2f4201e437fa5e351
Author: falkTX <falktx@falktx.com>
Date: Sun, 25 Dec 2022 22:25:37 +0000
Error out when trying to build UI with DISTRHO_PLUGIN_HAS_UI == 0
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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)