mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 16:41:14 +02:00
Rework audacity.desktop file creation
In 805026728ab9dab7437d6338cc4b5cac70a6cd9f, Raphael fixed a problem with the generator expressions showing up in the desktop file. But, I redid it without generator expressions altogther to get rid of null/empty mimetype entries. These probably do not matter, but it's no big deal to prevent them.
This commit is contained in:
parent
805026728a
commit
8b184e1172
@ -1270,30 +1270,47 @@ else()
|
||||
set( HAVE_VISIBILITY 1 )
|
||||
configure_file( audacity_config.h.in private/configunix.h )
|
||||
|
||||
# Create the MIMETYPES list
|
||||
list( APPEND MIMETYPES
|
||||
$<$<BOOL:${USE_FFMPEG}>:audio/aac
|
||||
# Build the list of mimetypes
|
||||
#
|
||||
# (Don't use generator expressions since it will leave null/empty
|
||||
# entries in the list.)
|
||||
if( USE_FFMPEG )
|
||||
list( APPEND MIMETYPES
|
||||
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
|
||||
)
|
||||
endif()
|
||||
if( USE_LIBFLAC )
|
||||
list( APPEND MIMETYPES
|
||||
audio/flac
|
||||
audio/x-flac
|
||||
)
|
||||
endif()
|
||||
if( USE_LIBMAD )
|
||||
list( APPEND MIMETYPES
|
||||
audio/mpeg
|
||||
)
|
||||
endif()
|
||||
if( USE_SNDFILE )
|
||||
list( APPEND MIMETYPES
|
||||
audio/basic
|
||||
audio/x-aiff
|
||||
audio/x-wav>
|
||||
$<$<AND:$<BOOL:${USE_LIBOGG}>,$<BOOL:${USE_LIBVORBIS}>>:application/ogg
|
||||
audio/x-vorbis+ogg>
|
||||
)
|
||||
audio/x-wav
|
||||
)
|
||||
endif()
|
||||
if( USE_LIBOGG AND USE_LIBVORBIS )
|
||||
list( APPEND MIMETYPES
|
||||
application/ogg
|
||||
audio/x-vorbis+ogg
|
||||
)
|
||||
endif()
|
||||
|
||||
# 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" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user