Skip to content

Commit

Permalink
SDL use static libraries (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuguohua authored Aug 25, 2023
1 parent 795d74c commit 24253d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ set_target_properties(GLESv2 PROPERTIES

add_library(SDL2 SHARED IMPORTED GLOBAL)
set_target_properties(SDL2 PROPERTIES
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2-2.0.0.dylib
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2.a
)

set(se_libs_name)
Expand Down Expand Up @@ -211,6 +211,9 @@ list(APPEND CC_EXTERNAL_LIBS
webp
curl
SDL2
# sdl2 depends on the following two libraries.
"-framework IOKit"
"-framework Carbon"
${glslang_libs_name}
${spirv-cross_libs_name}
${tbb_libs_name}
Expand Down
Binary file removed mac/libs/libSDL2-2.0.0.dylib
Binary file not shown.
Binary file added mac/libs/libSDL2.a
Binary file not shown.

0 comments on commit 24253d9

Please sign in to comment.