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,31 @@ 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
+ if ($args [0 ] -eq " VS" )
24
+ {
25
+ # "https://aka.ms/vs/17/release/vs_BuildTools.exe"
26
+ # ""
27
+ }
28
+ else
29
+ {
30
+ # Install 7zip
31
+ $URL7Zip = " https://gist.githubusercontent.com/dansmith65/7dd950f183af5f5deaf9650f2ad3226c/raw/8b8f6e96de7469cea73c9fe63a5da4d44a7c1ba7/Install-7zip.ps1"
32
+ $Path7Zip = " .\Install-7zip.ps1"
33
+ Remove-Item - ErrorAction Ignore $Path7Zip
34
+ Invoke-WebRequest - URI $URL7Zip - OutFile $Path7Zip
35
+ powershell $Path7Zip
36
+ Remove-Item - ErrorAction Ignore $Path7Zip
37
+ $Path7zipApp = " C:\Program Files\7-Zip\7z.exe"
38
+
39
+ # Install mingw
40
+ $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"
41
+ $PathMingw7Zip = " mingw.7z"
42
+ $PathMingw = " mingw64"
43
+ $UnzipMingw = ' x' , $PathMingw7Zip , ' -y'
44
+ Remove-Item - ErrorAction Ignore $PathMingw7Zip
45
+ Remove-Item - ErrorAction Ignore - Recurse $PathMingw
46
+ Invoke-WebRequest - URI $URLMingw - OutFile $PathMingw7Zip
47
+ & $Path7zipApp $UnzipMingw
48
+ Remove-Item - ErrorAction Ignore $PathMingw7Zip
49
+ }
0 commit comments