Browse Source

Allow building VST3 plugins with non-embed external UI (skips UI)

Signed-off-by: falkTX <falktx@falktx.com>
pull/421/head
falkTX 2 years ago
parent
commit
dc6557a3c9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      distrho/DistrhoUIMain.cpp

+ 7
- 2
distrho/DistrhoUIMain.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2023 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -16,10 +16,13 @@

#include "src/DistrhoUI.cpp"

#if ! DISTRHO_PLUGIN_HAS_UI
// we might be building a plugin with external UI, which works on most formats except VST2/3
#if ! DISTRHO_PLUGIN_HAS_UI && ! defined(DISTRHO_PLUGIN_VST_HPP_INCLUDED)
# error Trying to build UI without DISTRHO_PLUGIN_HAS_UI set to 1
#endif

#if DISTRHO_PLUGIN_HAS_UI

#if defined(DISTRHO_PLUGIN_TARGET_CARLA)
# define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1
#elif defined(DISTRHO_PLUGIN_TARGET_CLAP)
@@ -51,3 +54,5 @@
# endif
# include "src/DistrhoUtils.cpp"
#endif

#endif

Loading…
Cancel
Save