[chakracore] Upgrade version to official lastest 1.3.0

This commit is contained in:
sdcb 2016-11-10 15:48:32 +08:00
parent cd22281a94
commit 02b7c87e6e
2 changed files with 5 additions and 12 deletions

View File

@ -1,3 +1,3 @@
Source: chakracore
Version: 1.2.0.0
Version: 1.3.0
Description: Core part of the Chakra Javascript engine

View File

@ -5,21 +5,14 @@ endif()
include(vcpkg_common_functions)
find_program(POWERSHELL powershell)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/ChakraCore-1.2.0.0)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/ChakraCore-1.3.0)
vcpkg_download_distfile(ARCHIVE_FILE
URLS "https://github.com/Microsoft/ChakraCore/archive/v1.2.0.0.tar.gz"
FILENAME "ChakraCore-1.2.0.0.tar.gz"
SHA512 53e487028a30605a4e2589c40b65da060ca4884617fdba8877557e4db75f911be4433d260132cce3526647622bdc742a0aacda1443a16dfed3d3fdd442539528
URLS "https://github.com/Microsoft/ChakraCore/archive/v1.3.0.tar.gz"
FILENAME "ChakraCore-1.3.0.tar.gz"
SHA512 d00757e25f5c62bfc29721bd8f715df8dbaf0ac14c1dbdb0735227535cb4f2a209ec3957f24bb6a7e2bced540475bbf3e54712a930fb517fdfd5adb4d56cea07
)
vcpkg_extract_source_archive(${ARCHIVE_FILE})
message(STATUS "Patching JavascriptPromise.cpp for https://github.com/Microsoft/ChakraCore/issues/1429")
vcpkg_execute_required_process(
COMMAND ${POWERSHELL} -command (gc lib/runtime/library/JavascriptPromise.cpp -encoding utf7) -replace('«', '^<^<') -replace('»', '^>^>') | Set-Content lib/runtime/library/JavascriptPromise.cpp
WORKING_DIRECTORY ${SOURCE_PATH}
)
message(STATUS "Patching done.")
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/Build/Chakra.Core.sln
)