2016-09-05 15:13:24 +02:00
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
|
$boost_version='0'
|
|
|
|
|
$icu_version='0'
|
2016-09-05 16:00:17 +02:00
|
|
|
|
$libdir=$PSScriptRoot+"\..\mapnik-gyp\mapnik-sdk\lib"
|
2016-09-05 15:13:24 +02:00
|
|
|
|
|
|
|
|
|
#get boost and icu versions directly from the files in the SDK
|
|
|
|
|
|
|
|
|
|
#boost_python-vc140-mt-1_61.dll
|
2016-09-05 16:00:17 +02:00
|
|
|
|
$boost_version=(Get-ChildItem $libdir -Filter *boost*.dll)[0].BaseName.split("_")[-1]
|
2016-09-05 15:13:24 +02:00
|
|
|
|
|
|
|
|
|
#icuin56.dll
|
2016-09-05 16:00:17 +02:00
|
|
|
|
$icu_version=(Get-ChildItem $libdir -Filter icuin*.dll)[0].BaseName.split("icuin")[-1]
|
2016-09-05 15:13:24 +02:00
|
|
|
|
|
|
|
|
|
Write-Host "BOOST_VERSION" $boost_version
|
|
|
|
|
Write-Host "ICU_VERSION" $icu_version".1"
|
|
|
|
|
Write-Host "ICU_VERSION2" $icu_version"_1"
|
2016-09-05 16:00:17 +02:00
|
|
|
|
|
|
|
|
|
trap {
|
|
|
|
|
"Error: $_"
|
|
|
|
|
exit 1
|
|
|
|
|
}
|