diff --git a/examples/Utilities/UnitTestsDemo.h b/examples/Utilities/UnitTestsDemo.h index f02b7c218f..ff6fcc94dc 100644 --- a/examples/Utilities/UnitTestsDemo.h +++ b/examples/Utilities/UnitTestsDemo.h @@ -36,7 +36,7 @@ juce_opengl, juce_osc, juce_product_unlocking, juce_video exporters: xcode_mac, vs2022, linux_make, androidstudio, xcode_iphone - moduleFlags: JUCE_STRICT_REFCOUNTEDPOINTER=1,JUCE_PLUGINHOST_VST3=1 + moduleFlags: JUCE_STRICT_REFCOUNTEDPOINTER=1,JUCE_PLUGINHOST_VST3=1,JUCE_PLUGINHOST_LV2=1 defines: JUCE_UNIT_TESTS=1 type: Component diff --git a/modules/juce_audio_processors/juce_audio_processors.cpp b/modules/juce_audio_processors/juce_audio_processors.cpp index 2dace73b11..df3a1e8a96 100644 --- a/modules/juce_audio_processors/juce_audio_processors.cpp +++ b/modules/juce_audio_processors/juce_audio_processors.cpp @@ -225,6 +225,11 @@ private: #include "format_types/juce_LV2PluginFormat.cpp" #if JUCE_UNIT_TESTS - #include "format_types/juce_VST3PluginFormat_test.cpp" - #include "format_types/juce_LV2PluginFormat_test.cpp" + #if JUCE_PLUGINHOST_VST3 + #include "format_types/juce_VST3PluginFormat_test.cpp" + #endif + + #if JUCE_PLUGINHOST_LV2 + #include "format_types/juce_LV2PluginFormat_test.cpp" + #endif #endif