[imgui] Add supports for features dx*-binding and metal-binding and osx-binding (#24999)

* [imgui] Add supports for features dx-binding and metal-binding and metal-binding

* x-add-version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2022-06-01 07:00:00 +08:00 committed by GitHub
parent c34f577c4d
commit 49cfe5e329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 11 deletions

View File

@ -21,10 +21,6 @@ endif()
file(COPY "${CMAKE_CURRENT_LIST_DIR}/imgui-config.cmake.in" DESTINATION "${SOURCE_PATH}")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
if(("metal-binding" IN_LIST FEATURES OR "osx-binding" IN_LIST FEATURES) AND (NOT VCPKG_TARGET_IS_OSX))
message(FATAL_ERROR "Feature metal-binding and osx-binding are only supported on osx.")
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
allegro5-binding IMGUI_BUILD_ALLEGRO5_BINDING

View File

@ -1,6 +1,7 @@
{
"name": "imgui",
"version": "1.87",
"port-version": 1,
"description": "Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.",
"homepage": "https://github.com/ocornut/imgui",
"license": "MIT",
@ -25,16 +26,20 @@
"description": "Build with docking support"
},
"dx10-binding": {
"description": "Make available DirectX10 binding"
"description": "Make available DirectX10 binding",
"supports": "windows & !uwp"
},
"dx11-binding": {
"description": "Make available DirectX11 binding"
"description": "Make available DirectX11 binding",
"supports": "windows & !uwp"
},
"dx12-binding": {
"description": "Make available DirectX12 binding"
"description": "Make available DirectX12 binding",
"supports": "!x86 & windows & !uwp"
},
"dx9-binding": {
"description": "Make available DirectX9 binding"
"description": "Make available DirectX9 binding",
"supports": "windows & !uwp"
},
"freetype": {
"description": "Build font atlases using FreeType instead of stb_truetype",
@ -58,7 +63,8 @@
"description": "Install the libigl-imgui headers"
},
"metal-binding": {
"description": "Make available Metal binding"
"description": "Make available Metal binding",
"supports": "osx"
},
"opengl2-binding": {
"description": "Make available OpenGL (legacy) binding"
@ -67,7 +73,8 @@
"description": "Make available OpenGL3/ES/ES2 (modern) binding"
},
"osx-binding": {
"description": "Make available OSX binding"
"description": "Make available OSX binding",
"supports": "osx"
},
"sdl2-binding": {
"description": "Make available SDL2 binding",

View File

@ -2934,7 +2934,7 @@
},
"imgui": {
"baseline": "1.87",
"port-version": 0
"port-version": 1
},
"imgui-sfml": {
"baseline": "2.5",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "647accc743e0af0547fbf8671c170038e202fd1e",
"version": "1.87",
"port-version": 1
},
{
"git-tree": "b9a40068f3905099cc5cb247f1b488d0e27dfd7f",
"version": "1.87",