Skip to content

Commit

Permalink
[zserge-webview] update to 2022-09-07 (#26711)
Browse files Browse the repository at this point in the history
* [zserge-webview] update to 2022-09-06-1

* update version

* update repo

* update version

* add double quotes

* update version

* update portfile.cmake

* update version
  • Loading branch information
JonLiu1993 authored Sep 8, 2022
1 parent d60e320 commit 1ddafcb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
18 changes: 9 additions & 9 deletions ports/zserge-webview/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zserge/webview
REF 16c93bcaeaeb6aa7bb5a1432de3bef0b9ecc44f3
SHA512 153824bd444eafe6cc5ae00800422b41d4047dc85a164c465990c3be06d82003b532e1e869bb40e3a77cbe4789ff970fcda50ef00ac7b3e2f22ef3f566340026
REPO webview/webview
REF 2ee04ccd0530e3928a872f5d508c114403803e61 #commit-2022-09-07
SHA512 c784635a0c0948d91fea12643b04f0125e0be64d34aeddafbd0240aa977e867fa74efaf4e5dea7fe207bc0d1461b544f483d6228bf92dade7dc0d5e2c5a585a6
HEAD_REF master
)

file(COPY ${SOURCE_PATH}/webview.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(COPY "${SOURCE_PATH}/webview.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")

set(WEBVIEW_GTK "0")
set(WEBVIEW_WINAPI "0")
set(WEBVIEW_EDGE "0")
set(WEBVIEW_COCOA "0")

if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(WEBVIEW_WINAPI "1")
set(WEBVIEW_EDGE "1")
elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(WEBVIEW_COCOA "1")
elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(WEBVIEW_GTK "1")
endif()

file(READ ${CURRENT_PACKAGES_DIR}/include/webview.h _contents)
file(READ "${CURRENT_PACKAGES_DIR}/include/webview.h" _contents)
string(REPLACE
"#ifdef WEBVIEW_STATIC"
"#if 1 // #ifdef WEBVIEW_STATIC"
Expand All @@ -48,7 +48,7 @@ string(REPLACE
"${WEBVIEW_COCOA} // defined(WEBVIEW_COCOA)"
_contents "${_contents}"
)
file(WRITE ${CURRENT_PACKAGES_DIR}/include/webview.h "${_contents}")
file(WRITE "${CURRENT_PACKAGES_DIR}/include/webview.h" "${_contents}")

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
7 changes: 4 additions & 3 deletions ports/zserge-webview/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "zserge-webview",
"version-string": "2019-04-27",
"port-version": 3,
"description": "Tiny cross-platform webview library for C/C++/Golang."
"version-date": "2022-09-07",
"description": "Tiny cross-platform webview library for C/C++/Golang.",
"homepage": "https://github.com/webview/webview",
"license": "MIT"
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8021,8 +8021,8 @@
"port-version": 0
},
"zserge-webview": {
"baseline": "2019-04-27",
"port-version": 3
"baseline": "2022-09-07",
"port-version": 0
},
"zstd": {
"baseline": "1.5.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/z-/zserge-webview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "173fd4ea0d862f8cca595a8726fe7e0ef6444d45",
"version-date": "2022-09-07",
"port-version": 0
},
{
"git-tree": "e10cdad91c0d47a7dc03717d941254291abfd0eb",
"version-string": "2019-04-27",
Expand Down

0 comments on commit 1ddafcb

Please sign in to comment.