1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 16:39:30 +02:00

Fix audacity.desktop file generation (CMake) (#436)

This commit is contained in:
Raphael Graf 2020-02-29 16:54:42 +01:00 committed by GitHub
parent caab2a56c9
commit 805026728a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1272,34 +1272,28 @@ else()
# Create the MIMETYPES list
list( APPEND MIMETYPES
$<$<BOOL:${USE_FFMPEG}>:
audio/aac
$<$<BOOL:${USE_FFMPEG}>:audio/aac
audio/ac3
audio/mp4
audio/x-ms-wma
video/mpeg
>
$<$<BOOL:${USE_LIBFLAC}>:
audio/flac
audio/x-flac
>
$<$<BOOL:${USE_LIBMAD}>:
audio/mpeg
>
$<$<BOOL:${USE_SNDFILE}>:
audio/basic
video/mpeg>
$<$<BOOL:${USE_LIBFLAC}>:audio/flac
audio/x-flac>
$<$<BOOL:${USE_LIBMAD}>:audio/mpeg>
$<$<BOOL:${USE_SNDFILE}>:audio/basic
audio/x-aiff
audio/x-wav
>
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:
application/ogg
audio/x-vorbis+ogg
>
audio/x-wav>
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:application/ogg
audio/x-vorbis+ogg>
)
# Create the desktop file
set( AUDACITY_NAME "${_EXE}" )
configure_file( audacity.desktop.in ${_INTDIR}/audacity.desktop )
file( GENERATE
OUTPUT ${_INTDIR}/audacity.desktop
INPUT ${_INTDIR}/audacity.desktop
)
# Create the script to copy required wxWidgets libraries
if( ${_OPT}use_wxwidgets STREQUAL "local" )