2022-06-17 06:27:28 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO saucer/saucer
|
2023-11-09 01:36:24 +08:00
|
|
|
REF "v${VERSION}"
|
2024-07-13 22:16:23 +08:00
|
|
|
SHA512 6b5090c7754cac99d410ae59e207a44cd58db7fc9ee59412181c13449c5aed7e1cb61b1ec0703809084b406e01bbb821ecafa5caee4c2704ef72f07d2979a7e0
|
2022-06-17 06:27:28 +08:00
|
|
|
HEAD_REF dev
|
2022-09-16 03:16:25 +08:00
|
|
|
PATCHES
|
2023-11-09 01:36:24 +08:00
|
|
|
fix_findpkg.patch
|
2024-08-03 15:41:25 +08:00
|
|
|
fix-build-error-with-fmt11.patch
|
2022-06-17 06:27:28 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2023-03-25 14:05:39 +08:00
|
|
|
OPTIONS
|
|
|
|
${BACKEND_OPTION}
|
|
|
|
-Dsaucer_prefer_remote=OFF
|
|
|
|
-Dsaucer_remote_webview2=OFF
|
2023-11-09 01:36:24 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
saucer_remote_webview2
|
2022-06-17 06:27:28 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-11-09 01:36:24 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|