vcpkg/ports/libxdf/portfile.cmake
myd7349 790f778cb1
[libxdf] Add new port (#32816)
* [libxdf] Add new port

* [libxdf] Format

* [libxdf] Add version stuff

* [libxdf] Use vcpkg_install_copyright

* [libxdf] Overwrite version

* [libxdf] Fix pugixml dependency

* [libxdf] Overwrite version

* [libxdf] Update to latest commit

* [libxdf] Overwrite version

* Revert "[libxdf] Overwrite version"

This reverts commit a9a791bbaf51534502dd5bb71a0b3db71842eac9.

Revert "[libxdf] Update to latest commit"

This reverts commit 834ae8738ca89cf848b06ed669a3401d95c998b0.
2023-08-03 09:55:15 -07:00

26 lines
691 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xdf-modules/libxdf
REF "v${VERSION}"
SHA512 81ff3598442d3ea166ec54b74248ad7b7eca5fcfdb72526978966398ad9e6524883183e71b68e349c46c2705779bf2b4922ce097f01afe7a62faa449ab8fa075
HEAD_REF main
PATCHES
fix-pugixml-dependency.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DXDF_NO_SYSTEM_PUGIXML=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")