[ChakraCore] enable building without dotnet sdk installed (#30614)

* Update portfile.cmake

* Update vcpkg.json

* Update baseline.json

* Update chakracore.json

* Update chakracore.json
This commit is contained in:
Leonid Pospelov 2023-04-03 22:52:26 +06:00 committed by GitHub
parent 6accd15d64
commit 6591bd9dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 11 deletions

View File

@ -10,14 +10,6 @@ vcpkg_from_github(
add-missing-reference.patch # https://github.com/chakra-core/ChakraCore/pull/6862
)
if(WIN32)
find_path(COR_H_PATH cor.h)
if(COR_H_PATH MATCHES "NOTFOUND")
message(FATAL_ERROR "Could not find <cor.h>. Ensure the NETFXSDK is installed.")
endif()
get_filename_component(NETFXSDK_PATH "${COR_H_PATH}/../.." ABSOLUTE)
endif()
set(BUILDTREE_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET})
file(REMOVE_RECURSE ${BUILDTREE_PATH})
file(COPY ${SOURCE_PATH}/ DESTINATION ${BUILDTREE_PATH})
@ -31,7 +23,6 @@ if(WIN32)
SOURCE_PATH "${BUILDTREE_PATH}"
PROJECT_SUBPATH "Build/Chakra.Core.sln"
OPTIONS
"/p:DotNetSdkRoot=${NETFXSDK_PATH}/"
"/p:CustomBeforeMicrosoftCommonTargets=${CMAKE_CURRENT_LIST_DIR}/no-warning-as-error.props"
"/p:RuntimeLib=${CHAKRA_RUNTIME_LIB}"
${PLATFORM_ARG}

View File

@ -1,7 +1,7 @@
{
"name": "chakracore",
"version-date": "2022-11-09",
"port-version": 2,
"port-version": 3,
"description": "Core part of the Chakra Javascript engine",
"homepage": "https://github.com/Microsoft/ChakraCore",
"license": "MIT",

View File

@ -1458,7 +1458,7 @@
},
"chakracore": {
"baseline": "2022-11-09",
"port-version": 2
"port-version": 3
},
"charls": {
"baseline": "2.4.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0e3461099e02572100a3a6731b04fa0c3d12b223",
"version-date": "2022-11-09",
"port-version": 3
},
{
"git-tree": "637e8045c68adfe4a6164f368027093dffb79ab6",
"version-date": "2022-11-09",