diff --git a/patches/boost-1_64.diff b/patches/boost-1_64.diff new file mode 100644 index 0000000..ff9b7be --- /dev/null +++ b/patches/boost-1_64.diff @@ -0,0 +1,13 @@ +diff --git a/boost/spirit/home/support/attributes.hpp b/boost/spirit/home/support/attributes.hpp +index 889e3a3..da8f981 100644 +--- a/boost/spirit/home/support/attributes.hpp ++++ b/boost/spirit/home/support/attributes.hpp +@@ -1033,7 +1033,7 @@ namespace boost { namespace spirit { namespace traits + void swap_impl(T& a, T& b) + { + using namespace std; +- swap(a, b); ++ std::swap(a, b); + } + + template diff --git a/scripts/build-targets.csx b/scripts/build-targets.csx index 99f6478..8f4af05 100644 --- a/scripts/build-targets.csx +++ b/scripts/build-targets.csx @@ -34,7 +34,7 @@ List> target_mapnik = new List..\..\src\agg\process_markers_symbolizer.cpp(108): fatal error C1060: compiler is out of heap space [C:\dev2\mapnik-dependencies\packages\mapnik-3.x\mapnik-gyp\build\mapnik.vcxproj] -REM :: configure this Command Prompt window for 64-bit command-line builds that target x86 platforms -REM :: http://msdn.microsoft.com/en-us/library/x4d2c09s.aspx IF "%TARGET_ARCH%" == "32" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64_x86 IF "%TARGET_ARCH%" == "64" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 IF %ERRORLEVEL% NEQ 0 ECHO error calling vcvarsall.bat && GOTO ERROR +GOTO VSSETUPFINISHED + +:SETUPVS2017 +ECHO ------- setting up for VS 2017 +REM test for VS2017 is _MSC_VER > 1900 +REM VS2017 has '19xx' to indicate binary-compatible toolsets with VS2015 +SET MSVC_VER=1911 +SET PLATFORM_TOOLSET=v141 +ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +ECHO TODO: figure out how to get correct path +ECHO to VS2017 install +ECHO ^%VS150COMNTOOLS^% has the right path +ECHO only *AFTER* 'VsDevCmd.bat' has run +ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +IF "%TARGET_ARCH%" == "32" ECHO setting up for 32bit build && CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=amd64 -app_platform=Desktop +IF "%TARGET_ARCH%" == "64" ECHO setting up for 64bit build && CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -app_platform=Desktop +IF %ERRORLEVEL% NEQ 0 ECHO error calling VsDevCmd.bat && GOTO ERROR + + +:VSSETUPFINISHED + WHERE msbuild >NUL IF %ERRORLEVEL% NEQ 0 ECHO msbuild not found && GOTO ERROR