2022-04-05 21:07:47 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sammycage/lunasvg
|
2023-07-12 13:53:52 +07:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 368f76ae3c04fbcb08406d9e7793af37b5e28ab90ffe0978fae8783620a45af3270fcd4e895c553e3e651f0ba07e37355acffd9f0aab1bf9ef822f465de21073
|
2022-04-05 21:07:47 +03:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2023-07-14 16:21:37 -07:00
|
|
|
fix-cmake.patch
|
2022-04-05 21:07:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
2022-04-05 21:07:47 +03:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-07-14 16:21:37 -07:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-04-05 21:07:47 +03:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-07-14 16:21:37 -07:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|