Skip to content

Commit

Permalink
[sdl2-image] fix dynamic build on macOS (#26445)
Browse files Browse the repository at this point in the history
* [sdl2-image] fix dynamic build on macOS

* update versions of sdl2-image
  • Loading branch information
kambala-decapitator authored Aug 22, 2022
1 parent 973fa17 commit 3f7e013
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ports/sdl2-image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ if (APPLE)
target_compile_options(SDL2_image BEFORE PRIVATE
"-x" "objective-c"
)
target_link_libraries(SDL2_image PRIVATE
"-framework CoreFoundation"
"-framework CoreGraphics"
"-framework CoreServices"
"-framework Foundation"
"-framework ImageIO"
)
endif()

set_target_properties(SDL2_image PROPERTIES DEFINE_SYMBOL DLL_EXPORT)
Expand Down
2 changes: 1 addition & 1 deletion ports/sdl2-image/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sdl2-image",
"version": "2.0.5",
"port-version": 6,
"port-version": 7,
"description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV",
"homepage": "https://www.libsdl.org/projects/SDL_image",
"license": "Zlib",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6518,7 +6518,7 @@
},
"sdl2-image": {
"baseline": "2.0.5",
"port-version": 6
"port-version": 7
},
"sdl2-mixer": {
"baseline": "2.6.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/sdl2-image.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4890f12d4639bf57d7eac19097b5903c06574184",
"version": "2.0.5",
"port-version": 7
},
{
"git-tree": "e1ed993b97bc76d5a8abdf4e9e8e148903078a70",
"version": "2.0.5",
Expand Down

0 comments on commit 3f7e013

Please sign in to comment.