Skip to content

Commit

Permalink
update vcpkg overlay + add symlink to official
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Feb 2, 2024
1 parent cbef433 commit 6264f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions hello_imgui_cmake/overlay_vcpkg/hello-imgui-vcpkg-symlink
11 changes: 2 additions & 9 deletions hello_imgui_cmake/overlay_vcpkg/hello-imgui/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) # this mirrors ImGui's portfile behavior

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
Expand All @@ -19,7 +17,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
"experimental-dx12-binding" FEATURE_DX12_BINDING
"glfw-binding" FEATURE_GLFW_BINDING
"sdl2-binding" FEATURE_SDL2_BINDING
"freetype-lunasvg" FEATURE_FREETYPE_LUNASVG
"freetype-lunasvg" HELLOIMGUI_USE_FREETYPE # When hello_imgui is built with freetype, it will also build with lunasvg
)

# if a renderer backend was selected and is different from the default, we need to disable the default
Expand Down Expand Up @@ -73,11 +71,6 @@ if(FEATURE_DX12_BINDING AND FEATURE_GLFW_BINDING)
set(HELLOIMGUI_USE_GLFW_DIRECTX12 ON)
endif()

if(FEATURE_FREETYPE_LUNASVG)
# When hello_imgui is built with freetype, it will also build with lunasvg
set(HELLOIMGUI_USE_FREETYPE ON)
endif()

set(platform_options "")
if(WIN32)
# Standard win32 options (these are the defaults for HelloImGui)
Expand Down

0 comments on commit 6264f1c

Please sign in to comment.