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