Green Sky
557a642ad3
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Failing after 5m17s
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Failing after 6m37s
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Failing after 6m47s
ContinuousIntegration / linux (push) Successful in 4m28s
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Failing after 6m17s
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Failing after 6m28s
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
31 lines
1.4 KiB
CMake
31 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 3.16...3.24 FATAL_ERROR)
|
|
|
|
include(FetchContent)
|
|
|
|
if (NOT TARGET SDL3_image::SDL3_image)
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
# TODO: make pr to make this an option
|
|
set(SDLIMAGE_BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
set(SDLIMAGE_BACKEND_STB OFF CACHE BOOL "" FORCE) # important for security
|
|
set(SDLIMAGE_BACKEND_IMAGEIO OFF CACHE BOOL "" FORCE) # some funky apple cmake bug
|
|
#set(SDLIMAGE_JXL ON CACHE BOOL "" FORCE) # default to off
|
|
set(SDLIMAGE_QOI OFF CACHE BOOL "" FORCE) # we have our own
|
|
set(SDLIMAGE_WEBP OFF CACHE BOOL "" FORCE) # we have our own
|
|
|
|
FetchContent_Declare(SDL3_image
|
|
GIT_REPOSITORY https://github.com/libsdl-org/SDL_image
|
|
# waiting on the imgui pr to get merged so i can update sdl <.<
|
|
#GIT_TAG a45d6e5b84ccc0f3faae6ba7d561709ed600eee7 # tip last check
|
|
#GIT_TAG a34ccf16f961e6d5a480045eb650fc3dddb4bfaa # tip 14-05-2024
|
|
#GIT_TAG 2fc5310a9a2700fc856663200f94edebeb5e554a # tip 28-05-2024
|
|
#GIT_TAG 8eff782fa33d795c9ea1ac42dbe7e17cc9874c78 # tip 09-06-2024
|
|
#GIT_TAG 8abc07df88cc035997e797967ac2f479b0e50981 # tip 18-07-2024
|
|
#GIT_TAG 2a27018eda394a4e005cd8ba6bb3bfd0298809c7 # tip 29-07-2024
|
|
#GIT_TAG c1b272450d306db3845086cc231acae736b92f4f # tip 09-09-2024
|
|
GIT_TAG b56e6c4d1a1c03b3904a8ad21f1fa73c651ffbfc # tip 17-09-2024
|
|
FIND_PACKAGE_ARGS # for the future
|
|
)
|
|
FetchContent_MakeAvailable(SDL3_image)
|
|
endif()
|
|
|