mirror of https://github.com/microsoft/vcpkg.git
[imgui] add new feature sdl3gpu-binding (#44038)
Co-authored-by: Sebastian Schäfer <6412444+Agorath@users.noreply.github.com>
This commit is contained in:
parent
6a7a055302
commit
aca2d0e480
|
|
@ -93,6 +93,12 @@ if(IMGUI_BUILD_SDL3_BINDING)
|
|||
target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdl3.cpp)
|
||||
endif()
|
||||
|
||||
if(IMGUI_BUILD_SDLGPU3_BINDING)
|
||||
find_package(SDL3 CONFIG REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC SDL3::SDL3)
|
||||
target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlgpu3.cpp)
|
||||
endif()
|
||||
|
||||
if(IMGUI_BUILD_SDL3_RENDERER_BINDING)
|
||||
find_package(SDL3 CONFIG REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC SDL3::SDL3)
|
||||
|
|
@ -233,6 +239,16 @@ if(NOT IMGUI_SKIP_HEADERS)
|
|||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdl3.h DESTINATION include)
|
||||
endif()
|
||||
|
||||
if(IMGUI_BUILD_SDLGPU3_BINDING)
|
||||
install(
|
||||
FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlgpu3.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlgpu3_shaders.h
|
||||
DESTINATION
|
||||
include
|
||||
)
|
||||
endif()
|
||||
|
||||
if(IMGUI_BUILD_SDL3_RENDERER_BINDING)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlrenderer3.h DESTINATION include)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ if (@IMGUI_BUILD_GLUT_BINDING@)
|
|||
find_dependency(GLUT)
|
||||
endif()
|
||||
|
||||
if (@IMGUI_BUILD_SDL3_BINDING@ OR @IMGUI_BUILD_SDL3_RENDERER_BINDING@)
|
||||
if (@IMGUI_BUILD_SDL3_BINDING@ OR @IMGUI_BUILD_SDL3_RENDERER_BINDING@ OR @IMGUI_BUILD_SDLGPU3_BINDING@)
|
||||
find_dependency(SDL3 CONFIG)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|||
opengl3-binding IMGUI_BUILD_OPENGL3_BINDING
|
||||
osx-binding IMGUI_BUILD_OSX_BINDING
|
||||
sdl3-binding IMGUI_BUILD_SDL3_BINDING
|
||||
sdlgpu3-binding IMGUI_BUILD_SDLGPU3_BINDING
|
||||
sdl3-renderer-binding IMGUI_BUILD_SDL3_RENDERER_BINDING
|
||||
vulkan-binding IMGUI_BUILD_VULKAN_BINDING
|
||||
win32-binding IMGUI_BUILD_WIN32_BINDING
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "imgui",
|
||||
"version": "1.91.8",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.",
|
||||
"homepage": "https://github.com/ocornut/imgui",
|
||||
"license": "MIT",
|
||||
|
|
@ -113,6 +113,18 @@
|
|||
"sdl3"
|
||||
]
|
||||
},
|
||||
"sdlgpu3-binding": {
|
||||
"description": "Make available SDLGPU3 binding",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "imgui",
|
||||
"features": [
|
||||
"sdl3-binding"
|
||||
]
|
||||
},
|
||||
"sdl3"
|
||||
]
|
||||
},
|
||||
"test-engine": {
|
||||
"description": "Build test engine",
|
||||
"supports": "!uwp",
|
||||
|
|
|
|||
|
|
@ -3694,7 +3694,7 @@
|
|||
},
|
||||
"imgui": {
|
||||
"baseline": "1.91.8",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"imgui-node-editor": {
|
||||
"baseline": "0.9.3",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "5f4112249c873fd337a417c75e45127362785b75",
|
||||
"version": "1.91.8",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "b16f14ae5efea50d80813678ef0b4dcbf500d1f2",
|
||||
"version": "1.91.8",
|
||||
|
|
|
|||
Loading…
Reference in New Issue