From e86b88603862f4a41744e62016a3f264e7bd792d Mon Sep 17 00:00:00 2001 From: reuk Date: Fri, 24 Jun 2022 19:44:48 +0100 Subject: [PATCH] UnitTestsDemo: Enable LV2 hosting, so that the Projucer correctly sets up include paths --- examples/Utilities/UnitTestsDemo.h | 2 +- modules/juce_audio_processors/juce_audio_processors.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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