Skip to content

Commit

Permalink
refs #3509, get boost and icu versions directly from SDK files
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Sep 5, 2016
1 parent 747ca74 commit a79bd73
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
1 change: 0 additions & 1 deletion appveyor.yml
@@ -1,6 +1,5 @@
environment:
msvs_toolset: 14
BOOST_VERSION: 61
FASTBUILD: 1
matrix:
- platform: x64
Expand Down
9 changes: 8 additions & 1 deletion scripts/build-appveyor.bat
Expand Up @@ -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 ========
Expand Down Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions scripts/build-local.bat
Expand Up @@ -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

Expand Down
15 changes: 15 additions & 0 deletions scripts/get-boost-icu-version-from-sdk.ps1
@@ -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"
7 changes: 0 additions & 7 deletions scripts/parse-appveyor-yml.ps1

This file was deleted.

0 comments on commit a79bd73

Please sign in to comment.