mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 14:15:51 +08:00
Add option for WCHAR32 support in ImGUI (#13285)
This commit is contained in:
parent
1a9ecfc894
commit
00d27cfd04
@ -22,6 +22,13 @@ target_sources(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp
|
||||
)
|
||||
|
||||
|
||||
if(IMGUI_USE_WCHAR32)
|
||||
FILE(READ ${CMAKE_CURRENT_SOURCE_DIR}/imconfig.h IMCONFIG)
|
||||
STRING(REGEX REPLACE "//#define IMGUI_USE_WCHAR32" "#define IMGUI_USE_WCHAR32" IMCONFIG "${IMCONFIG}")
|
||||
FILE(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/imconfig.h "${IMCONFIG}")
|
||||
endif()
|
||||
|
||||
if(IMGUI_BUILD_ALLEGRO5_BINDING)
|
||||
find_path(ALLEGRO5_INCLUDE_DIRS allegro5/allegro.h)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${ALLEGRO5_INCLUDE_DIRS})
|
||||
@ -172,7 +179,7 @@ if(NOT IMGUI_SKIP_HEADERS)
|
||||
file(GLOB MARMALADE_BINDING_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/examples/imgui_impl_marmalade.*)
|
||||
install(FILES ${MARMALADE_BINDING_SRCS} DESTINATION include/bindings)
|
||||
endif()
|
||||
|
||||
|
||||
if(IMGUI_BUILD_METAL_BINDING)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/examples/imgui_impl_metal.h DESTINATION include)
|
||||
endif()
|
||||
|
@ -1,6 +1,6 @@
|
||||
Source: imgui
|
||||
Version: 1.78
|
||||
Port-Version: 2
|
||||
Port-Version: 3
|
||||
Homepage: https://github.com/ocornut/imgui
|
||||
Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.
|
||||
|
||||
@ -73,3 +73,6 @@ Build-Depends: freetype
|
||||
|
||||
Feature: libigl-imgui
|
||||
Description: Install the libigl-imgui headers
|
||||
|
||||
Feature: wchar32
|
||||
Description: Use WCHAR32 instead of WCHAR16
|
||||
|
@ -34,6 +34,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
vulkan-binding IMGUI_BUILD_VULKAN_BINDING
|
||||
win32-binding IMGUI_BUILD_WIN32_BINDING
|
||||
freetype IMGUI_FREETYPE
|
||||
wchar32 IMGUI_USE_WCHAR32
|
||||
)
|
||||
|
||||
if ("libigl-imgui" IN_LIST FEATURES)
|
||||
|
Loading…
Reference in New Issue
Block a user