diff --git a/ports/chakracore/CONTROL b/ports/chakracore/CONTROL index e03e5256fe..f3b510ecd4 100644 --- a/ports/chakracore/CONTROL +++ b/ports/chakracore/CONTROL @@ -1,3 +1,3 @@ Source: chakracore -Version: 1.4.0-1 +Version: 1.4.3 Description: Core part of the Chakra Javascript engine \ No newline at end of file diff --git a/ports/chakracore/disable_warning_as_error.patch b/ports/chakracore/disable_warning_as_error.patch deleted file mode 100644 index da7b5da77f..0000000000 --- a/ports/chakracore/disable_warning_as_error.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/bin/NativeTests/NativeTests.vcxproj b/bin/NativeTests/NativeTests.vcxproj -index d020992..ac70a65 100644 ---- a/bin/NativeTests/NativeTests.vcxproj -+++ b/bin/NativeTests/NativeTests.vcxproj -@@ -30,6 +30,15 @@ - true - false - false -+ false -+ false -+ false -+ false -+ false -+ false -+ false -+ false -+ false - - - diff --git a/ports/chakracore/no-warning-as-error.props b/ports/chakracore/no-warning-as-error.props new file mode 100644 index 0000000000..6020ed1e86 --- /dev/null +++ b/ports/chakracore/no-warning-as-error.props @@ -0,0 +1,8 @@ + + + + + false + + + diff --git a/ports/chakracore/portfile.cmake b/ports/chakracore/portfile.cmake index 3f19224ed0..331cd8b316 100644 --- a/ports/chakracore/portfile.cmake +++ b/ports/chakracore/portfile.cmake @@ -7,18 +7,12 @@ if (VCPKG_CRT_LINKAGE STREQUAL static) endif() include(vcpkg_common_functions) -set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/ChakraCore-1.4.1) -vcpkg_download_distfile(ARCHIVE_FILE - URLS "https://github.com/Microsoft/ChakraCore/archive/v1.4.1.tar.gz" - FILENAME "ChakraCore-1.4.1.tar.gz" - SHA512 9ca89de88a4d6102826ce4e301ea81b70296cca72131043f9942de715dee2862791c6f33ebce1f12fcafc1554a872a2cf9317313d56c57abff0a6d814a77f2d5 -) -vcpkg_extract_source_archive(${ARCHIVE_FILE}) - -vcpkg_apply_patches( - SOURCE_PATH ${SOURCE_PATH} - PATCHES - ${CMAKE_CURRENT_LIST_DIR}/disable_warning_as_error.patch +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Microsoft/ChakraCore + REF v1.4.3 + SHA512 6083bbbb4b980f44fe0e1d3581eea17190e379134f9312f11d195694aa3e0d9723406d8048ce461bc2744306c07b44465d6d58636b114a82b2f42d7a3316c9af + HEAD_REF master ) find_path(COR_H_PATH cor.h) @@ -29,7 +23,7 @@ get_filename_component(NETFXSDK_PATH "${COR_H_PATH}/../.." ABSOLUTE) vcpkg_build_msbuild( PROJECT_PATH ${SOURCE_PATH}/Build/Chakra.Core.sln - OPTIONS "/p:DotNetSdkRoot=${NETFXSDK_PATH}/" + OPTIONS "/p:DotNetSdkRoot=${NETFXSDK_PATH}/" "/p:CustomBeforeMicrosoftCommonTargets=${CMAKE_CURRENT_LIST_DIR}/no-warning-as-error.props" ) file(INSTALL