vcpkg/ports/vsgimgui/portfile.cmake
Connor Broyles 11e79b1072
[vsgimgui] New port (#33276)
* [vsgimgui] New port

* Fix indentation

* Fix version

* Remove files through portfile instead of patch

* Update version

* Add patch to remove font texture creation. The Vulkan backend now does this automatically.

---------

Co-authored-by: Cheney-Wang <850426846@qq.com>
2024-01-24 16:19:51 -08:00

22 lines
754 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO vsg-dev/vsgImGui
REF "v${VERSION}"
SHA512 8f3fca47ed7fd4b0a43eaff190457a3e1cf20355f69dd5000bd9f01218855f658fd934ec2abe8b768c11d3c1389a652cdafd9f0b589392878e666b4acd86fc70
HEAD_REF master
PATCHES
devendor.patch
remove-manual-font-creation.patch
)
file(REMOVE "${SOURCE_PATH}/include/vsgImGui/imgui.h")
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "vsgImGui" CONFIG_PATH "lib/cmake/vsgImGui")
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")