Reworked cmake command options
And fixed a recursion problem when copying DLLs to dest folder
The command options are now:
// Enable Audio Unit plug-in support
audacity_enable_audiounits:BOOL=ON
// Library preference [system (if available), local]
audacity_lib_preference:STRING=system
// Use FileDialog library [local]
audacity_use_FileDialog:STRING=local
// Use expat library [local]
audacity_use_expat:STRING=local
// Use ffmpeg library [loaded, off]
audacity_use_ffmpeg:STRING=off
// Use flac library [system (if available), local, off]
audacity_use_flac:STRING=local
// Use id3tag library [system (if available), local, off]
audacity_use_id3tag:STRING=local
// Use LADSPA plug-in support [on, off]
audacity_use_ladspa:BOOL=ON
// Use lame library [system (if available), local]
audacity_use_lame:STRING=local
// Use libextra library [local]
audacity_use_libextra:STRING=local
// Use lv2 library [system (if available), local, off]
audacity_use_lv2:STRING=local
// Use mad library [system (if available), local, off]
audacity_use_mad:STRING=local
// Use midi library [system (if available), local, off]
audacity_use_midi:STRING=local
// Use nyquist library [local, off]
audacity_use_nyquist:STRING=local
// Use ogg library [system (if available), local, off]
audacity_use_ogg:STRING=local
// Use the portaudio CoreAudio interface if available
audacity_use_pa_coreaudio:BOOL=YES
// Use the JACK audio interface if available [loaded, linked, off]
audacity_use_pa_jack:STRING=off
// Use the OSS audio interface if available
audacity_use_pa_oss:BOOL=NO
// Use portaudio library [local]
audacity_use_portaudio:STRING=local
// Use portmixer library [local, off]
audacity_use_portmixer:STRING=local
// Use portsmf library [system (if available), local, off]
audacity_use_portsmf:STRING=local
// Use sbsms library [system (if available), local, off]
audacity_use_sbsms:STRING=local
// Use sndfile library [system (if available), local]
audacity_use_sndfile:STRING=local
// Use soundtouch library [system (if available), local, off]
audacity_use_soundtouch:STRING=local
// Use soxr library [system (if available), local]
audacity_use_soxr:STRING=local
// Use twolame library [system (if available), local, off]
audacity_use_twolame:STRING=local
// Use vamp library [system (if available), local, off]
audacity_use_vamp:STRING=local
// Use vorbis library [system (if available), local, off]
audacity_use_vorbis:STRING=local
// Use VST2 plug-in support [on, off]
audacity_use_vst:BOOL=ON
// Use wxwidgets library [system (if available), local]
audacity_use_wxwidgets:STRING=system
2020-02-14 21:56:33 +00:00
|
|
|
# Allow user to globally set the library preference
|
|
|
|
cmd_option( ${_OPT}lib_preference
|
|
|
|
"Library preference [system (if available), local]"
|
|
|
|
"system"
|
|
|
|
STRINGS "system" "local"
|
|
|
|
)
|
2018-03-31 18:45:37 +00:00
|
|
|
|
2020-02-03 06:39:43 +00:00
|
|
|
# Required libraries
|
|
|
|
#
|
2020-02-05 17:10:22 +00:00
|
|
|
# directory option symbol req chk version
|
2020-02-11 07:15:26 +00:00
|
|
|
addlib( wxWidgets wxwidgets WX YES NO "" ) # must be first
|
2020-03-23 13:12:42 +00:00
|
|
|
addlib( expat expat EXPAT YES YES "expat >= 2.1.0" )
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( lame lame LAME YES YES "lame >= 3.100" )
|
2020-03-18 21:36:23 +00:00
|
|
|
addlib( libsndfile sndfile SNDFILE YES YES "sndfile >= 1.0.28" )
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( libsoxr soxr SOXR YES YES "soxr >= 0.1.1" )
|
|
|
|
addlib( portaudio-v19 portaudio PORTAUDIO YES YES "" )
|
2020-06-21 22:48:07 +00:00
|
|
|
addlib( sqlite sqlite SQLITE YES YES "sqlite3 >= 3.32.0" )
|
2020-02-03 06:39:43 +00:00
|
|
|
|
|
|
|
# Optional libraries
|
|
|
|
#
|
2020-02-05 17:10:22 +00:00
|
|
|
# directory option symbol req chk version
|
|
|
|
addlib( ffmpeg ffmpeg FFMPEG NO NO "libavcodec >= 51.53" "libavformat >= 52.12" "libavutil >= 52.66" )
|
|
|
|
addlib( libid3tag id3tag LIBID3TAG NO YES "id3tag >= 0.15.1b" )
|
2020-02-27 16:49:49 +00:00
|
|
|
addlib( libmad mad LIBMAD NO YES "mad >= 0.15.1b" )
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( libnyquist nyquist NYQUIST NO YES "" )
|
|
|
|
addlib( libvamp vamp VAMP NO YES "vamp >= 2.5" "vamp-hostsdk >= 2.5" )
|
2020-02-19 16:53:50 +00:00
|
|
|
addlib( libogg ogg LIBOGG NO YES "ogg >= 1.3.1" )
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( libvorbis vorbis LIBVORBIS NO YES "vorbis >= 1.3.3" "vorbisenc >= 1.3.3" "vorbisfile >= 1.3.3" )
|
|
|
|
addlib( libflac flac LIBFLAC NO YES "flac >= 1.3.1" "flac++ >= 1.3.1" )
|
2020-02-27 16:49:49 +00:00
|
|
|
addlib( lv2 lv2 LV2 NO YES "lilv-0 >= 0.24.6" "lv2 >= 1.16.0" "serd-0 >= 0.30.2" "sord-0 >= 0.16.4" "sratom-0 >= 0.6.4" "suil-0 >= 0.10.6" )
|
2020-06-19 19:43:09 +00:00
|
|
|
|
2020-02-11 07:15:26 +00:00
|
|
|
addlib( portmidi midi MIDI NO YES "portmidi >= 0.1" )
|
2020-06-19 19:43:09 +00:00
|
|
|
if (NOT USE_MIDI AND
|
|
|
|
"EXPERIMENTAL_MIDI_OUT" IN_LIST EXPERIMENTAL_OPTIONS_LIST )
|
|
|
|
message(FATAL_ERROR "EXPERIMENTAL_MIDI_OUT requires USE_MIDI")
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( portmixer portmixer PORTMIXER NO YES "" )
|
2020-06-19 19:43:09 +00:00
|
|
|
if (NOT USE_PORTMIXER AND
|
|
|
|
"EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT" IN_LIST
|
|
|
|
EXPERIMENTAL_OPTIONS_LIST )
|
|
|
|
message(FATAL_ERROR "EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT requires USE_PORTMIXER")
|
|
|
|
endif ()
|
|
|
|
|
2020-05-26 23:58:02 +00:00
|
|
|
addlib( portsmf portsmf PORTSMF NO YES "portSMF >= 0.1" )
|
2021-02-01 19:21:02 +00:00
|
|
|
addlib( libsbsms sbsms SBSMS NO YES "sbsms >= 2.2.0" )
|
2020-02-05 17:10:22 +00:00
|
|
|
addlib( soundtouch soundtouch SOUNDTOUCH NO YES "soundtouch >= 1.7.1" )
|
|
|
|
addlib( twolame twolame LIBTWOLAME NO YES "twolame >= 0.3.13" )
|
2020-02-03 06:39:43 +00:00
|
|
|
|