1
- # Install 7zip
2
- $URL7Zip = " https://gist.githubusercontent.com/dansmith65/7dd950f183af5f5deaf9650f2ad3226c/raw/8b8f6e96de7469cea73c9fe63a5da4d44a7c1ba7/Install-7zip.ps1"
3
- $Path7Zip = " .\Install-7zip.ps1"
4
- Remove-Item - ErrorAction Ignore $Path7Zip
5
- Invoke-WebRequest - URI $URL7Zip - OutFile $Path7Zip
6
- powershell $Path7Zip
7
- Remove-Item - ErrorAction Ignore $Path7Zip
8
- $Path7zipApp = " C:\Program Files\7-Zip\7z.exe"
9
-
10
- # Install mingw
11
- $URLMingw = " https://github.com/niXman/mingw-builds-binaries/releases/download/12.2.0-rt_v10-rev2/x86_64-12.2.0-release-win32-seh-ucrt-rt_v10-rev2.7z"
12
- $PathMingw7Zip = " mingw.7z"
13
- $PathMingw = " mingw64"
14
- $UnzipMingw = ' x' , $PathMingw7Zip , ' -y'
15
- Remove-Item - ErrorAction Ignore $PathMingw7Zip
16
- Remove-Item - ErrorAction Ignore $PathMingw
17
- Invoke-WebRequest - URI $URLMingw - OutFile $PathMingw7Zip
18
- & $Path7zipApp $UnzipMingw
19
- Remove-Item - ErrorAction Ignore $PathMingw7Zip
20
-
21
- # Install boost
22
- $PathBoostFolder = " boost_1_81_0"
23
- $URLBoost = " https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/" + $PathBoostFolder + " .7z"
24
- $PatHBoost7Zip = " .\boost.7z"
25
- $UnzipBoost = ' x' , $PatHBoost7Zip , ' -y'
26
- Remove-Item - ErrorAction Ignore $PatHBoost7Zip
27
- Remove-Item - ErrorAction Ignore $PathBoostFolder
28
- Invoke-WebRequest - URI $URLBoost - OutFile $PatHBoost7Zip
29
- & $Path7zipApp $UnzipBoost
30
- Remove-Item - ErrorAction Ignore $PatHBoost7Zip
31
- $env: Path += ' ;' + (Get-Location ).tostring() + " \" + $PathMingw + " \bin"
32
-
33
- Set-Location " .\" $PathBoostFolder
34
- .\bootstrap.bat gcc
35
- .\b2 -- build-type = complete toolset= gcc install
36
- Set-Location " ..\"
37
-
38
1
# Binson/flex
39
2
Set-Location " .\erpcgen\VisualStudio_v14"
40
3
$PatHBisonFlex7Zip = " .\win_flex_bison.zip"
@@ -56,3 +19,55 @@ Move-Item -Path $PatHBisonFlexFull -Destination .\ -force
56
19
Remove-Item - ErrorAction Ignore $PatHBisonFlex7Zip
57
20
# Remove-Item -ErrorAction Ignore -Recurse $PatHBisonFlex
58
21
Set-Location " ..\..\"
22
+
23
+ $PathBoostFolder = " boost_1_81_0"
24
+ if ($args [0 ] -eq " VS" )
25
+ {
26
+ # Prebuild libs for VS
27
+ # $URLBoostVs = "https://downloads.sourceforge.net/project/boost/boost-binaries/1.81.0/boost_1_81_0-msvc-14.3-32.exe?ts=gAAAAABj4CrKnWOz1tor2EO1I8BXk_n0FEzGgMqcl_J5LqB9-IKXOXglKXejh8MZTvZuGwX1dE7qGgBGgu5NhN4-DCElUzPprg%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost-binaries%2F1.81.0%2Fboost_1_81_0-msvc-14.3-32.exe%2Fdownload"
28
+ # $PathBoostExe = "boost.exe"
29
+ # Invoke-WebRequest -URI $URLBoostVs -OutFile $PathBoostExe
30
+ # Start-Process -Wait -FilePath $PathBoostExe /verysilent
31
+ # Move-Item -Path C:\local\$PathBoostFolder -Destination .\erpcgen\VisualStudio_v14\$PathBoostFolder -force
32
+
33
+ # "https://aka.ms/vs/17/release/vs_BuildTools.exe"
34
+ # ""
35
+ }
36
+ else
37
+ {
38
+ # Install 7zip
39
+ $URL7Zip = " https://gist.githubusercontent.com/dansmith65/7dd950f183af5f5deaf9650f2ad3226c/raw/8b8f6e96de7469cea73c9fe63a5da4d44a7c1ba7/Install-7zip.ps1"
40
+ $Path7Zip = " .\Install-7zip.ps1"
41
+ Remove-Item - ErrorAction Ignore $Path7Zip
42
+ Invoke-WebRequest - URI $URL7Zip - OutFile $Path7Zip
43
+ powershell $Path7Zip
44
+ Remove-Item - ErrorAction Ignore $Path7Zip
45
+ $Path7zipApp = " C:\Program Files\7-Zip\7z.exe"
46
+
47
+ # Install mingw
48
+ $URLMingw = " https://github.com/niXman/mingw-builds-binaries/releases/download/12.2.0-rt_v10-rev2/x86_64-12.2.0-release-win32-seh-ucrt-rt_v10-rev2.7z"
49
+ $PathMingw7Zip = " mingw.7z"
50
+ $PathMingw = " mingw64"
51
+ $UnzipMingw = ' x' , $PathMingw7Zip , ' -y'
52
+ Remove-Item - ErrorAction Ignore $PathMingw7Zip
53
+ Remove-Item - ErrorAction Ignore $PathMingw
54
+ Invoke-WebRequest - URI $URLMingw - OutFile $PathMingw7Zip
55
+ & $Path7zipApp $UnzipMingw
56
+ Remove-Item - ErrorAction Ignore $PathMingw7Zip
57
+
58
+ # Install boost
59
+ $URLBoost = " https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/" + $PathBoostFolder + " .7z"
60
+ $PatHBoost7Zip = " .\boost.7z"
61
+ $UnzipBoost = ' x' , $PatHBoost7Zip , ' -y'
62
+ Remove-Item - ErrorAction Ignore $PatHBoost7Zip
63
+ Remove-Item - ErrorAction Ignore $PathBoostFolder
64
+ Invoke-WebRequest - URI $URLBoost - OutFile $PatHBoost7Zip
65
+ & $Path7zipApp $UnzipBoost
66
+ Remove-Item - ErrorAction Ignore $PatHBoost7Zip
67
+ $env: Path += ' ;' + (Get-Location ).tostring() + " \" + $PathMingw + " \bin"
68
+
69
+ Set-Location $PathBoostFolder
70
+ .\bootstrap.bat gcc
71
+ .\b2 - j 4 toolset= gcc install
72
+ Set-Location " ..\"
73
+ }
0 commit comments