-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall_deps.ps1
More file actions
67 lines (66 loc) · 1.93 KB
/
install_deps.ps1
File metadata and controls
67 lines (66 loc) · 1.93 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# =======================================================================
# CHECK libssl1.0-dev
# =======================================================================
Try {
mkdir deps
Set-Location deps
}
Catch {
Write-Host $_.Exception.Message`n
exit 1
}
# =======================================================================
git config --global core.autocrlf false
# =======================================================================
Try {
git clone https://github.com/Hirobreak/libsignal-protocol-c.git
Set-Location ./libsignal-protocol-c
git checkout windows
cmake . -B CptxBuild
cmake --build CptxBuild --config Release --target install
Set-Location ..
}
Catch {
Write-Host $_.Exception.Message`n
}
# =======================================================================
Try {
git clone https://github.com/civetweb/civetweb.git
Set-Location ./civetweb
cmake . -B CptxBuild --loglevel="ERROR"
cmake --build CptxBuild --config Release --target install
Set-Location ..
}
Catch {
Write-Host $_.Exception.Message`n
}
# =======================================================================
Try {
git clone https://github.com/gabime/spdlog.git
Set-Location ./spdlog
cmake . -B build -DCMAKE_BUILD_TYPE=Release --loglevel="ERROR"
cmake --build build --config Release --target install
Set-Location ..
}
Catch {
Write-Host $_.Exception.Message`n
}
# =======================================================================
Try {
git clone https://github.com/DaveGamble/cJSON.git
Set-Location ./cJSON
cmake . -B CptxBuild --loglevel="ERROR"
cmake --build CptxBuild --config Release --target install
Set-Location ..
}
Catch {
Write-Host $_.Exception.Message`n
}
# =======================================================================
Try {
Set-Location ..
Remove-Item deps -Recurse -Force
}
Catch {
Write-Host $_.Exception.Message`n
}