diff options
author | falkTX <falktx@gmail.com> | 2016-02-14 19:19:05 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2016-02-14 19:19:05 +0100 |
commit | 292bd7e0a5fb16dd56881ce05c4ae484799b20a7 (patch) | |
tree | 4eacd1c6e2639cbb4ad89103d43d425820c6abb0 /distrho/src/DistrhoPluginChecks.h | |
parent | 19f82001a2bb6b2287781c9a91dbb496de271eb8 (diff) |
Start work torwards external-ui support
Diffstat (limited to 'distrho/src/DistrhoPluginChecks.h')
-rw-r--r-- | distrho/src/DistrhoPluginChecks.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/distrho/src/DistrhoPluginChecks.h b/distrho/src/DistrhoPluginChecks.h index 32e5ea7a..608cf6bf 100644 --- a/distrho/src/DistrhoPluginChecks.h +++ b/distrho/src/DistrhoPluginChecks.h @@ -45,6 +45,10 @@ # define DISTRHO_PLUGIN_HAS_UI 0 #endif +#ifndef DISTRHO_PLUGIN_HAS_EXTERNAL_UI +# define DISTRHO_PLUGIN_HAS_EXTERNAL_UI 0 +#endif + #ifndef DISTRHO_PLUGIN_IS_RT_SAFE # define DISTRHO_PLUGIN_IS_RT_SAFE 0 #endif @@ -86,6 +90,17 @@ #endif // ----------------------------------------------------------------------- +// Define DISTRHO_PLUGIN_HAS_EMBED_UI if needed + +#ifndef DISTRHO_PLUGIN_HAS_EMBED_UI +# ifdef HAVE_DGL +# define DISTRHO_PLUGIN_HAS_EMBED_UI 1 +# else +# define DISTRHO_PLUGIN_HAS_EMBED_UI 0 +# endif +#endif + +// ----------------------------------------------------------------------- // Define DISTRHO_UI_URI if needed #ifndef DISTRHO_UI_URI @@ -117,9 +132,9 @@ #endif // ----------------------------------------------------------------------- -// Disable UI if DGL is not available +// Disable UI if DGL or External UI is not available -#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL) +#if DISTRHO_PLUGIN_HAS_UI && ! DISTRHO_PLUGIN_HAS_EXTERNAL_UI && ! defined(HAVE_DGL) # undef DISTRHO_PLUGIN_HAS_UI # define DISTRHO_PLUGIN_HAS_UI 0 #endif |