Browse Source

Add DISTRHO_PLUGIN_USES_MODGUI macro

pull/6/head
falkTX 8 years ago
parent
commit
45cb8a3d90
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      distrho/src/DistrhoPluginLV2export.cpp

+ 8
- 0
distrho/src/DistrhoPluginLV2export.cpp View File

@@ -45,6 +45,10 @@
# define DISTRHO_PLUGIN_MINIMUM_BUFFER_SIZE 2048
#endif

#ifndef DISTRHO_PLUGIN_USES_MODGUI
# define DISTRHO_PLUGIN_USES_MODGUI 0
#endif

#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL)
# undef DISTRHO_PLUGIN_HAS_UI
# define DISTRHO_PLUGIN_HAS_UI 0
@@ -111,7 +115,11 @@ void lv2_generate_ttl(const char* const basename)
manifestString += "<" DISTRHO_PLUGIN_URI ">\n";
manifestString += " a lv2:Plugin ;\n";
manifestString += " lv2:binary <" + pluginDLL + "." DISTRHO_DLL_EXTENSION "> ;\n";
#if DISTRHO_PLUGIN_USES_MODGUI
manifestString += " rdfs:seeAlso <" + pluginTTL + " , modgui.ttl> .\n";
#else
manifestString += " rdfs:seeAlso <" + pluginTTL + "> .\n";
#endif
manifestString += "\n";

#if DISTRHO_PLUGIN_HAS_UI


Loading…
Cancel
Save