clap support cmake mods

This commit is contained in:
essej 2022-06-14 19:41:36 -04:00
parent bd701cb5f2
commit 1b74370003

View File

@ -78,11 +78,12 @@ option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Show all module sources in IDE projects
add_subdirectory(deps/juce EXCLUDE_FROM_ALL )
# juce_add_modules(deps/ff_meters)
# Extend JUCE with CLAP support from https://github.com/free-audio/clap-juce-extensions
add_subdirectory(deps/clap-juce-extensions EXCLUDE_FROM_ALL)
set (FormatsToBuild VST3 Standalone)
set (FormatsToBuild VST3 CLAP Standalone)
# On Mac, an AU version will be built too
if (APPLE)
@ -168,6 +169,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
PLIST_TO_MERGE "${MacPList}"
AU_MAIN_TYPE "kAudioUnitType_MusicEffect"
COPY_PLUGIN_AFTER_BUILD FALSE # Set to TRUE to auto-install
# other settings...
PLUGIN_MANUFACTURER_CODE Sono
@ -176,6 +178,14 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
DESCRIPTION "PaulXStretch - Extreme Timestretching"
PRODUCT_NAME "${product_name}")
if ("CLAP" IN_LIST formats)
# Configure the CLAP plugin
clap_juce_extensions_plugin(TARGET "${target_name}"
CLAP_ID "com.sonosaurus.paulstretch.clap"
CLAP_FEATURES "audio-effect")
endif()
juce_generate_juce_header("${target_name}")