[fluidsynth] enable sound drivers on Mac/Linux build (#24667)

* enable fluidsynth output drivers on Linux and Mac

* ensure Fluidsynth drivers are enabled on Windows

* update versions for fluidsynth 2.2.6#2
This commit is contained in:
Hamish Moffatt 2022-05-17 07:07:38 +10:00 committed by GitHub
parent 8652ccf0ee
commit 306c9a9e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 3 deletions

View File

@ -31,12 +31,29 @@ vcpkg_check_features(
sndfile enable-libsndfile
)
set(feature_list dbus jack libinstpatch midishare opensles oboe oss sdl2 pulseaudio readline lash alsa systemd coreaudio coremidi dart)
set(feature_list dbus jack libinstpatch midishare opensles oboe oss sdl2 pulseaudio readline lash systemd dart)
vcpkg_list(SET FEATURE_OPTIONS)
foreach(_feature IN LISTS feature_list)
list(APPEND FEATURE_OPTIONS -Denable-${_feature}:BOOL=OFF)
endforeach()
# enable platform-specific features, and force the build to fail if the
# required libraries are not found
list(APPEND FEATURE_OPTIONS -Denable-dsound=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -Denable-wasapi=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -Denable-waveout=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -Denable-winmidi=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -DHAVE_MMSYSTEM_H=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -DHAVE_DSOUND_H=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -DHAVE_WASAPI_HEADERS=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -DHAVE_OBJBASE_H=${VCPKG_TARGET_IS_WINDOWS})
list(APPEND FEATURE_OPTIONS -Denable-coreaudio=${VCPKG_TARGET_IS_OSX})
list(APPEND FEATURE_OPTIONS -Denable-coremidi=${VCPKG_TARGET_IS_OSX})
list(APPEND FEATURE_OPTIONS -DCOREAUDIO_FOUND=${VCPKG_TARGET_IS_OSX})
list(APPEND FEATURE_OPTIONS -DCOREMIDI_FOUND=${VCPKG_TARGET_IS_OSX})
list(APPEND FEATURE_OPTIONS -Denable-alsa=${VCPKG_TARGET_IS_LINUX})
list(APPEND FEATURE_OPTIONS -DALSA_FOUND=${VCPKG_TARGET_IS_LINUX})
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/${PORT}")
vcpkg_find_acquire_program(PKGCONFIG)

View File

@ -1,11 +1,15 @@
{
"name": "fluidsynth",
"version": "2.2.6",
"port-version": 1,
"port-version": 2,
"description": "FluidSynth reads and handles MIDI events from the MIDI input device. It is the software analogue of a MIDI synthesizer. FluidSynth can also play midifiles using a Soundfont.",
"homepage": "https://github.com/FluidSynth/fluidsynth",
"license": "LGPL-2.1-or-later",
"dependencies": [
{
"name": "alsa",
"platform": "linux"
},
{
"name": "fluidsynth",
"host": true,

View File

@ -2262,7 +2262,7 @@
},
"fluidsynth": {
"baseline": "2.2.6",
"port-version": 1
"port-version": 2
},
"fmem": {
"baseline": "c-libs-2ccee3d2fb",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ad0fa73283950f13ecfff01deb0688c30a57c330",
"version": "2.2.6",
"port-version": 2
},
{
"git-tree": "e5c0f85546fe88c0e9aaf67734a929f2b717b1ef",
"version": "2.2.6",