build for Linux: disable JUCE web browser (no gtk.h), vst3-only, linux install

This commit is contained in:
Armin 2026-10-01 00:36:37 +02:00
commit 20c999ef21
3 changed files with 60 additions and 13 deletions

View file

@ -68,6 +68,19 @@ endif()
add_subdirectory(${JUCE_ROOT} juce)
# RMX-19 has no web view. juce_audio_processors depends on juce_gui_extra, whose
# Linux source includes <gtk/gtk.h> and the WebKit headers unless the browser
# component is switched off. Disabling it keeps the Linux build free of GTK and
# WebKit (and of native file-chooser dialogs, which this plug-in never uses).
add_compile_definitions(JUCE_WEB_BROWSER=0)
# AU is only buildable on Apple; on Linux (and everywhere else) ship VST3.
if(APPLE)
set(RMX19_FORMATS AU VST3)
else()
set(RMX19_FORMATS VST3)
endif()
juce_add_plugin(RMX19
PRODUCT_NAME "RMX-19"
PLUGIN_NAME "RMX-19"
@ -79,7 +92,7 @@ juce_add_plugin(RMX19
DESCRIPTION "19 inch rack digital sound module"
PLUGIN_MANUFACTURER_CODE "Rmlb"
PLUGIN_CODE "Rmx1"
FORMATS AU VST3
FORMATS ${RMX19_FORMATS}
IS_SYNTH TRUE
NEEDS_MIDI_INPUT TRUE
EDITOR_WANTS_KEYBOARD_FOCUS TRUE