-
Notifications
You must be signed in to change notification settings - Fork 2
/
audiopluginhost-lv2.patch
49 lines (45 loc) · 1.7 KB
/
audiopluginhost-lv2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/extras/AudioPluginHost/CMakeLists.txt b/extras/AudioPluginHost/CMakeLists.txt
index fb1fb92950..9aa28eb9b3 100644
--- a/extras/AudioPluginHost/CMakeLists.txt
+++ b/extras/AudioPluginHost/CMakeLists.txt
@@ -53,7 +53,24 @@ target_compile_definitions(AudioPluginHost PRIVATE
JUCE_WASAPI=1
JUCE_WEB_BROWSER=0)
+find_package(PkgConfig REQUIRED)
+
+pkg_check_modules(LILV lilv-0)
+pkg_check_modules(SUIL suil-0)
+
+target_include_directories(AudioPluginHost PRIVATE
+ ${LILV_INCLUDE_DIRS}
+ ${SUIL_INCLUDE_DIRS}
+ "../../../../../../external/jlv2/modules")
+
+juce_add_modules(
+ ALIAS_NAMESPACE jlv2
+ ../../../../../../external/jlv2/modules/jlv2_host)
+
target_link_libraries(AudioPluginHost PRIVATE
+ ${LILV_LIBRARIES}
+ ${SUIL_LIBRARIES}
+ jlv2::jlv2_host
juce::juce_audio_utils
juce::juce_cryptography
juce::juce_dsp
diff --git a/extras/AudioPluginHost/Source/UI/MainHostWindow.cpp b/extras/AudioPluginHost/Source/UI/MainHostWindow.cpp
index dfd4927c85..645d333e79 100644
--- a/extras/AudioPluginHost/Source/UI/MainHostWindow.cpp
+++ b/extras/AudioPluginHost/Source/UI/MainHostWindow.cpp
@@ -26,6 +26,7 @@
#include <JuceHeader.h>
#include "MainHostWindow.h"
#include "../Plugins/InternalPlugins.h"
+#include "jlv2_host/jlv2_host.h"
//==============================================================================
@@ -79,6 +80,7 @@ MainHostWindow::MainHostWindow()
{
formatManager.addDefaultFormats();
formatManager.addFormat (new InternalPluginFormat());
+ formatManager.addFormat (new jlv2::LV2PluginFormat());
auto safeThis = SafePointer<MainHostWindow> (this);
RuntimePermissions::request (RuntimePermissions::recordAudio,