[saucer, lockpp] add new port (#25111)

* [saucer] add new port

[saucer] add lockpp dependency

beleg

* [lockpp] add new port

* [saucer] update ref

* [saucer] only support static

* fix: revert cibaseline

* refactor: also disable uwp

* [saucer,lockpp] remove superflous dependencies

* [lockpp] update version

* [saucer] update to 1.0.0

* [saucer] specifiy only static library

* [saucer] bump ref

* [saucer] remove unused dependency

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* [saucer] use vcpkg webview2

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
Noah 2022-06-17 00:27:28 +02:00 committed by GitHub
parent 842c72898a
commit ca8bde3748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,15 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Soundux/lockpp
REF v1.0.2
SHA512 6d92d3bbcbad3e2afd844ab95526e1eb49a7722d0d9d972ff85df561bbb9dc0b7a8aa5c83847f6832a806e52dde427ec0bcd11570b095d9cce7e35b3717e1f51
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH})
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

13
ports/lockpp/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "lockpp",
"version": "1.0.2",
"description": "A C++17 Library that provides mutex protected objects",
"homepage": "https://github.com/Soundux/lockpp",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -0,0 +1,20 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO saucer/saucer
REF 4d41e0f356c5b95f77803cdb760a3c01eac0aabd
SHA512 b5fe7484c80f0efde3c9f445a3a38421aff48d589ee27778495b501de4d232da44d55072664371ade79891ea7218ab1ddab385e2316b7ae20b5c32cd2332dd56
HEAD_REF dev
PATCHES "unofficial-webview2.patch"
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -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)

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9fa4269..f950363 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,8 +111,8 @@ elseif (saucer_backend STREQUAL "WebView2")
endif()
if (NOT saucer_remote_webview2)
- find_package(webview2 CONFIG REQUIRED)
- target_link_libraries(${PROJECT_NAME} PRIVATE webview2::webview2)
+ find_package(unofficial-webview2 CONFIG REQUIRED)
+ target_link_libraries(${PROJECT_NAME} PRIVATE unofficial::webview2::webview2)
else()
include("NuGet.cmake")
nuget_add(WebView2 "Microsoft.Web.WebView2" ${saucer_webview2_version})

34
ports/saucer/vcpkg.json Normal file
View File

@ -0,0 +1,34 @@
{
"name": "saucer",
"version": "1.0.0",
"description": "Next-gen desktop apps with web-frontend in C++",
"homepage": "https://saucer.github.io/",
"license": "MIT",
"supports": "!uwp",
"dependencies": [
"fmt",
"lockpp",
"nlohmann-json",
{
"name": "qt5-webchannel",
"platform": "!windows"
},
{
"name": "qt5-webengine",
"platform": "!windows"
},
"tl-expected",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "webview2",
"platform": "windows"
},
{
"name": "wil",
"platform": "windows"
}
]
}

View File

@ -4304,6 +4304,10 @@
"baseline": "0.9.29",
"port-version": 2
},
"lockpp": {
"baseline": "1.0.2",
"port-version": 0
},
"lodepng": {
"baseline": "2021-12-04",
"port-version": 1
@ -6384,6 +6388,10 @@
"baseline": "3.6.2",
"port-version": 0
},
"saucer": {
"baseline": "1.0.0",
"port-version": 0
},
"sbp": {
"baseline": "3.4.10",
"port-version": 1

9
versions/l-/lockpp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a186ea76115669b87e581cdc125423e950322d70",
"version": "1.0.2",
"port-version": 0
}
]
}

9
versions/s-/saucer.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3c2191312af1f74d46d991b955b6c7071dba82d2",
"version": "1.0.0",
"port-version": 0
}
]
}