vcpkg/ports/lunasvg/portfile.cmake

27 lines
736 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sammycage/lunasvg
2023-07-12 13:53:52 +07:00
REF "v${VERSION}"
SHA512 368f76ae3c04fbcb08406d9e7793af37b5e28ab90ffe0978fae8783620a45af3270fcd4e895c553e3e651f0ba07e37355acffd9f0aab1bf9ef822f465de21073
HEAD_REF master
PATCHES
2023-07-14 16:21:37 -07:00
fix-cmake.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLUNASVG_BUILD_EXAMPLES=OFF
-DBUILD_SHARED_LIBS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
2023-07-14 16:21:37 -07:00
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lunasvg)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2023-07-14 16:21:37 -07:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
2023-07-14 16:21:37 -07:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")