mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-04 06:07:15 -05:00
No functional changes! No changes to savefiles/presets! Fixes casing of everything that is currently lowercase but should be uppercase. Fixes also some other plugin strings, especially: * opl2 -> OpulenZ (see289887f4fc) * calf -> veal (seeae291e0709) * ladspa_effect -> LadspaEffect (see9c9372f0c8) * remove flp_import (see2d1813fb64)
109 lines
2.1 KiB
CMake
109 lines
2.1 KiB
CMake
# Provides a fast mechanism for filtering the plugins used at build-time
|
|
SET(PLUGIN_LIST "" CACHE STRING "List of plug-ins to build")
|
|
STRING(REPLACE " " ";" PLUGIN_LIST "${PLUGIN_LIST}")
|
|
OPTION(LMMS_MINIMAL "Build a minimal list of plug-ins" OFF)
|
|
OPTION(LIST_PLUGINS "Lists the available plugins for building" OFF)
|
|
|
|
SET(MINIMAL_LIST
|
|
AudioFileProcessor
|
|
Kicker
|
|
TripleOscillator
|
|
)
|
|
|
|
IF(LMMS_MINIMAL)
|
|
IF("${PLUGIN_LIST}" STREQUAL "")
|
|
STRING(REPLACE ";" " " MINIMAL_LIST_STRING "${MINIMAL_LIST}")
|
|
MESSAGE(
|
|
"-- Using minimal plug-ins: ${MINIMAL_LIST_STRING}\n"
|
|
" Note: You can specify specific plug-ins using -DPLUGIN_LIST=\"foo bar\""
|
|
)
|
|
ENDIF()
|
|
SET(PLUGIN_LIST ${MINIMAL_LIST} ${PLUGIN_LIST})
|
|
ENDIF()
|
|
|
|
SET(LMMS_PLUGIN_LIST
|
|
${MINIMAL_LIST}
|
|
Amplifier
|
|
BassBooster
|
|
BitInvader
|
|
Bitcrush
|
|
CarlaBase
|
|
CarlaPatchbay
|
|
CarlaRack
|
|
Compressor
|
|
CrossoverEQ
|
|
Delay
|
|
DualFilter
|
|
DynamicsProcessor
|
|
Eq
|
|
Flanger
|
|
HydrogenImport
|
|
LadspaBrowser
|
|
LadspaEffect
|
|
Lv2Effect
|
|
Lv2Instrument
|
|
Lb302
|
|
MidiImport
|
|
MidiExport
|
|
MultitapEcho
|
|
Monstro
|
|
Nes
|
|
OpulenZ
|
|
Organic
|
|
FreeBoy
|
|
Patman
|
|
PeakControllerEffect
|
|
GigPlayer
|
|
ReverbSC
|
|
Sf2Player
|
|
Sfxr
|
|
Sid
|
|
SpectrumAnalyzer
|
|
StereoEnhancer
|
|
StereoMatrix
|
|
Stk
|
|
VstBase
|
|
Vestige
|
|
VstEffect
|
|
Watsyn
|
|
WaveShaper
|
|
Vectorscope
|
|
Vibed
|
|
Xpressive
|
|
ZynAddSubFx
|
|
)
|
|
|
|
IF("${PLUGIN_LIST}" STREQUAL "")
|
|
SET(PLUGIN_LIST ${LMMS_PLUGIN_LIST})
|
|
ENDIF()
|
|
|
|
MACRO(LIST_ALL_PLUGINS)
|
|
MESSAGE("\n\nAll possible -DPLUGIN_LIST values")
|
|
MESSAGE("\n KEYWORD:")
|
|
MESSAGE(" -DLMMS_MINIMAL=True")
|
|
FOREACH(item IN LISTS MINIMAL_LIST)
|
|
MESSAGE(" ${item}")
|
|
ENDFOREACH()
|
|
MESSAGE("\n NAME:")
|
|
FOREACH(item IN LISTS LMMS_PLUGIN_LIST)
|
|
MESSAGE(" ${item}")
|
|
ENDFOREACH()
|
|
MESSAGE("\nNote: This value also impacts the fetching of git submodules.\n")
|
|
MESSAGE(FATAL_ERROR "Information was requested, aborting build!")
|
|
ENDMACRO()
|
|
|
|
IF(LIST_PLUGINS)
|
|
UNSET(LIST_PLUGINS CACHE)
|
|
LIST_ALL_PLUGINS()
|
|
ENDIF()
|
|
|
|
IF(MSVC)
|
|
SET(MSVC_INCOMPATIBLE_PLUGINS
|
|
LadspaEffect
|
|
ZynAddSubFx
|
|
)
|
|
message(WARNING "Compiling with MSVC. The following plugins are not available: ${MSVC_INCOMPATIBLE_PLUGINS}")
|
|
LIST(REMOVE_ITEM PLUGIN_LIST ${MSVC_INCOMPATIBLE_PLUGINS})
|
|
ENDIF()
|
|
|