File: DependenciesList.cmake

package info (click to toggle)
audacity 3.7.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 125,252 kB
  • sloc: cpp: 358,238; ansic: 75,458; lisp: 7,761; sh: 3,410; python: 1,503; xml: 1,385; perl: 854; makefile: 122
file content (91 lines) | stat: -rw-r--r-- 2,703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# conan_package_options variable can be used to pass additional options to the conan install command.
if( NOT CMAKE_SYSTEM_NAME MATCHES "Windows|Darwin" )
   if( NOT libjpeg_turbo_probed )
      message(STATUS "Probing for libjpeg-turbo 3")
      find_package(libjpeg-turbo 3 QUIET)
      set(libjpeg_turbo_probed True CACHE INTERNAL "")
      mark_as_advanced(libjpeg_turbo_probed)

      if(TARGET libjpeg-turbo::jpeg AND NOT ${_OPT}force_local_jpeg)
         message(STATUS "Found libjpeg-turbo 3")
         message(STATUS "Forcing system version of libjpeg-turbo 3")
         set( ${_OPT}use_jpeg "system" CACHE STRING "Use system libjpeg-turbo" FORCE )
      endif()
   endif()
endif()

audacity_find_package(ZLIB REQUIRED)
audacity_find_package(PNG QUIET CONAN_PACKAGE_NAME libpng)
audacity_find_package(JPEG QUIET CONAN_PACKAGE_NAME libjpeg-turbo)

audacity_find_package(EXPAT REQUIRED)

audacity_find_package(wxWidgets REQUIRED FIND_PACKAGE_OPTIONS COMPONENTS adv base core html qa xml net)

audacity_find_package(libmp3lame REQUIRED)

audacity_find_package(mpg123 OPTION_NAME libmpg123)

audacity_find_package(libid3tag)

audacity_find_package(WavPack)
audacity_find_package(Ogg OPTION_NAME libogg)
audacity_find_package(FLAC OPTION_NAME libflac)
audacity_find_package(Opus OPTION_NAME libopus)
audacity_find_package(opusfile OPTION_NAME opusfile)
audacity_find_package(Vorbis OPTION_NAME libvorbis)
audacity_find_package(SndFile CONAN_PACKAGE_NAME libsndfile OPTION_NAME libsndfile)

# Allow building with ASIO for windows users
cmake_dependent_option(
   ${_OPT}has_asio_support
   "Build Audacity with ASIO support"
   False
   "WIN32 AND IS_64BIT"
   False
)

# Conan expects Python boolean, CMake will convert values to
# ON/OFF

if( ${_OPT}has_asio_support )
   list(APPEND conan_package_options "use_asio=True")
endif()

if(UNIX AND NOT APPLE)
   find_package(JACK QUIET)

   if( JACK_FOUND )
      list(APPEND conan_package_options  "use_jack=True")
   endif()
endif()

audacity_find_package(PortAudio REQUIRED)

if( ${_OPT}has_networking )
   audacity_find_package(ThreadPool REQUIRED)
   audacity_find_package(CURL REQUIRED CONAN_PACKAGE_NAME libcurl)
endif()

audacity_find_package(RapidJSON REQUIRED)

audacity_find_package(PortMidi OPTION_NAME midi)

if(${_OPT}has_crashreports)
   audacity_find_package(breakpad REQUIRED)
   if(${_OPT}crashreport_backend STREQUAL crashpad)
      audacity_find_package(crashpad REQUIRED)
   endif()
endif()

if(${_OPT}has_vst3)
   audacity_find_package(vst3sdk REQUIRED)
endif()

if( ${_OPT}has_tests )
   audacity_find_package(Catch2 REQUIRED)
endif()

if(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows")
   find_package(libuuid REQUIRED)
endif()