From 660745956a59f58bc95b1802b2d08ddaeff37eb7 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Fri, 25 Jan 2019 18:11:08 -0800 Subject: [boost][python3] Fix building with VS 2019 --- ports/python3/CONTROL | 2 +- ...rosoft.VisualStudio.Setup.Configuration.Native.patch | 13 +++++++++++++ ports/python3/dev16.patch | 17 +++++++++++++++++ ports/python3/portfile.cmake | 2 ++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ports/python3/Microsoft.VisualStudio.Setup.Configuration.Native.patch create mode 100644 ports/python3/dev16.patch (limited to 'ports/python3') diff --git a/ports/python3/CONTROL b/ports/python3/CONTROL index 26a0bce93..6c5a835da 100644 --- a/ports/python3/CONTROL +++ b/ports/python3/CONTROL @@ -1,3 +1,3 @@ Source: python3 -Version: 3.6.4-2 +Version: 3.6.4-3 Description: The Python programming language as an embeddable library \ No newline at end of file diff --git a/ports/python3/Microsoft.VisualStudio.Setup.Configuration.Native.patch b/ports/python3/Microsoft.VisualStudio.Setup.Configuration.Native.patch new file mode 100644 index 000000000..50b728340 --- /dev/null +++ b/ports/python3/Microsoft.VisualStudio.Setup.Configuration.Native.patch @@ -0,0 +1,13 @@ +diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj +index 0f01852..6e63711 100644 +--- a/PCbuild/pythoncore.vcxproj ++++ b/PCbuild/pythoncore.vcxproj +@@ -71,7 +71,7 @@ + + + version.lib;shlwapi.lib;ws2_32.lib;%(AdditionalDependencies) +- %(AdditionalLibraryDirectories);$(PySourcePath)PC\external\$(PlatformToolset)\$(ArchName) ++ %(AdditionalLibraryDirectories);$(PySourcePath)PC\external\v140\$(ArchName) + 0x1e000000 + + diff --git a/ports/python3/dev16.patch b/ports/python3/dev16.patch new file mode 100644 index 000000000..38a968729 --- /dev/null +++ b/ports/python3/dev16.patch @@ -0,0 +1,17 @@ +diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props +index 9a096bc..0647cf8 100644 +--- a/PCbuild/pyproject.props ++++ b/PCbuild/pyproject.props +@@ -94,9 +94,9 @@ + Inputs="$(PySourcePath)Include\patchlevel.h" + Outputs="$(IntDir)pythonnt_rc.h"> + + diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index 576a35e8a..e3bbfd2f5 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -19,6 +19,8 @@ vcpkg_from_github( PATCHES ${CMAKE_CURRENT_LIST_DIR}/0004-Fix-iomodule-for-RS4-SDK.patch ${CMAKE_CURRENT_LIST_DIR}/0005-Fix-DefaultWindowsSDKVersion.patch + dev16.patch + Microsoft.VisualStudio.Setup.Configuration.Native.patch ) # We need per-triplet directories because we need to patch the project files differently based on the linkage -- cgit v1.2.3 From aa095559917a495b160986e9ad50556431509ace Mon Sep 17 00:00:00 2001 From: Bobby Martin Date: Wed, 6 Feb 2019 17:21:23 -0800 Subject: [hyperscan] New port (#5285) * add support for building hyperscan * patch hyperscan to work with latest boost * correct hyperscan source dir name * speed the build by depending on only the parts of boost we actually need * make python3 support release-only builds * upgrade to hyperscan 5.1.0 * remove redundant disambiguate patch * Add comments about how to build * restore original x64-windows-static.cmake * [hyperscan] Check linkage * [python3] Allow DLLs without LIBs * [hyperscan] Only static library * [python3] Revert changes that cause regression in boost-python * [python3] Revert changes that cause regression in boost-python --- ports/python3/CONTROL | 2 +- ports/python3/portfile.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ports/python3') diff --git a/ports/python3/CONTROL b/ports/python3/CONTROL index 6c5a835da..f37197e83 100644 --- a/ports/python3/CONTROL +++ b/ports/python3/CONTROL @@ -1,3 +1,3 @@ Source: python3 -Version: 3.6.4-3 +Version: 3.6.4-5 Description: The Python programming language as an embeddable library \ No newline at end of file diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index e3bbfd2f5..308f0aa37 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -73,6 +73,7 @@ file(COPY ${SOURCE_PATH}/Lib DESTINATION ${CURRENT_PACKAGES_DIR}/share/python${P file(COPY ${SOURCE_PATH}/PCBuild/${OUT_DIR}/python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) file(COPY ${SOURCE_PATH}/PCBuild/${OUT_DIR}/python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}_d.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) + if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) file(COPY ${SOURCE_PATH}/PCBuild/${OUT_DIR}/python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin) file(COPY ${SOURCE_PATH}/PCBuild/${OUT_DIR}/python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}_d.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) -- cgit v1.2.3