refs #3509, get boost and icu versions directly from SDK files
This commit is contained in:
parent
747ca7470c
commit
a79bd73105
5 changed files with 23 additions and 14 deletions
|
@ -1,6 +1,5 @@
|
|||
environment:
|
||||
msvs_toolset: 14
|
||||
BOOST_VERSION: 61
|
||||
FASTBUILD: 1
|
||||
matrix:
|
||||
- platform: x64
|
||||
|
|
|
@ -22,7 +22,6 @@ ECHO msvs_toolset^: %msvs_toolset%
|
|||
SET BUILD_TYPE=%configuration%
|
||||
SET BUILDPLATFORM=%platform%
|
||||
SET TOOLS_VERSION=%msvs_toolset%.0
|
||||
SET ICU_VERSION=56.1
|
||||
ECHO ICU_VERSION^: %ICU_VERSION%
|
||||
IF DEFINED APPVEYOR (ECHO on AppVeyor) ELSE (ECHO NOT on AppVeyor)
|
||||
ECHO ========
|
||||
|
@ -63,6 +62,14 @@ ECHO extracting binary deps
|
|||
IF EXIST mapnik-sdk (ECHO already extracted) ELSE (7z -y x deps.7z | %windir%\system32\FIND "ing archive")
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
|
||||
|
||||
ECHO looking for boost and icu versions in SDK ...
|
||||
FOR /F "tokens=1,2 usebackq" %%i in (`powershell .\scripts\get-boost-icu-version-from-sdk.ps1`) DO SET %%i=%%j
|
||||
ECHO BOOST_VERSION found in SDK^: %BOOST_VERSION%
|
||||
ECHO ICU_VERSION found in SDK^: %ICU_VERSION%
|
||||
ECHO ICU_VERSION2 found in SDK^: %ICU_VERSION2%
|
||||
|
||||
|
||||
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
|
||||
|
|
|
@ -10,11 +10,6 @@ SET APPVEYOR=true
|
|||
SET LOCAL_BUILD_DONT_SKIP_TESTS=true
|
||||
SET FASTBUILD=1
|
||||
|
||||
FOR /F "tokens=1 usebackq" %%i in (`powershell .\scripts\parse-appveyor-yml.ps1`) DO SET BOOST_VERSION=%%i
|
||||
ECHO BOOST_VERSION found in appveyor.yml^: %BOOST_VERSION%
|
||||
IF "%BOOST_VERSION%"=="0" ECHO BOOST_VERSION not valid && SET ERRORLEVEL=1 && GOTO ERROR
|
||||
|
||||
|
||||
:: OVERRIDE PARAMETERS >>>>>>>>
|
||||
:NEXT-ARG
|
||||
|
||||
|
|
15
scripts/get-boost-icu-version-from-sdk.ps1
Normal file
15
scripts/get-boost-icu-version-from-sdk.ps1
Normal file
|
@ -0,0 +1,15 @@
|
|||
$ErrorActionPreference = 'Stop'
|
||||
$boost_version='0'
|
||||
$icu_version='0'
|
||||
|
||||
#get boost and icu versions directly from the files in the SDK
|
||||
|
||||
#boost_python-vc140-mt-1_61.dll
|
||||
$boost_version=(Get-ChildItem ".\mapnik-gyp\mapnik-sdk\lib" -Filter *boost*.dll)[0].BaseName.split("_")[-1]
|
||||
|
||||
#icuin56.dll
|
||||
$icu_version=(Get-ChildItem ".\mapnik-gyp\mapnik-sdk\lib" -Filter icuin*.dll)[0].BaseName.split("icuin")[-1]
|
||||
|
||||
Write-Host "BOOST_VERSION" $boost_version
|
||||
Write-Host "ICU_VERSION" $icu_version".1"
|
||||
Write-Host "ICU_VERSION2" $icu_version"_1"
|
|
@ -1,7 +0,0 @@
|
|||
$ErrorActionPreference = 'Stop'
|
||||
$boost_version='0'
|
||||
Get-Content .\appveyor.yml |
|
||||
foreach {
|
||||
if ($_ -match "BOOST_VERSION: "){ $boost_version = $_.split()[-1] }
|
||||
}
|
||||
Write-Host $boost_version
|
Loading…
Reference in a new issue