Skip to content

Commit

Permalink
build: Unique LV2URI
Browse files Browse the repository at this point in the history
Ensure unique LV2 URI string when suffix is provided, to ensure
both mono and stereo variants function.
  • Loading branch information
pallaswept authored and werman committed May 18, 2024
1 parent 73775f1 commit 7174cae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/juce_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ else()
endif()

function(compile_plugins formats suffix default_channels)
string(REPLACE "_" "" URI_SUFFIX "${suffix}")
set(PLUGIN_NAME "${PROJECT_NAME}${suffix}")

juce_add_plugin(${PLUGIN_NAME}
Expand All @@ -42,7 +43,7 @@ function(compile_plugins formats suffix default_channels)
PLUGIN_CODE Rnn1 # A unique four-character plugin id with at least one upper-case character
FORMATS "${formats}"
PRODUCT_NAME "rnnoise${suffix}"
LV2URI "https://github.com/werman/noise-suppression-for-voice"
LV2URI "https://github.com/werman/noise-suppression-for-voice#${URI_SUFFIX}"
VST_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vst"
VST3_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
AU_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
Expand Down Expand Up @@ -135,4 +136,4 @@ endif ()

if (FORMATS)
compile_plugins("${FORMATS}" "" 1)
endif ()
endif ()

0 comments on commit 7174cae

Please sign in to comment.