-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-windows.ps1
35 lines (32 loc) · 1.08 KB
/
build-windows.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Param(
[Parameter(ParameterSetName="WithProfile", Mandatory)]
[switch]$with_profile,
[Parameter(ParameterSetName="WithoutProfile", Mandatory)]
[string]$arch,
[Parameter(ParameterSetName="WithoutProfile", Mandatory)]
[string]$build_type,
[Parameter(Mandatory=$false)]
[bool]$build_nfc
)
Write-Host $arch $build_type $build_nfc
Set-Location installer
if($with_profile) {
.\conan-imports.ps1 -with_profile -build_nfc $build_nfc
} else {
.\conan-imports.ps1 -arch $arch -build_type $build_type -build_nfc $build_nfc
}
Set-Location ../sources/scripts
pip install -r requirements.txt
Set-Location ../../
.\sources/scripts/update-gitversion-vs2017proj.ps1 sources/LibLogicalAccessNet/LibLogicalAccessNet.csproj
.\sources/scripts/generate-swig.ps1
Set-Location sources/LibLogicalAccessNet.native
if($with_profile) {
.\conan-build.ps1 -with_profile -build_nfc $build_nfc
} else {
./conan-build.ps1 -arch $arch -build_type $build_type -build_nfc $build_nfc
}
Set-Location ..
msbuild -t:restore
msbuild LibLogicalAccessNet.sln /p:Configuration="Release"
Set-Location ..