summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--coin/provisioning/common/install-mingw.ps126
-rw-r--r--coin/provisioning/qtci-windows-10-x86_64/09-install-mingw530.ps110
-rw-r--r--coin/provisioning/qtci-windows-10-x86_64/09-install-mingw630.ps18
3 files changed, 44 insertions, 0 deletions
diff --git a/coin/provisioning/common/install-mingw.ps1 b/coin/provisioning/common/install-mingw.ps1
new file mode 100644
index 00000000..fc02631d
--- /dev/null
+++ b/coin/provisioning/common/install-mingw.ps1
@@ -0,0 +1,26 @@
+function InstallMinGW
+{
+ Param (
+ [string] $version = $(BadParam("the version being printed to versions.txt")),
+ [string] $release = $(BadParam("release part of the file name"))
+ )
+
+ $envvar = "MINGW$version"
+ $envvar = $envvar -replace '["."]'
+ $targetdir = "C:\$envvar"
+ $url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\i686-" + $version + "-" + $release + ".7z"
+
+ $mingwPackage = "C:\Windows\Temp\MinGW-$version.zip"
+ Copy-Item $url_cache $mingwPackage
+
+ Get-ChildItem $mingwPackage | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname "-o$TARGETDIR"}
+
+ echo "Adding MinGW environment variable."
+ [Environment]::SetEnvironmentVariable("$envvar", "$targetdir\mingw32", [EnvironmentVariableTarget]::Machine)
+
+ echo "Cleaning $mingwPackage.."
+ Remove-Item -Recurse -Force "$mingwPackage"
+
+ echo "MinGW = $version $release" >> ~\versions.txt
+
+}
diff --git a/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw530.ps1 b/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw530.ps1
new file mode 100644
index 00000000..ded894a5
--- /dev/null
+++ b/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw530.ps1
@@ -0,0 +1,10 @@
+. "$PSScriptRoot\..\common\install-mingw.ps1"
+
+# This script will install MinGW 5.3.0
+
+$version = "5.3.0"
+$release = "release-posix-dwarf-rt_v4-rev0"
+
+InstallMinGW $version $release
+
+
diff --git a/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw630.ps1 b/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw630.ps1
new file mode 100644
index 00000000..a2710760
--- /dev/null
+++ b/coin/provisioning/qtci-windows-10-x86_64/09-install-mingw630.ps1
@@ -0,0 +1,8 @@
+. "$PSScriptRoot\..\common\install-mingw.ps1"
+
+# This script will install MinGW 6.3.0
+
+$version = "6.3.0"
+$release = "release-posix-dwarf-rt_v5-rev2"
+
+InstallMinGW $version $release