mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
[sdl2-mixer] Fix link mpg123 error (#22049)
* [sdl2-mixer] Fix link mpg123 error * update version Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
parent
1bca1f0203
commit
50fd3d9957
@ -12,8 +12,9 @@ set(SDL_MIXER_DEFINES MUSIC_WAV)
|
||||
|
||||
# MP3 support
|
||||
if(SDL_MIXER_ENABLE_MP3)
|
||||
find_package(mpg123 CONFIG REQUIRED)
|
||||
set(MPG123_LIBRARY MPG123::libmpg123)
|
||||
find_path(MPG123_INCLUDE_DIR mpg123.h)
|
||||
find_library(MPG123_LIBRARY NAMES libmpg123 mpg123)
|
||||
list(APPEND SDL_MIXER_INCLUDES ${MPG123_INCLUDE_DIR})
|
||||
list(APPEND SDL_MIXER_DEFINES MUSIC_MP3_MPG123)
|
||||
list(APPEND SDL_MIXER_LIBRARIES ${MPG123_LIBRARY})
|
||||
if (SDL_DYNAMIC_LOAD)
|
||||
@ -24,8 +25,9 @@ endif()
|
||||
|
||||
# FLAC support
|
||||
if(SDL_MIXER_ENABLE_FLAC)
|
||||
find_package(flac CONFIG REQUIRED)
|
||||
set(FLAC_LIBRARY FLAC::FLAC)
|
||||
find_path(FLAC_INCLUDE_DIR FLAC/all.h)
|
||||
find_library(FLAC_LIBRARY FLAC)
|
||||
list(APPEND SDL_MIXER_INCLUDES ${FLAC_INCLUDE_DIR})
|
||||
list(APPEND SDL_MIXER_DEFINES MUSIC_FLAC)
|
||||
list(APPEND SDL_MIXER_LIBRARIES ${FLAC_LIBRARY})
|
||||
if (SDL_DYNAMIC_LOAD)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sdl2-mixer",
|
||||
"version": "2.0.4",
|
||||
"port-version": 15,
|
||||
"port-version": 16,
|
||||
"description": "Multi-channel audio mixer library for SDL.",
|
||||
"homepage": "https://www.libsdl.org/projects/SDL_mixer",
|
||||
"dependencies": [
|
||||
|
@ -6222,7 +6222,7 @@
|
||||
},
|
||||
"sdl2-mixer": {
|
||||
"baseline": "2.0.4",
|
||||
"port-version": 15
|
||||
"port-version": 16
|
||||
},
|
||||
"sdl2-net": {
|
||||
"baseline": "2.0.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "23eb6562f5153eb39a84eb2673d5dc9bd2ce78aa",
|
||||
"version": "2.0.4",
|
||||
"port-version": 16
|
||||
},
|
||||
{
|
||||
"git-tree": "981b981d938287223eb7ebbe365cfbb371ba71ef",
|
||||
"version": "2.0.4",
|
||||
|
Loading…
Reference in New Issue
Block a user