1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-28 00:00:18 +01:00

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:
Leland Lucius
2020-02-19 10:53:50 -06:00
parent b67c82171c
commit 53840f7a3e
6 changed files with 21 additions and 24 deletions

View File

@@ -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" )

View File

@@ -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 )

View File

@@ -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
>
)

View File

@@ -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 "" )