1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

VST3_SDK: Move to juce_audio_processors_headless

This commit is contained in:
reuk 2025-08-20 15:28:10 +01:00
parent bf4486e2aa
commit db64002610
No known key found for this signature in database
139 changed files with 24 additions and 29 deletions

View file

@ -530,6 +530,16 @@ function(juce_add_module module_path)
endif()
if(${module_name} STREQUAL "juce_audio_processors_headless")
add_library(juce_vst3_headers INTERFACE)
target_compile_definitions(juce_vst3_headers INTERFACE "$<$<TARGET_EXISTS:juce_vst3_sdk>:JUCE_CUSTOM_VST3_SDK=1>")
target_include_directories(juce_vst3_headers INTERFACE
"$<$<TARGET_EXISTS:juce_vst3_sdk>:$<TARGET_PROPERTY:juce_vst3_sdk,INTERFACE_INCLUDE_DIRECTORIES>>"
"$<$<NOT:$<TARGET_EXISTS:juce_vst3_sdk>>:${base_path}/juce_audio_processors_headless/format_types/VST3_SDK>")
target_link_libraries(juce_audio_processors_headless INTERFACE juce_vst3_headers)
add_library(juce_lilv_headers INTERFACE)
set(lv2_base_path "${base_path}/juce_audio_processors_headless/format_types/LV2_SDK")
target_include_directories(juce_lilv_headers INTERFACE
@ -551,27 +561,12 @@ function(juce_add_module module_path)
target_link_libraries(juce_audio_processors_headless INTERFACE juce_ara_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)
add_library(${JUCE_ARG_ALIAS_NAMESPACE}::juce_ara_headers ALIAS juce_ara_headers)
endif()
endif()
if(${module_name} STREQUAL "juce_audio_processors")
add_library(juce_vst3_headers INTERFACE)
target_compile_definitions(juce_vst3_headers INTERFACE "$<$<TARGET_EXISTS:juce_vst3_sdk>:JUCE_CUSTOM_VST3_SDK=1>")
target_include_directories(juce_vst3_headers INTERFACE
"$<$<TARGET_EXISTS:juce_vst3_sdk>:$<TARGET_PROPERTY:juce_vst3_sdk,INTERFACE_INCLUDE_DIRECTORIES>>"
"$<$<NOT:$<TARGET_EXISTS:juce_vst3_sdk>>:${base_path}/juce_audio_processors/format_types/VST3_SDK>")
target_link_libraries(juce_audio_processors INTERFACE juce_vst3_headers)
if(JUCE_ARG_ALIAS_NAMESPACE)
add_library(${JUCE_ARG_ALIAS_NAMESPACE}::juce_vst3_headers ALIAS juce_vst3_headers)
endif()
endif()
target_include_directories(${module_name} INTERFACE ${base_path})
target_compile_definitions(${module_name} INTERFACE JUCE_MODULE_AVAILABLE_${module_name}=1)

View file

@ -451,7 +451,7 @@ void ProjectExporter::addLegacyVSTFolderToPathIfSpecified()
build_tools::RelativePath ProjectExporter::getInternalVST3SDKPath()
{
return getModuleFolderRelativeToProject ("juce_audio_processors")
return getModuleFolderRelativeToProject ("juce_audio_processors_headless")
.getChildFile ("format_types")
.getChildFile ("VST3_SDK");
}