V8Config-shared compatibility issue fixed for VS generator (#20560)

* V8Config-shared compatibility issue fixed for VS generator

* Version updated

* port version fix

* update version

* adjust first entry

* update version

* Use version rather than version-string.

* Picking V8 snapshot via cmake generator expression

* version fix

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
gllebede 2021-10-13 01:11:26 +01:00 committed by GitHub
parent f978be6534
commit 050ee6cce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View File

@ -15,8 +15,7 @@ endif()
if(EXISTS ${_IMPORT_PREFIX}/debug/bin/snapshot_blob.bin)
set(V8_SNAPSHOT_BLOB_DEBUG ${_IMPORT_PREFIX}/debug/bin/snapshot_blob.bin CACHE FILEPATH "Debug version of V8 snapshot blob location")
endif()
string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE)
set(V8_SNAPSHOT_BLOB ${V8_SNAPSHOT_BLOB_${BUILD_TYPE}})
set(V8_SNAPSHOT_BLOB "$<IF:$<CONFIG:Debug>,${V8_SNAPSHOT_BLOB_DEBUG},${V8_SNAPSHOT_BLOB_RELEASE}>")
if(EXISTS "${_IMPORT_PREFIX}/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
set(V8_LIBRARY_RELEASE "${_IMPORT_PREFIX}/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Release version of the V8 library location")

View File

@ -1,6 +1,7 @@
{
"name": "v8",
"version-string": "9.1.269.39",
"version": "9.1.269.39",
"port-version": 1,
"description": "Google Chrome's JavaScript engine",
"homepage": "https://v8.dev",
"supports": "!(arm | arm64 | uwp | osx)",

View File

@ -6906,7 +6906,7 @@
},
"v8": {
"baseline": "9.1.269.39",
"port-version": 0
"port-version": 1
},
"valijson": {
"baseline": "0.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d179f8f99ecce385eab497b2850e605976f4d9d5",
"version": "9.1.269.39",
"port-version": 1
},
{
"git-tree": "1cd6a72ff77695151205fb2d2e55ed93d2f4193d",
"version-string": "9.1.269.39",