Various fixes to CMake build
Mostly a result of not defining __WXMSW__, but the portmixer cmakelist wasn't looking for the right portaudio variables.
This commit is contained in:
parent
b67c82171c
commit
53840f7a3e
|
@ -163,7 +163,7 @@ addlib( libid3tag id3tag LIBID3TAG NO YES "id3tag >= 0.15.1
|
|||
addlib( libmad mad LIBMAD NO YES "mad >= 2.3" )
|
||||
addlib( libnyquist nyquist NYQUIST NO YES "" )
|
||||
addlib( libvamp vamp VAMP NO YES "vamp >= 2.5" "vamp-hostsdk >= 2.5" )
|
||||
addlib( libogg ogg LIBVORBIS NO YES "ogg >= 1.3.1" )
|
||||
addlib( libogg ogg LIBOGG NO YES "ogg >= 1.3.1" )
|
||||
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" )
|
||||
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" )
|
||||
|
|
|
@ -29,7 +29,7 @@ if( ${_OPT}use_ffmpeg STREQUAL "off" )
|
|||
message( STATUS "Disabling '${name}' library" )
|
||||
else()
|
||||
# Let the Audacity target know that this library will be used.
|
||||
set( USE_${symbol} ON CACHE INTERNAL USE_${symbol} )
|
||||
set( USE_${symbol} ON CACHE INTERNAL "" )
|
||||
|
||||
# Only need to look up the package if we're linking to it
|
||||
set( isdyn YES )
|
||||
|
|
|
@ -10,28 +10,28 @@ list( APPEND SOURCES
|
|||
${TARGET_ROOT}/src/px_win_common.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_ds}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_ds}>:
|
||||
${TARGET_ROOT}/src/px_win_ds.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_wasapi}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_wasapi}>:
|
||||
${TARGET_ROOT}/src/px_win_wasapi.c
|
||||
${TARGET_ROOT}/src/px_win_endpoint.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_wmme}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_wmme}>:
|
||||
${TARGET_ROOT}/src/px_win_wmme.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_coreaudio}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_coreaudio}>:
|
||||
${TARGET_ROOT}/src/px_mac_coreaudio.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_alsa}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_alsa}>:
|
||||
${TARGET_ROOT}/src/px_linux_alsa.c
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_oss}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_oss}>:
|
||||
${TARGET_ROOT}/src/px_unix_oss.c
|
||||
>
|
||||
)
|
||||
|
@ -45,27 +45,27 @@ list( APPEND INCLUDES
|
|||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
$<$<BOOL:${use_pa_ds}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_ds}>:
|
||||
PX_USE_WIN_DSOUND=1
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_wasapi}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_wasapi}>:
|
||||
PX_USE_WIN_WASAPI=1
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_wmme}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_wmme}>:
|
||||
PX_USE_WIN_MME=1
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_coreaudio}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_coreaudio}>:
|
||||
PX_USE_MAC_COREAUDIO=1
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_alsa}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_alsa}>:
|
||||
PX_USE_LINUX_ALSA=1
|
||||
>
|
||||
|
||||
$<$<BOOL:${use_pa_oss}>:
|
||||
$<$<BOOL:${${_OPT}use_pa_oss}>:
|
||||
PX_USE_UNIX_OSS=1
|
||||
>
|
||||
)
|
||||
|
|
|
@ -167,6 +167,7 @@ elseif( "${toolkit}" MATCHES ".*gtk4.*" )
|
|||
elseif( "${toolkit}" MATCHES ".*msw.*" )
|
||||
set( wxTOOLKIT "MSW" CACHE INTERNAL "" )
|
||||
set( wxIS_WIN YES CACHE INTERNAL "" )
|
||||
list( APPEND DEFINES __WXMSW__=1 )
|
||||
elseif( "${toolkit}" MATCHES ".*osx.*" )
|
||||
set( wxTOOLKIT "MAC" CACHE INTERNAL "" )
|
||||
set( wxIS_MAC YES CACHE INTERNAL "" )
|
||||
|
|
|
@ -578,7 +578,7 @@ list( APPEND SOURCES
|
|||
export/ExportMP2.cpp
|
||||
>
|
||||
|
||||
$<$<BOOL:${USE_LIBVORBIS}>:
|
||||
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:
|
||||
export/ExportOGG.cpp
|
||||
>
|
||||
|
||||
|
@ -627,7 +627,7 @@ list( APPEND SOURCES
|
|||
import/ImportMP3.cpp
|
||||
>
|
||||
|
||||
$<$<BOOL:${USE_LIBVORBIS}>:
|
||||
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:
|
||||
import/ImportOGG.cpp
|
||||
>
|
||||
|
||||
|
@ -1043,7 +1043,7 @@ list( APPEND LIBRARIES
|
|||
$<$<BOOL:${USE_LIBFLAC}>:libflac>
|
||||
|
||||
$<$<BOOL:${USE_LIBMAD}>:libmad>
|
||||
$<$<BOOL:${USE_LIBVORBIS}>:libogg>
|
||||
$<$<BOOL:${USE_LIBOGG}>:libogg>
|
||||
$<$<BOOL:${USE_LIBVORBIS}>:libvorbis>
|
||||
# $<$<BOOL:${USE_LIBVORBIS}>:libvorbis>
|
||||
# $<$<BOOL:${USE_LIBVORBIS}>:libvorbisenc>
|
||||
|
@ -1085,7 +1085,7 @@ cmd_option(
|
|||
"Use VST2 plug-in support [on, off]"
|
||||
ON
|
||||
)
|
||||
set( USE_VST ${${_OPT}enable_vst} )
|
||||
set( USE_VST ${${_OPT}use_vst} )
|
||||
|
||||
set( AUDACITY_NAME "Audacity" )
|
||||
set( BUILDING_AUDACITY 1 )
|
||||
|
@ -1181,11 +1181,10 @@ elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
|||
|
||||
# Handle Audio Units option
|
||||
cmd_option(
|
||||
${_OPT}enable_audiounits
|
||||
${_OPT}use_audiounits
|
||||
"Enable Audio Unit plug-in support"
|
||||
ON
|
||||
)
|
||||
set( USE_AUDIO_UNITS ${${_OPT}enable_audiounits} )
|
||||
|
||||
set_target_properties(
|
||||
${TARGET}
|
||||
|
@ -1297,7 +1296,7 @@ elseif( CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD" )
|
|||
audio/x-aiff
|
||||
audio/x-wav
|
||||
>
|
||||
$<$<AND:$<BOOL:${USE_LIBOGG},${USE_LIBVORBIS}>>:
|
||||
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:
|
||||
application/ogg
|
||||
audio/x-vorbis+ogg
|
||||
>
|
||||
|
|
|
@ -81,9 +81,6 @@
|
|||
/* Define if Nyquist support should be enabled */
|
||||
#cmakedefine USE_NYQUIST 1
|
||||
|
||||
/* Define if midi support should be enabled */
|
||||
#cmakedefine USE_PORTMIDI 1
|
||||
|
||||
/* Define if PortMixer support should be enabled */
|
||||
#cmakedefine USE_PORTMIXER 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue