2022-04-06 02:07:47 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sammycage/lunasvg
|
2023-07-12 14:53:52 +08:00
|
|
|
REF "v${VERSION}"
|
2024-08-10 17:18:21 +08:00
|
|
|
SHA512 05dec8310e04e6b2eeae265f9605446ce2da134b624951fa1dc4f7d3f16e62f5c5f3bfceae29f09111e2e22003310b6fba063945e75ba97e0cef82f7f31d4cae
|
2022-04-06 02:07:47 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2023-07-15 07:21:37 +08:00
|
|
|
fix-cmake.patch
|
2022-04-06 02:07:47 +08: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-15 07:21:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lunasvg)
|
2022-04-06 02:07:47 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-07-15 07:21:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-04-06 02:07:47 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-07-15 07:21:37 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|