mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Fix audacity.desktop file generation (CMake) (#436)
This commit is contained in:
parent
caab2a56c9
commit
805026728a
@ -1272,34 +1272,28 @@ else()
|
|||||||
|
|
||||||
# Create the MIMETYPES list
|
# Create the MIMETYPES list
|
||||||
list( APPEND MIMETYPES
|
list( APPEND MIMETYPES
|
||||||
$<$<BOOL:${USE_FFMPEG}>:
|
$<$<BOOL:${USE_FFMPEG}>:audio/aac
|
||||||
audio/aac
|
|
||||||
audio/ac3
|
audio/ac3
|
||||||
audio/mp4
|
audio/mp4
|
||||||
audio/x-ms-wma
|
audio/x-ms-wma
|
||||||
video/mpeg
|
video/mpeg>
|
||||||
>
|
$<$<BOOL:${USE_LIBFLAC}>:audio/flac
|
||||||
$<$<BOOL:${USE_LIBFLAC}>:
|
audio/x-flac>
|
||||||
audio/flac
|
$<$<BOOL:${USE_LIBMAD}>:audio/mpeg>
|
||||||
audio/x-flac
|
$<$<BOOL:${USE_SNDFILE}>:audio/basic
|
||||||
>
|
|
||||||
$<$<BOOL:${USE_LIBMAD}>:
|
|
||||||
audio/mpeg
|
|
||||||
>
|
|
||||||
$<$<BOOL:${USE_SNDFILE}>:
|
|
||||||
audio/basic
|
|
||||||
audio/x-aiff
|
audio/x-aiff
|
||||||
audio/x-wav
|
audio/x-wav>
|
||||||
>
|
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:application/ogg
|
||||||
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:
|
audio/x-vorbis+ogg>
|
||||||
application/ogg
|
|
||||||
audio/x-vorbis+ogg
|
|
||||||
>
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the desktop file
|
# Create the desktop file
|
||||||
set( AUDACITY_NAME "${_EXE}" )
|
set( AUDACITY_NAME "${_EXE}" )
|
||||||
configure_file( audacity.desktop.in ${_INTDIR}/audacity.desktop )
|
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
|
# Create the script to copy required wxWidgets libraries
|
||||||
if( ${_OPT}use_wxwidgets STREQUAL "local" )
|
if( ${_OPT}use_wxwidgets STREQUAL "local" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user