Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ports/imgui/CONTROL
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Source: imgui
Version: 1.73-1
Version: 1.73-2
Homepage: https://github.com/ocornut/imgui
Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.

Feature: example
Description: build with examples
Build-Depends: glfw3, freeglut, opengl, sdl1
Build-Depends: glfw3, freeglut, opengl, sdl1
10 changes: 10 additions & 0 deletions ports/imgui/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@ if ("example" IN_LIST FEATURES)
if (NOT VCPKG_TARGET_IS_WINDOWS)
message(FATAL_ERROR "Feature example only support windows.")
endif()

if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
set(BUILD_ARCH "Win32")
elseif (VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
set(BUILD_ARCH "x64")
else()
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
endif()

vcpkg_build_msbuild(
USE_VCPKG_INTEGRATION
PROJECT_PATH ${SOURCE_PATH}/examples/imgui_examples.sln
PLATFORM ${BUILD_ARCH}
)

# Install headers
Expand Down