Compare commits

...

3 Commits

Author SHA1 Message Date
06d7148408 add fallback to dynamic toxcore 2024-04-27 13:56:06 +02:00
33875cb58b string cant be empty 2024-04-27 13:53:26 +02:00
07070dd2d4 update sdl dep 2024-04-27 13:44:34 +02:00
5 changed files with 13 additions and 8 deletions

View File

@ -9,7 +9,8 @@ if (NOT TARGET SDL3::SDL3)
FetchContent_Declare(SDL3
GIT_REPOSITORY https://github.com/libsdl-org/SDL
GIT_TAG 0429f5d6a36fc35b551bcc2acd4a40c2db6dab82 # tip when looking
#GIT_TAG 0429f5d6a36fc35b551bcc2acd4a40c2db6dab82 # tip when looking
GIT_TAG 14f584a94bfd49cf1524db75bf3c419fdf9436cd # tip 26-04-2024
FIND_PACKAGE_ARGS # for the future
)
FetchContent_MakeAvailable(SDL3)

View File

@ -12,7 +12,11 @@ add_subdirectory(./c-toxcore)
# the sad case
add_library(toxcore INTERFACE)
target_link_libraries(toxcore INTERFACE toxcore_static)
if (TARGET toxcore_static)
target_link_libraries(toxcore INTERFACE toxcore_static)
else()
target_link_libraries(toxcore INTERFACE toxcore_shared)
endif()
# HACK: "install" api headers into binary dir
configure_file(

8
flake.lock generated
View File

@ -63,17 +63,17 @@
"sdl3": {
"flake": false,
"locked": {
"lastModified": 1713196978,
"narHash": "sha256-qn6YChphDi2p1GRwAEno6QI1rDNEmly+tElzDJnOcvg=",
"lastModified": 1714100414,
"narHash": "sha256-eaiVG5WJoLnFvdpYBR+DF+YuMu5C3lA1SKuzN8+hfDM=",
"owner": "libsdl-org",
"repo": "SDL",
"rev": "0429f5d6a36fc35b551bcc2acd4a40c2db6dab82",
"rev": "14f584a94bfd49cf1524db75bf3c419fdf9436cd",
"type": "github"
},
"original": {
"owner": "libsdl-org",
"repo": "SDL",
"rev": "0429f5d6a36fc35b551bcc2acd4a40c2db6dab82",
"rev": "14f584a94bfd49cf1524db75bf3c419fdf9436cd",
"type": "github"
}
},

View File

@ -11,7 +11,7 @@
flake = false;
};
sdl3 = {
url = "github:libsdl-org/SDL/0429f5d6a36fc35b551bcc2acd4a40c2db6dab82"; # keep in sync this cmake
url = "github:libsdl-org/SDL/14f584a94bfd49cf1524db75bf3c419fdf9436cd"; # keep in sync this cmake
flake = false;
};
sdl3_image = {

View File

@ -293,7 +293,7 @@ bool renderContactBig(
ImGui::TextUnformatted(slt->text.c_str(), slt->text.c_str() + slt->first_line_length);
ImGui::PopStyleColor();
} else {
ImGui::TextDisabled(""); // or dummy?
ImGui::TextDisabled(" "); // or dummy?
}
}