1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

LV2: Add initial hosting support

This commit is contained in:
reuk 2021-10-20 20:19:22 +01:00
parent 1d04669410
commit 1182024fc4
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
280 changed files with 18125 additions and 295 deletions

View file

@ -227,7 +227,7 @@ endfunction()
# ==================================================================================================
function(_juce_get_all_plugin_kinds out)
set(${out} AU AUv3 AAX Standalone Unity VST VST3 PARENT_SCOPE)
set(${out} AU AUv3 AAX LV2 Standalone Unity VST VST3 PARENT_SCOPE)
endfunction()
function(_juce_get_platform_plugin_kinds out)
@ -242,7 +242,7 @@ function(_juce_get_platform_plugin_kinds out)
endif()
if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS" AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
list(APPEND result AAX Unity VST VST3)
list(APPEND result AAX Unity VST VST3 LV2)
endif()
set(${out} ${result} PARENT_SCOPE)
@ -489,8 +489,22 @@ function(juce_add_module module_path)
target_link_libraries(juce_audio_processors INTERFACE juce_vst3_headers)
add_library(juce_lilv_headers INTERFACE)
set(lv2_base_path "${base_path}/juce_audio_processors/format_types/LV2_SDK")
target_include_directories(juce_lilv_headers INTERFACE
"${lv2_base_path}"
"${lv2_base_path}/lv2"
"${lv2_base_path}/serd"
"${lv2_base_path}/sord"
"${lv2_base_path}/sord/src"
"${lv2_base_path}/sratom"
"${lv2_base_path}/lilv"
"${lv2_base_path}/lilv/src")
target_link_libraries(juce_audio_processors INTERFACE juce_lilv_headers)
if(JUCE_ARG_ALIAS_NAMESPACE)
add_library(${JUCE_ARG_ALIAS_NAMESPACE}::juce_vst3_headers ALIAS juce_vst3_headers)
add_library(${JUCE_ARG_ALIAS_NAMESPACE}::juce_lilv_headers ALIAS juce_lilv_headers)
endif()
endif()