mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Modernize Pipewire cmake usage
This commit is contained in:
parent
d47f53518e
commit
cfc5d722ec
3 changed files with 14 additions and 8 deletions
|
@ -566,8 +566,11 @@ endif ( enable-jack )
|
|||
|
||||
unset ( PIPEWIRE_SUPPORT CACHE )
|
||||
if ( enable-pipewire )
|
||||
pkg_check_modules ( PIPEWIRE libpipewire-0.3 )
|
||||
pkg_check_modules ( PIPEWIRE libpipewire-0.3 IMPORTED_TARGET )
|
||||
set ( PIPEWIRE_SUPPORT ${PIPEWIRE_FOUND} )
|
||||
if ( PIPEWIRE_SUPPORT )
|
||||
list( APPEND PC_REQUIRES_PRIV "libpipewire-0.3")
|
||||
endif()
|
||||
else ( enable-pipewire )
|
||||
unset_pkg_config ( PIPEWIRE )
|
||||
endif ( enable-pipewire )
|
||||
|
|
|
@ -31,12 +31,6 @@ else ( JACK_SUPPORT )
|
|||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} JACK: no\n" )
|
||||
endif ( JACK_SUPPORT )
|
||||
|
||||
if ( PIPEWIRE_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PipeWire: yes\n" )
|
||||
else ( PIPEWIRE_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PipeWire: no\n" )
|
||||
endif ( PIPEWIRE_SUPPORT )
|
||||
|
||||
if ( MIDISHARE_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} MidiShare: yes\n" )
|
||||
else ( MIDISHARE_SUPPORT )
|
||||
|
@ -67,6 +61,12 @@ else ( OSS_SUPPORT )
|
|||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OSS: no\n" )
|
||||
endif ( OSS_SUPPORT )
|
||||
|
||||
if ( PIPEWIRE_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PipeWire: yes\n" )
|
||||
else ( PIPEWIRE_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PipeWire: no\n" )
|
||||
endif ( PIPEWIRE_SUPPORT )
|
||||
|
||||
if ( PORTAUDIO_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PortAudio: yes\n" )
|
||||
else ( PORTAUDIO_SUPPORT )
|
||||
|
|
|
@ -328,7 +328,6 @@ endif ( MACOSX_FRAMEWORK )
|
|||
# Object Libraries may "link" to other libraries to get usage requirements,
|
||||
# but since they do not have a link step nothing is done with their object files.
|
||||
target_link_libraries ( libfluidsynth-OBJ PUBLIC
|
||||
${PIPEWIRE_LIBRARIES}
|
||||
${DART_LIBS}
|
||||
${COREAUDIO_LIBS}
|
||||
${COREMIDI_LIBS}
|
||||
|
@ -373,6 +372,10 @@ if ( TARGET PkgConfig::JACK AND JACK_SUPPORT )
|
|||
target_link_libraries ( libfluidsynth-OBJ PUBLIC PkgConfig::JACK )
|
||||
endif()
|
||||
|
||||
if ( TARGET PkgConfig::PIPEWIRE AND PIPEWIRE_SUPPORT )
|
||||
target_link_libraries ( libfluidsynth-OBJ PUBLIC PkgConfig::PIPEWIRE )
|
||||
endif()
|
||||
|
||||
if ( TARGET PkgConfig::LASH AND LASH_SUPPORT )
|
||||
target_link_libraries ( libfluidsynth-OBJ PUBLIC PkgConfig::LASH )
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue