Merge pull request #5729 from akashihi/builddataatwolt
Moved test data files to Wolt provided hosting.
This commit is contained in:
		
						commit
						bdf2222f6a
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -49,7 +49,7 @@ Thumbs.db
 | 
				
			|||||||
/_build*
 | 
					/_build*
 | 
				
			||||||
/build/
 | 
					/build/
 | 
				
			||||||
/example/build/
 | 
					/example/build/
 | 
				
			||||||
/test/data/monaco*
 | 
					/test/data/monaco.osrm*
 | 
				
			||||||
/test/data/ch
 | 
					/test/data/ch
 | 
				
			||||||
/test/data/corech
 | 
					/test/data/corech
 | 
				
			||||||
/test/data/mld
 | 
					/test/data/mld
 | 
				
			||||||
 | 
				
			|||||||
@ -57,6 +57,12 @@ endif()
 | 
				
			|||||||
if (POLICY CMP0048)
 | 
					if (POLICY CMP0048)
 | 
				
			||||||
  cmake_policy(SET CMP0048 OLD)
 | 
					  cmake_policy(SET CMP0048 OLD)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					if (POLICY CMP0057)
 | 
				
			||||||
 | 
					  cmake_policy(SET CMP0057 NEW)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					if (POLICY CMP0074)
 | 
				
			||||||
 | 
					  cmake_policy(SET CMP0074 NEW)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
project(OSRM C CXX)
 | 
					project(OSRM C CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include(JSONParser)
 | 
					include(JSONParser)
 | 
				
			||||||
@ -524,9 +530,6 @@ else()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  find_package(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
 | 
					  find_package(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
 | 
				
			||||||
  add_dependency_includes(${Boost_INCLUDE_DIRS})
 | 
					  add_dependency_includes(${Boost_INCLUDE_DIRS})
 | 
				
			||||||
  if(WIN32 AND Boost_VERSION VERSION_LESS 106200)
 | 
					 | 
				
			||||||
    message(FATAL_ERROR "Building with MSVC needs Boost 1.62 with CXX11_CONSTEXPR support")
 | 
					 | 
				
			||||||
  endif()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  find_package(TBB REQUIRED)
 | 
					  find_package(TBB REQUIRED)
 | 
				
			||||||
  add_dependency_includes(${TBB_INCLUDE_DIR})
 | 
					  add_dependency_includes(${TBB_INCLUDE_DIR})
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ ECHO NUMBER_OF_PROCESSORS^: %NUMBER_OF_PROCESSORS%
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:: Check CMake version
 | 
					:: Check CMake version
 | 
				
			||||||
SET CMAKE_VERSION=3.9.2
 | 
					SET CMAKE_VERSION=3.16.3
 | 
				
			||||||
SET PATH=%PROJECT_DIR%\cmake-%CMAKE_VERSION%-win32-x86\bin;%PATH%
 | 
					SET PATH=%PROJECT_DIR%\cmake-%CMAKE_VERSION%-win32-x86\bin;%PATH%
 | 
				
			||||||
ECHO cmake^: && cmake --version
 | 
					ECHO cmake^: && cmake --version
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 ECHO CMAKE not found && GOTO CMAKE_NOT_OK
 | 
					IF %ERRORLEVEL% NEQ 0 ECHO CMAKE not found && GOTO CMAKE_NOT_OK
 | 
				
			||||||
@ -19,7 +19,7 @@ cmake --version | findstr /C:%CMAKE_VERSION% && GOTO CMAKE_OK
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
:CMAKE_NOT_OK
 | 
					:CMAKE_NOT_OK
 | 
				
			||||||
ECHO CMAKE NOT OK - downloading new CMake %CMAKE_VERSION%
 | 
					ECHO CMAKE NOT OK - downloading new CMake %CMAKE_VERSION%
 | 
				
			||||||
powershell Invoke-WebRequest https://cmake.org/files/v3.9/cmake-%CMAKE_VERSION%-win32-x86.zip -OutFile $env:PROJECT_DIR\cm.zip
 | 
					powershell Invoke-WebRequest https://cmake.org/files/v3.16/cmake-%CMAKE_VERSION%-win32-x86.zip -OutFile $env:PROJECT_DIR\cm.zip
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			||||||
IF NOT EXIST cmake-%CMAKE_VERSION%-win32-x86 7z -y x cm.zip | %windir%\system32\FIND "ing archive"
 | 
					IF NOT EXIST cmake-%CMAKE_VERSION%-win32-x86 7z -y x cm.zip | %windir%\system32\FIND "ing archive"
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			||||||
@ -29,8 +29,8 @@ ECHO CMAKE_OK
 | 
				
			|||||||
cmake --version
 | 
					cmake --version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO activating VS command prompt ...
 | 
					ECHO activating VS command prompt ...
 | 
				
			||||||
SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
 | 
					SET PATH=C:\Program Files (x86)\MSBuild\15.0\Bin;%PATH%
 | 
				
			||||||
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
 | 
					CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO platform^: %platform%
 | 
					ECHO platform^: %platform%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -40,7 +40,7 @@ ECHO msbuild version
 | 
				
			|||||||
msbuild /version
 | 
					msbuild /version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:: HARDCODE "x64" as it is uppercase on AppVeyor and download from S3 is case sensitive
 | 
					:: HARDCODE "x64" as it is uppercase on AppVeyor and download from S3 is case sensitive
 | 
				
			||||||
SET DEPSPKG=osrm-deps-win-x64-14.0-2017.09.7z
 | 
					SET DEPSPKG=osrm-deps-win-x64-14.2-2019.01.7z
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:: local development
 | 
					:: local development
 | 
				
			||||||
ECHO.
 | 
					ECHO.
 | 
				
			||||||
@ -52,7 +52,7 @@ IF EXIST %DEPSPKG% DEL %DEPSPKG%
 | 
				
			|||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO downloading %DEPSPKG%
 | 
					ECHO downloading %DEPSPKG%
 | 
				
			||||||
powershell Invoke-WebRequest https://mapbox.s3.amazonaws.com/windows-builds/windows-build-deps/$env:DEPSPKG -OutFile $env:PROJECT_DIR\$env:DEPSPKG
 | 
					powershell Invoke-WebRequest http://project-osrm.wolt.com/windows-build-deps/$env:DEPSPKG -OutFile $env:PROJECT_DIR\$env:DEPSPKG
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:SKIPDL
 | 
					:SKIPDL
 | 
				
			||||||
@ -74,27 +74,35 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
SET OSRMDEPSDIR=%PROJECT_DIR%/osrm-deps
 | 
					SET OSRMDEPSDIR=%PROJECT_DIR%/osrm-deps
 | 
				
			||||||
set PREFIX=%OSRMDEPSDIR%/libs
 | 
					set PREFIX=%OSRMDEPSDIR%/libs
 | 
				
			||||||
set BOOST_ROOT=%OSRMDEPSDIR%/boost
 | 
					set BOOST_ROOT=%OSRMDEPSDIR%
 | 
				
			||||||
set BOOST_LIBRARYDIR=%BOOST_ROOT%/lib
 | 
					set BOOST_LIBRARYDIR=%BOOST_ROOT%/lib
 | 
				
			||||||
set TBB_INSTALL_DIR=%OSRMDEPSDIR%/tbb
 | 
					set TBB_INSTALL_DIR=%OSRMDEPSDIR%
 | 
				
			||||||
set TBB_ARCH_PLATFORM=intel64/vc14
 | 
					REM set TBB_ARCH_PLATFORM=intel64/vc17
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO OSRMDEPSDIR       ^: %OSRMDEPSDIR%
 | 
					ECHO OSRMDEPSDIR       ^: %OSRMDEPSDIR%
 | 
				
			||||||
ECHO PREFIX            ^: %PREFIX%
 | 
					ECHO PREFIX            ^: %PREFIX%
 | 
				
			||||||
ECHO BOOST_ROOT        ^: %BOOST_ROOT%
 | 
					ECHO BOOST_ROOT        ^: %BOOST_ROOT%
 | 
				
			||||||
ECHO BOOST_LIBRARYDIR  ^: %BOOST_LIBRARYDIR%
 | 
					ECHO BOOST_LIBRARYDIR  ^: %BOOST_LIBRARYDIR%
 | 
				
			||||||
ECHO TBB_INSTALL_DIR   ^: %TBB_INSTALL_DIR%
 | 
					ECHO TBB_INSTALL_DIR   ^: %TBB_INSTALL_DIR%
 | 
				
			||||||
ECHO TBB_ARCH_PLATFORM ^: %TBB_ARCH_PLATFORM%
 | 
					REM ECHO TBB_ARCH_PLATFORM ^: %TBB_ARCH_PLATFORM%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO calling cmake ....
 | 
					ECHO calling cmake ....
 | 
				
			||||||
cmake .. ^
 | 
					cmake .. ^
 | 
				
			||||||
-G "Visual Studio 14 2015 Win64" ^
 | 
					-G "Visual Studio 16 2019" ^
 | 
				
			||||||
-DBOOST_ROOT=%BOOST_ROOT% ^
 | 
					-DBOOST_ROOT=%BOOST_ROOT% ^
 | 
				
			||||||
-DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% ^
 | 
					-DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% ^
 | 
				
			||||||
-DBoost_ADDITIONAL_VERSIONS=1.58 ^
 | 
					-DBoost_ADDITIONAL_VERSIONS=1.73.0 ^
 | 
				
			||||||
-DBoost_USE_MULTITHREADED=ON ^
 | 
					-DBoost_USE_MULTITHREADED=ON ^
 | 
				
			||||||
-DBoost_USE_STATIC_LIBS=ON ^
 | 
					-DBoost_USE_STATIC_LIBS=ON ^
 | 
				
			||||||
 | 
					-DEXPAT_INCLUDE_DIR=%OSRMDEPSDIR% ^
 | 
				
			||||||
 | 
					-DEXPAT_LIBRARY=%OSRMDEPSDIR%/lib/libexpat.lib ^
 | 
				
			||||||
 | 
					-DBZIP2_INCLUDE_DIR=%OSRMDEPSDIR% ^
 | 
				
			||||||
 | 
					-DBZIP2_LIBRARIES=%OSRMDEPSDIR%/lib/libbz2.lib ^
 | 
				
			||||||
 | 
					-DLUA_INCLUDE_DIR=%OSRMDEPSDIR% ^
 | 
				
			||||||
 | 
					-DLUA_LIBRARIES=%OSRMDEPSDIR%/lib/lua5.3.5.lib ^
 | 
				
			||||||
 | 
					-DZLIB_INCLUDE_DIR=%OSRMDEPSDIR% ^
 | 
				
			||||||
 | 
					-DZLIB_LIBRARY=%OSRMDEPSDIR%/lib/libz.lib ^
 | 
				
			||||||
-DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
 | 
					-DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
 | 
				
			||||||
-DCMAKE_INSTALL_PREFIX=%PREFIX%
 | 
					-DCMAKE_INSTALL_PREFIX=%PREFIX%
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
				
			||||||
@ -106,60 +114,63 @@ msbuild OSRM.sln ^
 | 
				
			|||||||
/t:rebuild ^
 | 
					/t:rebuild ^
 | 
				
			||||||
/p:BuildInParallel=true ^
 | 
					/p:BuildInParallel=true ^
 | 
				
			||||||
/m:%NUMBER_OF_PROCESSORS% ^
 | 
					/m:%NUMBER_OF_PROCESSORS% ^
 | 
				
			||||||
/toolsversion:14.0 ^
 | 
					/toolsversion:Current ^
 | 
				
			||||||
/p:PlatformToolset=v140 ^
 | 
					/p:PlatformToolset=v142 ^
 | 
				
			||||||
/clp:Verbosity=normal ^
 | 
					/clp:Verbosity=normal ^
 | 
				
			||||||
/nologo ^
 | 
					/nologo ^
 | 
				
			||||||
/flp1:logfile=build_errors.txt;errorsonly ^
 | 
					/flp1:logfile=build_errors.txt;errorsonly ^
 | 
				
			||||||
/flp2:logfile=build_warnings.txt;warningsonly
 | 
					/flp2:logfile=build_warnings.txt;warningsonly
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CD %PROJECT_DIR%\build
 | 
					CD %PROJECT_DIR%\build
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SET PATH=%PROJECT_DIR%\osrm-deps\libs\bin;%PATH%
 | 
					SET PATH=%PROJECT_DIR%\osrm-deps\lib;%PATH%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO running extractor-tests.exe ...
 | 
					ECHO running extractor-tests.exe ...
 | 
				
			||||||
unit_tests\%Configuration%\extractor-tests.exe
 | 
					unit_tests\%Configuration%\extractor-tests.exe
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO running engine-tests.exe ...
 | 
					ECHO running engine-tests.exe ...
 | 
				
			||||||
unit_tests\%Configuration%\engine-tests.exe
 | 
					unit_tests\%Configuration%\engine-tests.exe
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO running util-tests.exe ...
 | 
					ECHO running util-tests.exe ...
 | 
				
			||||||
unit_tests\%Configuration%\util-tests.exe
 | 
					unit_tests\%Configuration%\util-tests.exe
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO running server-tests.exe ...
 | 
					ECHO running server-tests.exe ...
 | 
				
			||||||
unit_tests\%Configuration%\server-tests.exe
 | 
					unit_tests\%Configuration%\server-tests.exe
 | 
				
			||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 | 
					IF %ERRORLEVEL% EQU 1 GOTO ERROR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ECHO running library-tests.exe ...
 | 
					::TODO: CH processing sometimes mysteriously hangs, need to find why and enable tests below.
 | 
				
			||||||
SET test_region=monaco
 | 
					::ECHO running library-tests.exe ...
 | 
				
			||||||
SET test_region_ch=ch\monaco
 | 
					::SET test_region=monaco
 | 
				
			||||||
SET test_region_corech=corech\monaco
 | 
					::SET test_region_ch=ch\monaco
 | 
				
			||||||
SET test_region_mld=mld\monaco
 | 
					::SET test_region_corech=corech\monaco
 | 
				
			||||||
SET test_osm=%test_region%.osm.pbf
 | 
					::SET test_region_mld=mld\monaco
 | 
				
			||||||
IF NOT EXIST %test_osm% powershell Invoke-WebRequest https://s3.amazonaws.com/mapbox/osrm/testing/monaco.osm.pbf -OutFile %test_osm%
 | 
					::SET test_osm=%test_region%.osm.pbf
 | 
				
			||||||
%Configuration%\osrm-extract.exe -p ../profiles/car.lua %test_osm%
 | 
					::IF NOT EXIST %test_osm% powershell Invoke-WebRequest http://project-osrm.wolt.com/testing/monaco.osm.pbf -OutFile %test_osm%
 | 
				
			||||||
MKDIR ch
 | 
					::ECHO running %Configuration%\osrm-extract.exe -p ../profiles/car.lua %test_osm%
 | 
				
			||||||
XCOPY %test_region%.osrm.* ch\
 | 
					::%Configuration%\osrm-extract.exe
 | 
				
			||||||
XCOPY %test_region%.osrm ch\
 | 
					::%Configuration%\osrm-extract.exe -p ../profiles/car.lua %test_osm%
 | 
				
			||||||
MKDIR corech
 | 
					::MKDIR ch
 | 
				
			||||||
XCOPY %test_region%.osrm.* corech\
 | 
					::XCOPY %test_region%.osrm.* ch\
 | 
				
			||||||
XCOPY %test_region%.osrm corech\
 | 
					::XCOPY %test_region%.osrm ch\
 | 
				
			||||||
MKDIR mld
 | 
					::MKDIR corech
 | 
				
			||||||
XCOPY %test_region%.osrm.* mld\
 | 
					::XCOPY %test_region%.osrm.* corech\
 | 
				
			||||||
XCOPY %test_region%.osrm mld\
 | 
					::XCOPY %test_region%.osrm corech\
 | 
				
			||||||
%Configuration%\osrm-contract.exe %test_region_ch%.osrm
 | 
					::MKDIR mld
 | 
				
			||||||
%Configuration%\osrm-contract.exe --core 0.8 %test_region_corech%.osrm
 | 
					::XCOPY %test_region%.osrm.* mld\
 | 
				
			||||||
%Configuration%\osrm-partition.exe %test_region_mld%.osrm
 | 
					::XCOPY %test_region%.osrm mld\
 | 
				
			||||||
%Configuration%\osrm-customize.exe %test_region_mld%.osrm
 | 
					::%Configuration%\osrm-contract.exe %test_region_ch%.osrm
 | 
				
			||||||
XCOPY /Y ch\*.* ..\test\data\ch\
 | 
					::%Configuration%\osrm-contract.exe --core 0.8 %test_region_corech%.osrm
 | 
				
			||||||
XCOPY /Y corech\*.* ..\test\data\corech\
 | 
					::%Configuration%\osrm-partition.exe %test_region_mld%.osrm
 | 
				
			||||||
XCOPY /Y mld\*.* ..\test\data\mld\
 | 
					::%Configuration%\osrm-customize.exe %test_region_mld%.osrm
 | 
				
			||||||
unit_tests\%Configuration%\library-tests.exe
 | 
					::XCOPY /Y ch\*.* ..\test\data\ch\
 | 
				
			||||||
 | 
					::XCOPY /Y corech\*.* ..\test\data\corech\
 | 
				
			||||||
 | 
					::XCOPY /Y mld\*.* ..\test\data\mld\
 | 
				
			||||||
 | 
					::unit_tests\%Configuration%\library-tests.exe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:ERROR
 | 
					:ERROR
 | 
				
			||||||
ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
					ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ install:
 | 
				
			|||||||
init:
 | 
					init:
 | 
				
			||||||
  - git config --global core.autocrlf input
 | 
					  - git config --global core.autocrlf input
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os: Visual Studio 2015
 | 
					os: Visual Studio 2019
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# clone directory
 | 
					# clone directory
 | 
				
			||||||
clone_folder: c:\projects\osrm
 | 
					clone_folder: c:\projects\osrm
 | 
				
			||||||
@ -25,9 +25,10 @@ before_test:
 | 
				
			|||||||
  - npm --version
 | 
					  - npm --version
 | 
				
			||||||
  - npm install --ignore-scripts
 | 
					  - npm install --ignore-scripts
 | 
				
			||||||
  - npm link --ignore-scripts
 | 
					  - npm link --ignore-scripts
 | 
				
			||||||
  - SET PATH=%CD%\osrm-deps\libs\bin;%PATH%
 | 
					  - SET PATH=%CD%\osrm-deps\lib;%PATH%
 | 
				
			||||||
  - SET OSRM_BUILD_DIR=build\%Configuration%
 | 
					  - SET OSRM_BUILD_DIR=build\%Configuration%
 | 
				
			||||||
  - npm test
 | 
					# TODO tests fail with "JavaScript heap out of memory", need a better host?
 | 
				
			||||||
 | 
					#  - npm test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
branches:
 | 
					branches:
 | 
				
			||||||
  only:
 | 
					  only:
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,6 @@ SET CONFIGURATION=Release
 | 
				
			|||||||
FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i
 | 
					FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i
 | 
				
			||||||
ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH%
 | 
					ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.7.0-rc2-win32-x86\bin;%PATH%
 | 
					 | 
				
			||||||
SET PATH=C:\Program Files\7-Zip;%PATH%
 | 
					SET PATH=C:\Program Files\7-Zip;%PATH%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
 | 
					powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										97
									
								
								docs/windows-deps.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										97
									
								
								docs/windows-deps.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,97 @@
 | 
				
			|||||||
 | 
					# Building OSRM for Windows
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Dependencies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Get a decent Windows with decent Visual Studio (14 at least for C++11 support). The published binaries are build with
 | 
				
			||||||
 | 
					VS2019 and Windows SDK8.1.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In case you are using [prepacked Windows VM with VS2019](https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/), you
 | 
				
			||||||
 | 
					have to install [Windows SDK 8.1](https://go.microsoft.com/fwlink/p/?LinkId=323507)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Prepare directories for dependencies, build and target file location.Target directory ($target starting from that moment) should have /include and /lib subdirectories.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Bzip2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/bzip2-1.0.8.tar.gz
 | 
				
			||||||
 | 
					    * https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					3. Issue `nmake /f makefile.msc`
 | 
				
			||||||
 | 
					4. Copy bzlib.h to $target\include and libbz2.lib to $target\lib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### ZLib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/zlib-1.2.11.tar.gz
 | 
				
			||||||
 | 
					    * https://www.zlib.net/zlib-1.2.11.tar.gz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					3. Switch to `contrib\vstudio\vc14`
 | 
				
			||||||
 | 
					4. If needed, open `zlibvc.sln` with Visual Studio and retarget to your version of compiler and SDK.
 | 
				
			||||||
 | 
					5. Issue `msbuild zlibvc.sln /p:BuildInParallel=true /p:Configuration=Release /p:Platform=x64 /m:<Number of cpu cores>`
 | 
				
			||||||
 | 
					6. Copy x64\ZlibStatRelease\zlibstat.lib to $target\lib\libz.lib, copy zlib.h and zconf.h to $target\include
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### ICU
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://wolt-project.wolt.com/deps/icu4c-66_1-src.zip
 | 
				
			||||||
 | 
					    * https://github.com/unicode-org/icu/releases/download/release-66-1/icu4c-66_1-src.zip
 | 
				
			||||||
 | 
					    * https://wolt-project.wolt.com/deps/icu4c-66_1-data.zip
 | 
				
			||||||
 | 
					    * https://github.com/unicode-org/icu/releases/download/release-66-1/icu4c-66_1-data.zip
 | 
				
			||||||
 | 
					2. Do retarget if neededby openinig .\source\allinone\allinone.sln and editing projects
 | 
				
			||||||
 | 
					3. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					4. Run build:
 | 
				
			||||||
 | 
					    msbuild .\source\allinone\allinone.sln /nologo /p:BuildInParallel=true /p:Configuration=Release /p:Platform=x64 /m:<Number of cpu cores>
 | 
				
			||||||
 | 
					5. Copy lib64\*.lib to $target\lib, copy include contents to $target\include
 | 
				
			||||||
 | 
					6. Copy bin64\*dll to any dir withing your $PATH. At the same time copy them to $target\lib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Boost
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/boost_1_73_0.zip
 | 
				
			||||||
 | 
					    * https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.zip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					3. Build b2:
 | 
				
			||||||
 | 
					    bootstrap.bat --with-toolset=msvc-14.2
 | 
				
			||||||
 | 
					4. Build boost:
 | 
				
			||||||
 | 
					       b2 -a -d release state --build-type=minimal toolset=msvc-14.2 -q runtime-link=shared link=static address-model=64 --with-iostreams --with-test --with-thread --with-filesystem --with-date_time --with-system --with-program_options --with-regex --disable-filesystem2 -sHAVE_ICU=1 include=<target>\include library-path=<target>\lib -sZLIB_SOURCE=<builddir>/zlib -zBZIP2_BINARY=libbz2 -sBZIP2_INCLUDE=<target>\include -sBZIP2_LIBPATH=<target>\lib -sICU_ICUUC_NAME=icuuc -sICU_ICUDT_NAME=icudt -sICU_ICUIN_NAME=icuin -sBUILD=boost_unit_test_framework -j<number of cpu cores>
 | 
				
			||||||
 | 
					5. Copy `boost` subdirectory to <target>\include and contents of `stage` to <target>\lib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Expat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/libexpat-2_2_9.zip
 | 
				
			||||||
 | 
					    * https://github.com/libexpat/libexpat/archive/R_2_2_9.zip
 | 
				
			||||||
 | 
					2. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					3. Configure build my calling cmake:
 | 
				
			||||||
 | 
					    mkdir expat\build
 | 
				
			||||||
 | 
					    cd expat\build
 | 
				
			||||||
 | 
					    cmake -G"Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DEXPAT_MSVC_STATIC_CRT=ON -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_SHARED_LIBS=OFF ..
 | 
				
			||||||
 | 
					4. Build expat: `msbuild expat.sln /nologo /p:Configuration=Release /p:Platform=x64`
 | 
				
			||||||
 | 
					5. Copy `Release\libexpat.*` to <target>/lib. Copy `expat/lib/expat.h` and `expat/lib/expat_external.h` to <target>/include
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### LUA
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/lua-5.3.5.tar.gz
 | 
				
			||||||
 | 
					    * https://www.lua.org/ftp/lua-5.3.5.tar.gz
 | 
				
			||||||
 | 
					2. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					3. Lua doesn't have native MSVC support, so you have to compile it by hand:
 | 
				
			||||||
 | 
					    cd src
 | 
				
			||||||
 | 
					    cl /MD /O2 /c /DLUA_COMPAT_5_2 *.c
 | 
				
			||||||
 | 
					    ren lua.obj lua.o
 | 
				
			||||||
 | 
					    ren luac.obj luac.o
 | 
				
			||||||
 | 
					    link /LIB /OUT:lua5.3.5.dll *.obj
 | 
				
			||||||
 | 
					4. Copy `lua5.3.5.lib` to <target>/lib. Copy `lua.h`,`lauxlib,h`,`lua.hpp`,`lualib.h`,`luaconf.h` to <target>/include
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### TBB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Download either from Wolt OSRM mirror or original distribution and unpack.
 | 
				
			||||||
 | 
					    * https://project-osrm.wolt.com/deps/oneTBB-v2020.2.zip
 | 
				
			||||||
 | 
					    * https://github.com/oneapi-src/oneTBB/archive/v2020.2.zip
 | 
				
			||||||
 | 
					2. Retarget by opening build\vs2013\makefile.sln
 | 
				
			||||||
 | 
					3. Start 'x64 Native Tools Command Prompt for VS2019' and change directory to unpacked source tree.
 | 
				
			||||||
 | 
					4. Switch to build\vs2013 and build: `msbuild makefle.sln /nologo /p:Configuration=Release /p:Platform=x64`
 | 
				
			||||||
 | 
					5. Copy x64/Release/*.{dll,lib} files to <target>/lib and copy contents of include directory to <target>/include
 | 
				
			||||||
@ -1,6 +1,4 @@
 | 
				
			|||||||
DATA_NAME:=monaco
 | 
					DATA_NAME:=monaco
 | 
				
			||||||
DATA_URL:=https://s3.amazonaws.com/mapbox/osrm/testing/$(DATA_NAME).osm.pbf
 | 
					 | 
				
			||||||
DATA_POLY_URL:=https://s3.amazonaws.com/mapbox/osrm/testing/$(DATA_NAME).poly
 | 
					 | 
				
			||||||
OSRM_BUILD_DIR?=../../build
 | 
					OSRM_BUILD_DIR?=../../build
 | 
				
			||||||
PROFILE_ROOT:=../../profiles
 | 
					PROFILE_ROOT:=../../profiles
 | 
				
			||||||
SCRIPT_ROOT:=../../scripts
 | 
					SCRIPT_ROOT:=../../scripts
 | 
				
			||||||
@ -22,12 +20,6 @@ clean:
 | 
				
			|||||||
	-rm -r $(DATA_NAME).*
 | 
						-rm -r $(DATA_NAME).*
 | 
				
			||||||
	-rm -r ch corech mld
 | 
						-rm -r ch corech mld
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(DATA_NAME).osm.pbf:
 | 
					 | 
				
			||||||
	wget $(DATA_URL) -O $(DATA_NAME).osm.pbf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
$(DATA_NAME).poly:
 | 
					 | 
				
			||||||
	wget $(DATA_POLY_URL) -O $(DATA_NAME).poly
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ch/$(DATA_NAME).osrm: $(DATA_NAME).osrm
 | 
					ch/$(DATA_NAME).osrm: $(DATA_NAME).osrm
 | 
				
			||||||
	mkdir -p ch
 | 
						mkdir -p ch
 | 
				
			||||||
	cp $(DATA_NAME).osrm $(DATA_NAME).osrm.* ch/
 | 
						cp $(DATA_NAME).osrm $(DATA_NAME).osrm.* ch/
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								test/data/monaco.osm.pbf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								test/data/monaco.osm.pbf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										31
									
								
								test/data/monaco.poly
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								test/data/monaco.poly
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					none
 | 
				
			||||||
 | 
					1
 | 
				
			||||||
 | 
					   7.448637E+00   4.373992E+01
 | 
				
			||||||
 | 
					   7.420651E+00   4.372335E+01
 | 
				
			||||||
 | 
					   7.409205E+00   4.372933E+01
 | 
				
			||||||
 | 
					   7.410161E+00   4.373072E+01
 | 
				
			||||||
 | 
					   7.411732E+00   4.373139E+01
 | 
				
			||||||
 | 
					   7.413011E+00   4.373162E+01
 | 
				
			||||||
 | 
					   7.412909E+00   4.373379E+01
 | 
				
			||||||
 | 
					   7.412364E+00   4.373429E+01
 | 
				
			||||||
 | 
					   7.415174E+00   4.373618E+01
 | 
				
			||||||
 | 
					   7.421612E+00   4.374033E+01
 | 
				
			||||||
 | 
					   7.421557E+00   4.374080E+01
 | 
				
			||||||
 | 
					   7.423117E+00   4.374135E+01
 | 
				
			||||||
 | 
					   7.424507E+00   4.374069E+01
 | 
				
			||||||
 | 
					   7.426007E+00   4.374226E+01
 | 
				
			||||||
 | 
					   7.427535E+00   4.374369E+01
 | 
				
			||||||
 | 
					   7.428709E+00   4.374590E+01
 | 
				
			||||||
 | 
					   7.430755E+00   4.374885E+01
 | 
				
			||||||
 | 
					   7.431923E+00   4.374856E+01
 | 
				
			||||||
 | 
					   7.433675E+00   4.374952E+01
 | 
				
			||||||
 | 
					   7.435904E+00   4.374979E+01
 | 
				
			||||||
 | 
					   7.437361E+00   4.375083E+01
 | 
				
			||||||
 | 
					   7.436782E+00   4.375149E+01
 | 
				
			||||||
 | 
					   7.437709E+00   4.375169E+01
 | 
				
			||||||
 | 
					   7.438827E+00   4.375133E+01
 | 
				
			||||||
 | 
					   7.438466E+00   4.374899E+01
 | 
				
			||||||
 | 
					   7.441831E+00   4.374505E+01
 | 
				
			||||||
 | 
					   7.448637E+00   4.373992E+01
 | 
				
			||||||
 | 
					END
 | 
				
			||||||
 | 
					END
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user