macOS: Bundle fluidsynth and ghostscript (#3250)

* macOS: Build fixes for fluidsynth and ghostscript to ensure they get detected and bundled. Add required packages for build.

* macOS: Don't link against fluidsynth and only bundle if detected.

---------

Co-authored-by: cold-brewed <cold-brewed@users.noreply.github.com>
This commit is contained in:
cold-brewed
2023-04-14 13:48:14 -04:00
committed by GitHub
parent 12f5e06b92
commit 7bc213a954
4 changed files with 37 additions and 7 deletions

View File

@@ -85,6 +85,12 @@ if(RTMIDI)
endif()
if(FLUIDSYNTH)
if(APPLE)
find_library(FLUIDSYNTH_LIB fluidsynth)
if (NOT FLUIDSYNTH_LIB)
message(WARNING "Could not find fluid synth. The library will not be bundled and any related features will not work.")
endif()
endif ()
target_compile_definitions(snd PRIVATE USE_FLUIDSYNTH)
target_sources(snd PRIVATE midi_fluidsynth.c)
endif()