File: get-boost-icu-version-from-sdk.ps1

package info (click to toggle)
mapnik 4.2.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,656 kB
  • sloc: cpp: 163,870; python: 1,332; sh: 690; xml: 161; makefile: 123; perl: 28; lisp: 13
file content (21 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ErrorActionPreference = 'Stop'
$boost_version='0'
$icu_version='0'
$libdir=$PSScriptRoot+"\..\mapnik-gyp\mapnik-sdk\lib"

#get boost and icu versions directly from the files in the SDK

#boost_python-vc140-mt-1_61.dll
$boost_version=(Get-ChildItem $libdir -Filter *boost*.dll)[0].BaseName.split("_")[-1]

#icuin56.dll
$icu_version=(Get-ChildItem $libdir -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"

trap {
    "Error: $_"
    exit 1
}