mirror of https://github.com/Icinga/icinga2.git
Windows build scripts: allow setting BITS=32 to use 32 bit dependency paths by default
This commit is contained in:
parent
bad8059969
commit
14245d87a5
|
@ -19,17 +19,24 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
|
||||||
if (-not (Test-Path env:CMAKE_GENERATOR)) {
|
if (-not (Test-Path env:CMAKE_GENERATOR)) {
|
||||||
$env:CMAKE_GENERATOR = 'Visual Studio 16 2019'
|
$env:CMAKE_GENERATOR = 'Visual Studio 16 2019'
|
||||||
}
|
}
|
||||||
|
if (-not (Test-Path env:BITS)) {
|
||||||
|
$env:BITS = 64
|
||||||
|
}
|
||||||
if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
|
if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
|
||||||
|
if ($env:BITS -eq 32) {
|
||||||
|
$env:CMAKE_GENERATOR_PLATFORM = 'Win32'
|
||||||
|
} else {
|
||||||
$env:CMAKE_GENERATOR_PLATFORM = 'x64'
|
$env:CMAKE_GENERATOR_PLATFORM = 'x64'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (-not (Test-Path env:OPENSSL_ROOT_DIR)) {
|
if (-not (Test-Path env:OPENSSL_ROOT_DIR)) {
|
||||||
$env:OPENSSL_ROOT_DIR = 'c:\local\OpenSSL_1_1_1k-Win64'
|
$env:OPENSSL_ROOT_DIR = "c:\local\OpenSSL_1_1_1k-Win${env:BITS}"
|
||||||
}
|
}
|
||||||
if (-not (Test-Path env:BOOST_ROOT)) {
|
if (-not (Test-Path env:BOOST_ROOT)) {
|
||||||
$env:BOOST_ROOT = 'c:\local\boost_1_76_0-Win64'
|
$env:BOOST_ROOT = "c:\local\boost_1_76_0-Win${env:BITS}"
|
||||||
}
|
}
|
||||||
if (-not (Test-Path env:BOOST_LIBRARYDIR)) {
|
if (-not (Test-Path env:BOOST_LIBRARYDIR)) {
|
||||||
$env:BOOST_LIBRARYDIR = 'c:\local\boost_1_76_0-Win64\lib64-msvc-14.2'
|
$env:BOOST_LIBRARYDIR = "c:\local\boost_1_76_0-Win${env:BITS}\lib${env:BITS}-msvc-14.2"
|
||||||
}
|
}
|
||||||
if (-not (Test-Path env:FLEX_BINARY)) {
|
if (-not (Test-Path env:FLEX_BINARY)) {
|
||||||
$env:FLEX_BINARY = 'C:\ProgramData\chocolatey\bin\win_flex.exe'
|
$env:FLEX_BINARY = 'C:\ProgramData\chocolatey\bin\win_flex.exe'
|
||||||
|
|
Loading…
Reference in New Issue