mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 02:57:50 +08:00
32 lines
910 B
CMake
32 lines
910 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO saucer/saucer
|
|
REF 6ae482092cca4d4a408e6bdf24714153d9203797
|
|
SHA512 1865f6178b2885483f0b43c1641e602f957d4e64e77b802e64a64038b709dbf63fa2dd6037720e7180434e91341f2e1a0eb86424c1ee1556db5971cba3434bb0
|
|
HEAD_REF dev
|
|
PATCHES
|
|
unofficial-webview2.patch
|
|
fix-source-generation.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
set(BACKEND_OPTION "-Dsaucer_backend=WebView2")
|
|
else()
|
|
set(BACKEND_OPTION "-Dsaucer_backend=Qt6")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
${BACKEND_OPTION}
|
|
-Dsaucer_prefer_remote=OFF
|
|
-Dsaucer_remote_webview2=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|