Skip to content

Commit

Permalink
feat: add CLAP support
Browse files Browse the repository at this point in the history
Add support for the CLAP format using [clap-juce-extensions][0].

It should work on all supported OSes (Linux, Windows & macOS). I've only
tested it on Linux though.

[0]: https://github.com/free-audio/clap-juce-extensions
  • Loading branch information
grawlinson authored and JoseDiazRohena committed Aug 25, 2024
1 parent 0f46792 commit b867531
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
[submodule "ff_meters"]
path = libs/ff_meters
url = https://github.com/ffAudio/ff_meters.git
[submodule "libs/clap-juce-extensions"]
path = libs/clap-juce-extensions
url = https://github.com/free-audio/clap-juce-extensions.git
branch = main
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Show all module sources in IDE projects
# and `git submodule update --remote --merge` to keep it up to date
# On Github Actions, it's managed by actions/checkout
add_subdirectory(libs/JUCE)
add_subdirectory(libs/clap-juce-extensions EXCLUDE_FROM_ALL)

# Also using Foley's Finest meters
juce_add_module(libs/ff_meters)
Expand All @@ -78,6 +79,10 @@ juce_add_plugin("${PROJECT_NAME}"
FORMATS "${FORMATS}"
PRODUCT_NAME "${PROJECT_NAME}") # The name of the final executable, which can differ from the target name

clap_juce_extensions_plugin(TARGET "${PROJECT_NAME}"
CLAP_ID "com.ToteBagLabs.Valentine"
CLAP_FEATURES "audio-effect")

# C++20 please
target_compile_features("${PROJECT_NAME}" PRIVATE cxx_std_20)

Expand Down
1 change: 1 addition & 0 deletions libs/clap-juce-extensions
Submodule clap-juce-extensions added at 24e70f

0 comments on commit b867531

Please sign in to comment.