2021-05-21 15:58:48 +00:00
|
|
|
add_conan_lib(
|
|
|
|
ZLIB
|
|
|
|
zlib/1.2.11
|
|
|
|
REQUIRED
|
2021-05-25 13:05:46 +00:00
|
|
|
PKG_CONFIG "zlib >= 1.2.11"
|
2021-05-21 15:58:48 +00:00
|
|
|
INTERFACE_NAME ZLIB::ZLIB
|
|
|
|
OPTION_NAME zlib
|
|
|
|
CONAN_OPTIONS
|
|
|
|
zlib:shared=True
|
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
|
|
|
)
|
2018-03-31 18:45:37 +00:00
|
|
|
|
2021-05-21 15:58:48 +00:00
|
|
|
add_conan_lib(
|
|
|
|
expat
|
2021-05-26 15:14:11 +00:00
|
|
|
expat/2.2.9@audacity/stable
|
2021-05-21 15:58:48 +00:00
|
|
|
REQUIRED
|
2021-05-25 13:05:46 +00:00
|
|
|
PKG_CONFIG "expat >= 2.1.0"
|
2021-05-21 15:58:48 +00:00
|
|
|
CONAN_OPTIONS
|
|
|
|
expat:shared=True
|
2021-05-17 16:13:12 +00:00
|
|
|
)
|
|
|
|
|
2021-05-24 20:11:05 +00:00
|
|
|
set( wx_zlib "zlib" )
|
2021-05-28 21:32:01 +00:00
|
|
|
|
2021-05-24 20:11:05 +00:00
|
|
|
set( wx_png "libpng" )
|
2021-05-28 21:32:01 +00:00
|
|
|
set( wx_jpeg "libjpeg-turbo")
|
|
|
|
set( wx_tiff "off" )
|
|
|
|
|
2021-05-24 20:11:05 +00:00
|
|
|
set( id3tag_zlib "conan" )
|
2021-05-21 15:58:48 +00:00
|
|
|
|
2021-05-24 20:11:05 +00:00
|
|
|
if ( ${_OPT}use_zlib STREQUAL "system" )
|
|
|
|
set( wx_zlib "sys" )
|
2021-05-21 15:58:48 +00:00
|
|
|
# To prevent linking conflicts - we need to use system libpng as well.
|
|
|
|
# wxWdigets will attempt to resolve it using find_package
|
2021-05-28 21:32:01 +00:00
|
|
|
find_required_package( PNG "libpng-dev" )
|
2021-05-24 20:11:05 +00:00
|
|
|
set( wx_png "sys" )
|
2021-05-28 21:32:01 +00:00
|
|
|
# And, for consistency
|
|
|
|
find_required_package( JPEG "libjpeg-turbo8-dev" )
|
|
|
|
set( wx_jpeg "sys" )
|
2021-05-24 20:11:05 +00:00
|
|
|
|
|
|
|
set( id3tag_zlib "system" )
|
2021-05-21 15:58:48 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(wx_expat "expat")
|
|
|
|
|
|
|
|
if (${_OPT}use_expat STREQUAL "system")
|
|
|
|
set(wx_expat "sys")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
wxWidgets
|
|
|
|
wxwidgets/3.1.3-audacity
|
|
|
|
REQUIRED
|
|
|
|
ALWAYS_ALLOW_CONAN_FALLBACK
|
|
|
|
OPTION_NAME wxwidgets
|
|
|
|
FIND_PACKAGE_OPTIONS COMPONENTS adv base core html qa xml net
|
|
|
|
INTERFACE_NAME wxwidgets::wxwidgets
|
|
|
|
CONAN_OPTIONS
|
|
|
|
wxwidgets:shared=True
|
|
|
|
wxwidgets:zlib=${wx_zlib}
|
|
|
|
wxwidgets:expat=${wx_expat}
|
|
|
|
wxwidgets:compatibility=3.0
|
|
|
|
wxwidgets:png=${wx_png}
|
2021-05-28 21:32:01 +00:00
|
|
|
wxwidgets:jpeg=${wx_jpeg}
|
|
|
|
wxwidgets:tiff=${wx_tiff}
|
2021-05-21 15:58:48 +00:00
|
|
|
wxwidgets:secretstore=False
|
|
|
|
wxwidgets:opengl=False
|
|
|
|
wxwidgets:propgrid=False
|
|
|
|
wxwidgets:ribbon=False
|
|
|
|
wxwidgets:richtext=False
|
|
|
|
wxwidgets:stc=False
|
|
|
|
wxwidgets:webview=False
|
|
|
|
wxwidgets:help=False
|
|
|
|
wxwidgets:html_help=False
|
|
|
|
wxwidgets:fs_inet=False
|
|
|
|
wxwidgets:protocol=False
|
2021-05-28 21:32:01 +00:00
|
|
|
# Building with SIMD requires a huge number of build dependencies
|
|
|
|
# Probably this will be enabled in the future
|
|
|
|
libjpeg-turbo:SIMD=False
|
2021-05-21 15:58:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
libmp3lame
|
|
|
|
libmp3lame/3.100
|
|
|
|
REQUIRED
|
|
|
|
INTERFACE_NAME libmp3lame::libmp3lame
|
2021-05-25 13:05:46 +00:00
|
|
|
PKG_CONFIG "lame >= 3.100"
|
2021-05-21 15:58:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
libid3tag
|
2021-05-24 20:11:05 +00:00
|
|
|
libid3tag/0.15.2b@audacity/stable
|
2021-05-21 15:58:48 +00:00
|
|
|
OPTION_NAME id3tag
|
2021-05-25 13:05:46 +00:00
|
|
|
PKG_CONFIG "id3tag >= 0.15.1b"
|
2021-05-24 20:11:05 +00:00
|
|
|
CONAN_OPTIONS
|
|
|
|
libid3tag:zlib=${id3tag_zlib}
|
2021-05-21 15:58:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
libmad
|
2021-05-24 20:11:05 +00:00
|
|
|
libmad/0.15.2b@audacity/stable
|
2021-05-21 15:58:48 +00:00
|
|
|
OPTION_NAME mad
|
2021-05-25 13:05:46 +00:00
|
|
|
PKG_CONFIG "mad >= 0.15.1b"
|
|
|
|
)
|
|
|
|
|
|
|
|
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
|
|
|
set( curl_ssl "darwinssl" )
|
|
|
|
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
|
|
set( curl_ssl "schannel")
|
|
|
|
else()
|
|
|
|
set ( curl_ssl "openssl" )
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
ThreadPool
|
|
|
|
threadpool/20140926
|
|
|
|
REQUIRED
|
|
|
|
ALWAYS_ALLOW_CONAN_FALLBACK
|
|
|
|
)
|
|
|
|
|
2021-05-26 13:35:12 +00:00
|
|
|
if( ${_OPT}has_networking )
|
|
|
|
|
|
|
|
add_conan_lib(
|
|
|
|
CURL
|
|
|
|
libcurl/7.75.0
|
|
|
|
REQUIRED
|
|
|
|
OPTION_NAME curl
|
|
|
|
PKG_CONFIG "libcurl >= 7.68.0"
|
|
|
|
INTERFACE_NAME CURL::libcurl
|
|
|
|
FIND_PACKAGE_OPTIONS
|
|
|
|
CONAN_OPTIONS
|
|
|
|
libcurl:with_ssl=${curl_ssl}
|
|
|
|
libcurl:shared=True
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
2021-05-21 15:58:48 +00:00
|
|
|
|
2021-06-02 14:11:52 +00:00
|
|
|
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows")
|
|
|
|
add_conan_lib(
|
|
|
|
libuuid
|
|
|
|
libuuid/1.0.3
|
|
|
|
REQUIRED
|
|
|
|
OPTION_NAME uuid
|
|
|
|
PKG_CONFIG "uuid"
|
|
|
|
INTERFACE_NAME libuuid::libuuid
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-06-08 10:40:08 +00:00
|
|
|
add_conan_lib(
|
|
|
|
RapidJSON
|
|
|
|
rapidjson/1.1.0
|
|
|
|
REQUIRED
|
|
|
|
)
|
|
|
|
|
2021-05-21 15:58:48 +00:00
|
|
|
set_conan_vars_to_parent()
|
|
|
|
|
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-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( 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" )
|