vcpkg/ports/lunasvg/portfile.cmake

27 lines
735 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sammycage/lunasvg
2023-07-12 14:53:52 +08:00
REF "v${VERSION}"
SHA512 912e5f8ab186ac8c9275096ec8a82d2cf958e1fd0bb30d35fa8287817fe279e7247e99e3629ed2de854fb1deb80dd105faf0ef16cf1cc14ad077850469e1bee8
HEAD_REF master
PATCHES
2023-07-15 07:21:37 +08: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-15 07:21:37 +08:00
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lunasvg)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2023-07-15 07:21:37 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
2023-07-15 07:21:37 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")