Skip to content

Commit

Permalink
Only generate wasm modgui if DISTRHO_PLUGIN_HAS_EMBED_UI is true
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 20, 2023
1 parent df2afed commit 1d5a31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distrho/src/DistrhoPluginLV2export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ void lv2_generate_ttl(const char* const basename)
std::cout << " done!" << std::endl;
}

#if DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
#if DISTRHO_PLUGIN_USES_MODGUI && DISTRHO_PLUGIN_HAS_EMBED_UI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
{
std::cout << "Writing modgui.ttl..."; std::cout.flush();
std::fstream modguiFile("modgui.ttl", std::ios::out);
Expand Down Expand Up @@ -1548,7 +1548,7 @@ void lv2_generate_ttl(const char* const basename)
stylesheetFile.close();
std::cout << " done!" << std::endl;
}
#endif // DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
#endif // DISTRHO_PLUGIN_USES_MODGUI && DISTRHO_PLUGIN_HAS_EMBED_UI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI

// ---------------------------------------------

Expand Down

0 comments on commit 1d5a31c

Please sign in to comment.