mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-23 00:16:20 +08:00
Compare commits
216 Commits
wip/instal
...
v5.9.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
665d373034 | ||
|
|
61a97f46f6 | ||
|
|
68f3b38420 | ||
|
|
50ca6e3465 | ||
|
|
8993bce5df | ||
|
|
192c79384c | ||
|
|
08eceb8681 | ||
|
|
24f5ef51db | ||
|
|
718127cf45 | ||
|
|
96d6150ae9 | ||
|
|
da53bedd80 | ||
|
|
91e8eaccad | ||
|
|
24df5493f1 | ||
|
|
034fe1a479 | ||
|
|
3cb5b2a5be | ||
|
|
18144d1144 | ||
|
|
bb59a6bfcb | ||
|
|
1cf6f1a8cb | ||
|
|
eeb9fc4129 | ||
|
|
80e2123065 | ||
|
|
6591e88354 | ||
|
|
85c2dae031 | ||
|
|
26b22a63a1 | ||
|
|
80b2b8ab8d | ||
|
|
04d6ce5b3d | ||
|
|
06b5bad1c1 | ||
|
|
fdfe644ad2 | ||
|
|
0ab127c294 | ||
|
|
ad91a38ee6 | ||
|
|
e66122dac6 | ||
|
|
f413d29be6 | ||
|
|
cd894f6531 | ||
|
|
59721f231c | ||
|
|
aa238f9770 | ||
|
|
b9d64d2074 | ||
|
|
3b3c2ab697 | ||
|
|
da3d33d2e8 | ||
|
|
0d19fb2955 | ||
|
|
73621de891 | ||
|
|
a37f4a2485 | ||
|
|
34cf0234b9 | ||
|
|
18b2d88dd5 | ||
|
|
0f25c861f8 | ||
|
|
2042fea677 | ||
|
|
b74a5ac533 | ||
|
|
6f39655317 | ||
|
|
51e22677e8 | ||
|
|
68884e38f8 | ||
|
|
bced3b27e6 | ||
|
|
afffd938c0 | ||
|
|
9bcf5656a1 | ||
|
|
4ff6dd218a | ||
|
|
836bc7c649 | ||
|
|
0f10422f5d | ||
|
|
4b9ea4477d | ||
|
|
a780f200a8 | ||
|
|
71282805a5 | ||
|
|
9497487c77 | ||
|
|
6ef6267ab9 | ||
|
|
fb55d5bc14 | ||
|
|
41c372c010 | ||
|
|
34e9e68372 | ||
|
|
ee16738e1b | ||
|
|
33b0b0751f | ||
|
|
be8d6ad1b7 | ||
|
|
8aef7fc9c0 | ||
|
|
8c9174127a | ||
|
|
ac8a85582b | ||
|
|
ea67572b4a | ||
|
|
0c7588bae3 | ||
|
|
0f7a4738a0 | ||
|
|
0ef5baf70b | ||
|
|
4fabcfd5d1 | ||
|
|
e5d5e2aacb | ||
|
|
366ffa5dac | ||
|
|
1297fd0b4e | ||
|
|
cc6592ef08 | ||
|
|
4a32f93d87 | ||
|
|
d4c38f8da9 | ||
|
|
677524620d | ||
|
|
1547283a3a | ||
|
|
6bc4d562c8 | ||
|
|
015b9cb53a | ||
|
|
a63aa1647c | ||
|
|
07a4522087 | ||
|
|
ef2315af73 | ||
|
|
2644bebe4b | ||
|
|
137ed3408d | ||
|
|
ac53509b31 | ||
|
|
e086fbc6cb | ||
|
|
404805141a | ||
|
|
769a34ed26 | ||
|
|
066373c9c6 | ||
|
|
cadedac3b4 | ||
|
|
af55ddc913 | ||
|
|
c3096caa14 | ||
|
|
b4b62658ac | ||
|
|
052aa06ef4 | ||
|
|
38649924df | ||
|
|
9fa8b3ca35 | ||
|
|
2e329bc68e | ||
|
|
88811f882e | ||
|
|
4eaa017023 | ||
|
|
7f7c87a15d | ||
|
|
1583fbd2bb | ||
|
|
213b848cf5 | ||
|
|
eb4fcfaba1 | ||
|
|
00e31823d3 | ||
|
|
462a2aae2b | ||
|
|
dc5f851e78 | ||
|
|
c4cf4fa07f | ||
|
|
6d1190aaa0 | ||
|
|
7681e742d7 | ||
|
|
09ec294210 | ||
|
|
786be66eaf | ||
|
|
31a0826fe8 | ||
|
|
57ba8230bd | ||
|
|
99595f44f1 | ||
|
|
b86b3a757b | ||
|
|
b1198d3402 | ||
|
|
2348ead529 | ||
|
|
8aec4db6a6 | ||
|
|
6a875b9f81 | ||
|
|
d1aeb5c569 | ||
|
|
113ad91c98 | ||
|
|
1540a87590 | ||
|
|
fb1c052f3b | ||
|
|
d8e1574d5f | ||
|
|
3e96fec2e1 | ||
|
|
ebe2b86fd0 | ||
|
|
123ff665c3 | ||
|
|
2a28ce864b | ||
|
|
52da24b78e | ||
|
|
1c1557aa93 | ||
|
|
5f022e5785 | ||
|
|
65c714aaab | ||
|
|
f71d4a3b97 | ||
|
|
3bfa9b0b12 | ||
|
|
89d4dec818 | ||
|
|
b9b259fd40 | ||
|
|
82a6a9347f | ||
|
|
a742af96fb | ||
|
|
18f6169bee | ||
|
|
4fb893fcf8 | ||
|
|
b9aae857f9 | ||
|
|
6eee3f6cff | ||
|
|
da3d21c0e6 | ||
|
|
497fc75f1a | ||
|
|
19f8a741f3 | ||
|
|
d6f7d6ed8b | ||
|
|
fcc0feaacb | ||
|
|
d29192ad3f | ||
|
|
ca89bec297 | ||
|
|
66595488f0 | ||
|
|
28bf922739 | ||
|
|
cec7c07283 | ||
|
|
b23faee265 | ||
|
|
70d3800aab | ||
|
|
fb282b2e58 | ||
|
|
1399d6e130 | ||
|
|
2d71b84893 | ||
|
|
de0d7005cc | ||
|
|
a0bf828433 | ||
|
|
88a1c161e5 | ||
|
|
21cbacf4b4 | ||
|
|
dd7f4112fd | ||
|
|
d55baf5baf | ||
|
|
41edaa5fb9 | ||
|
|
04f8860d8c | ||
|
|
0ae61f0f4d | ||
|
|
b16eac13e6 | ||
|
|
b0b6b05b34 | ||
|
|
1dee4e9fca | ||
|
|
0565e759c5 | ||
|
|
d06d1081c0 | ||
|
|
c98db75188 | ||
|
|
91df8a3a8f | ||
|
|
e067ea2a72 | ||
|
|
35db81f33e | ||
|
|
828f82b6f0 | ||
|
|
74dd14ae83 | ||
|
|
77fdde0de9 | ||
|
|
5089c4468f | ||
|
|
b12a1591c4 | ||
|
|
7d04dc1a29 | ||
|
|
d9f2fe1b7f | ||
|
|
5d9e2c49d1 | ||
|
|
b6a1fc6aae | ||
|
|
8ab923d0e5 | ||
|
|
60f02cdfae | ||
|
|
6d37fda8c1 | ||
|
|
cdbd177b41 | ||
|
|
92a7d95947 | ||
|
|
6675a8f416 | ||
|
|
9468be52db | ||
|
|
63bda0c988 | ||
|
|
0ec6aad455 | ||
|
|
ecc7d251fa | ||
|
|
08765d9258 | ||
|
|
f0dd13f05a | ||
|
|
329d718a19 | ||
|
|
f84bab04f7 | ||
|
|
c016a01b4c | ||
|
|
841cf6893a | ||
|
|
6309243064 | ||
|
|
d56552566f | ||
|
|
f789a8004a | ||
|
|
a8bd91bc27 | ||
|
|
d0df4f2ce9 | ||
|
|
3653630d22 | ||
|
|
60fb3cb272 | ||
|
|
ada909932d | ||
|
|
537ea17d14 | ||
|
|
ee4b7e638b | ||
|
|
e70e81a4aa | ||
|
|
16249a5fce |
78
.gitmodules
vendored
78
.gitmodules
vendored
@@ -1,66 +1,66 @@
|
||||
[submodule "qtbase"]
|
||||
path = qtbase
|
||||
url = ../qtbase.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
[submodule "qtsvg"]
|
||||
depends = qtbase
|
||||
path = qtsvg
|
||||
url = ../qtsvg.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtdeclarative"]
|
||||
depends = qtbase
|
||||
recommends = qtsvg qtxmlpatterns
|
||||
path = qtdeclarative
|
||||
url = ../qtdeclarative.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
[submodule "qtactiveqt"]
|
||||
depends = qtbase
|
||||
path = qtactiveqt
|
||||
url = ../qtactiveqt.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtscript"]
|
||||
depends = qtbase
|
||||
recommends = qttools
|
||||
path = qtscript
|
||||
url = ../qtscript.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = deprecated
|
||||
[submodule "qtmultimedia"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
path = qtmultimedia
|
||||
url = ../qtmultimedia.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
[submodule "qttools"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtactiveqt
|
||||
path = qttools
|
||||
url = ../qttools.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
[submodule "qtxmlpatterns"]
|
||||
depends = qtbase
|
||||
path = qtxmlpatterns
|
||||
url = ../qtxmlpatterns.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qttranslations"]
|
||||
depends = qttools
|
||||
path = qttranslations
|
||||
url = ../qttranslations.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
priority = 30
|
||||
[submodule "qtdoc"]
|
||||
depends = qtdeclarative
|
||||
path = qtdoc
|
||||
url = ../qtdoc.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
priority = 40
|
||||
[submodule "qtrepotools"]
|
||||
@@ -81,14 +81,14 @@
|
||||
recommends = qtdeclarative qtquickcontrols qtquickcontrols2 qtserialport
|
||||
path = qtlocation
|
||||
url = ../qtlocation.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtsensors"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
path = qtsensors
|
||||
url = ../qtsensors.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtsystems"]
|
||||
depends = qtbase
|
||||
@@ -121,27 +121,27 @@
|
||||
recommends = qtdeclarative qtandroidextras
|
||||
path = qtconnectivity
|
||||
url = ../qtconnectivity.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtwayland"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
path = qtwayland
|
||||
url = ../qtwayland.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qt3d"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtimageformats qtgamepad
|
||||
path = qt3d
|
||||
url = ../qt3d.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtimageformats"]
|
||||
depends = qtbase
|
||||
path = qtimageformats
|
||||
url = ../qtimageformats.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtquick1"]
|
||||
depends = qtscript
|
||||
@@ -154,51 +154,51 @@
|
||||
depends = qtdeclarative
|
||||
path = qtgraphicaleffects
|
||||
url = ../qtgraphicaleffects.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtquickcontrols"]
|
||||
depends = qtdeclarative
|
||||
recommends = qtgraphicaleffects
|
||||
path = qtquickcontrols
|
||||
url = ../qtquickcontrols.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = essential
|
||||
[submodule "qtserialbus"]
|
||||
depends = qtserialport
|
||||
path = qtserialbus
|
||||
url = ../qtserialbus.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtserialport"]
|
||||
depends = qtbase
|
||||
path = qtserialport
|
||||
url = ../qtserialport.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtx11extras"]
|
||||
depends = qtbase
|
||||
path = qtx11extras
|
||||
url = ../qtx11extras.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtmacextras"]
|
||||
depends = qtbase
|
||||
path = qtmacextras
|
||||
url = ../qtmacextras.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtwinextras"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtmultimedia
|
||||
path = qtwinextras
|
||||
url = ../qtwinextras.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtandroidextras"]
|
||||
depends = qtbase
|
||||
path = qtandroidextras
|
||||
url = ../qtandroidextras.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtenginio"]
|
||||
depends = qtdeclarative
|
||||
@@ -211,101 +211,101 @@
|
||||
recommends = qtdeclarative
|
||||
path = qtwebsockets
|
||||
url = ../qtwebsockets.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtwebchannel"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtwebsockets
|
||||
path = qtwebchannel
|
||||
url = ../qtwebchannel.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtwebengine"]
|
||||
depends = qtquickcontrols qtwebchannel
|
||||
recommends = qtlocation qttools
|
||||
path = qtwebengine
|
||||
url = ../qtwebengine.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
priority = 10
|
||||
[submodule "qtcanvas3d"]
|
||||
depends = qtdeclarative
|
||||
path = qtcanvas3d
|
||||
url = ../qtcanvas3d.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtwebview"]
|
||||
depends = qtdeclarative
|
||||
recommends = qtwebengine
|
||||
path = qtwebview
|
||||
url = ../qtwebview.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtquickcontrols2"]
|
||||
depends = qtgraphicaleffects
|
||||
path = qtquickcontrols2
|
||||
url = ../qtquickcontrols2.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtpurchasing"]
|
||||
depends = qtbase qtandroidextras
|
||||
recommends = qtdeclarative
|
||||
path = qtpurchasing
|
||||
url = ../qtpurchasing.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtcharts"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtmultimedia
|
||||
path = qtcharts
|
||||
url = ../qtcharts.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtdatavis3d"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtmultimedia
|
||||
path = qtdatavis3d
|
||||
url = ../qtdatavis3d.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtvirtualkeyboard"]
|
||||
depends = qtbase qtdeclarative qtsvg
|
||||
recommends = qtmultimedia qtquickcontrols
|
||||
path = qtvirtualkeyboard
|
||||
url = ../qtvirtualkeyboard.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtgamepad"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
path = qtgamepad
|
||||
url = ../qtgamepad.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtscxml"]
|
||||
depends = qtbase qtdeclarative
|
||||
path = qtscxml
|
||||
url = ../qtscxml.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = addon
|
||||
[submodule "qtspeech"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative qtmultimedia
|
||||
path = qtspeech
|
||||
url = ../qtspeech.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = preview
|
||||
[submodule "qtnetworkauth"]
|
||||
depends = qtbase
|
||||
recommends = qtwebview
|
||||
path = qtnetworkauth
|
||||
url = ../qtnetworkauth.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = preview
|
||||
[submodule "qtremoteobjects"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
path = qtremoteobjects
|
||||
url = ../qtremoteobjects.git
|
||||
branch = 5.9
|
||||
branch = 5.9.7
|
||||
status = preview
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
----------------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-windows-8.1-x86_64 MSVC2013 DeveloperBuild Release DisableTests
|
||||
qtci-windows-10-x86_64-10 MSVC2015 DeveloperBuild Release QtNamespace QtLibInfix BuildExamples
|
||||
qtci-windows-10-x86_64-10 MSVC2015 DeveloperBuild Release QtNamespace QtLibInfix BuildExamples
|
||||
qtci-windows-7-x86-3 Mingw53 DeveloperBuild Release OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 x86 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 armv7 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 GCC NoWidgets ForceDebugInfo
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 GCC DeveloperBuild OutOfSourceBuild QtLibInfix QtNamespace BuildExamples Documentation
|
||||
qtci-windows-10-x86_64-10 x86 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 armv7 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 GCC NoWidgets ForceDebugInfo
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 GCC DeveloperBuild OutOfSourceBuild QtLibInfix QtNamespace BuildExamples Documentation
|
||||
qtci-linux-openSUSE-42.3-x86_64 GCC DeveloperBuild NoPch
|
||||
qtci-linux-openSUSE-42.3-x86_64 ICC_18 DeveloperBuild NoPch DisableTests
|
||||
qtci-linux-RHEL-6.6-x86_64 GCC Release ForceDebugInfo
|
||||
@@ -18,7 +18,8 @@ qtci-osx-10.11-x86_64-3 Clang
|
||||
qtci-osx-10.10-x86_64 Clang Release NoFramework DisableTests
|
||||
qtci-macos-10.12-x86_64-8 IOS_ANY x86_64 Clang Release DisableTests Static
|
||||
qtci-linux-RHEL-7.4-x86_64 Android_ANY armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 QEMU armv7 GCC Release
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 QEMU arm64 GCC Release
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 GCC TestOnly LicenseCheck
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU armv7 GCC Release
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU arm64 GCC Release
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 GCC TestOnly LicenseCheck
|
||||
qtci-linux-RHEL-6.6-x86_64 QNX_660 armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-linux-RHEL-7.4-x86_64 INTEGRITY_11_04 armv7 GCC Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
--------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-windows-8.1-x86_64 x86 MSVC2013 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-8.1-x86_64 x86 MSVC2013 DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-8.1-x86_64 MSVC2013 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86-6 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 x86 MSVC2017 DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-7-x86-3 Mingw53 Packaging DebugAndRelease Release OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 armv7 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 armv7 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-windows-10-x86_64-10 WinRT_10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||
qtci-linux-RHEL-7.4-x86_64 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-windows-7-x86-3 Android_ANY armv7 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-windows-7-x86-3 Android_ANY x86 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
@@ -16,10 +16,9 @@ qtci-macos-10.12-x86_64-8 Android_ANY armv7 GCC Packagin
|
||||
qtci-macos-10.12-x86_64-8 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2
|
||||
qtci-linux-RHEL-6.6-x86_64 QNX_660 x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-macos-10.12-x86_64-8 IOS_ANY multi Clang Packaging DebugAndRelease DisableTests Static
|
||||
qtci-windows-10-x86_64-10 QNX_700 armv7 Mingw53 Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_700 x86 Mingw53 Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_660 armv7 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_660 x86 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-linux-RHEL-7.4-x86_64 QNX_700 x86 GCC Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-linux-RHEL-7.4-x86_64 QNX_700 armv7 GCC Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-linux-RHEL-7.4-x86_64 INTEGRITY_11_04 armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-windows-10-x86_64-10 QNX_700 armv7 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_700 x86_64 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_660 armv7 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-windows-10-x86_64-10 QNX_660 x86 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||
qtci-linux-RHEL-7.4-x86_64 QNX_700 x86_64 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
qtci-linux-RHEL-7.4-x86_64 QNX_700 armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||
|
||||
4
coin/platform_configs/qtbase.txt
Normal file
4
coin/platform_configs/qtbase.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
--------------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU armv7 GCC DeveloperBuild DisableTests
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU arm64 GCC DeveloperBuild DisableTests
|
||||
@@ -1,4 +1,4 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
--------------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 QEMU armv7 GCC DeveloperBuild
|
||||
qtci-linux-Ubuntu-16.04-x86_64-1 QEMU arm64 GCC DeveloperBuild
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU armv7 GCC DeveloperBuild
|
||||
qtci-linux-Ubuntu-16.04-x86_64-2 QEMU arm64 GCC DeveloperBuild
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
--------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-windows-10-x86_64-7 x86 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86_64-7 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86_64-10 x86 MSVC2017 DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86_64-10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-7-x86-3 Mingw53 Packaging DebugAndRelease Release OpenGLDynamic DisableTests
|
||||
|
||||
6
coin/platform_configs/tqtc-qt-rta.txt
Normal file
6
coin/platform_configs/tqtc-qt-rta.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Template Target OS Target arch Compiler Features
|
||||
--------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||
qtci-windows-7-x86_64-4 MSVC2013 Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-8.1-x86_64 MSVC2013 Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||
qtci-windows-10-x86-3 MSVC2017 Release ForceDebugInfo OpenGLDynamic
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
$scriptsPath = "C:\Python27\Scripts"
|
||||
|
||||
& "$scriptsPath\pip.exe" install --upgrade conan==0.24.0
|
||||
|
||||
# Use Qt Project repository by default
|
||||
& "$scriptsPath\conan.exe" remote add qtproject https://api.bintray.com/conan/qtproject/conan --insert
|
||||
|
||||
[Environment]::SetEnvironmentVariable("CI_CONAN_BUILDINFO_DIR", "C:\Utils\conanbuildinfos", "Machine")
|
||||
|
||||
function Start-Process-Logged
|
||||
{
|
||||
Write-Host "Start-Process", $args
|
||||
Start-Process @args
|
||||
}
|
||||
|
||||
function Run-Conan-Install
|
||||
{
|
||||
Param (
|
||||
[string]$ConanfilesDir,
|
||||
[string]$BuildinfoDir,
|
||||
[string]$Arch,
|
||||
[string]$Compiler,
|
||||
[string]$CompilerVersion,
|
||||
[string]$CompilerRuntime,
|
||||
[string]$CompilerLibcxx
|
||||
)
|
||||
|
||||
if ($CompilerRuntime) {
|
||||
$extraArgs = "-s compiler.runtime=$($CompilerRuntime)"
|
||||
}
|
||||
|
||||
if ($CompilerLibcxx) {
|
||||
$extraArgs = "-s compiler.libcxx=$($CompilerLibcxx)"
|
||||
}
|
||||
|
||||
$manifestsDir = "$PSScriptRoot\conan_manifests"
|
||||
|
||||
Get-ChildItem -Path "$ConanfilesDir\*.txt" |
|
||||
ForEach-Object {
|
||||
$conanfile = $_.FullName
|
||||
$outpwd = "C:\Utils\conanbuildinfos\$($BuildinfoDir)\$($_.BaseName)"
|
||||
New-Item $outpwd -Type directory -Force
|
||||
|
||||
$process = Start-Process-Logged `
|
||||
"$scriptsPath\conan.exe" `
|
||||
-WorkingDirectory $outpwd `
|
||||
-ArgumentList "install -f $conanfile --no-imports --verify $manifestsDir", `
|
||||
'-s', ('compiler="' + $Compiler + '"'), `
|
||||
"-s os=Windows -s arch=$Arch -s compiler.version=$CompilerVersion $extraArgs" `
|
||||
-NoNewWindow -Wait -Verbose `
|
||||
-PassThru # Return process object
|
||||
|
||||
if ($process.ExitCode -ne 0) {
|
||||
Write-Host "conan exited with code $($process.ExitCode)"
|
||||
Exit(1)
|
||||
}
|
||||
|
||||
Copy-Item -Path $conanfile -Destination "$outpwd\conanfile.txt"
|
||||
}
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# A helper script used for downloading a file from a URL or an alternative
|
||||
# URL. Also the SHA1 is checked for the file. Target filename should also
|
||||
# be given.
|
||||
#
|
||||
# If called directly from another script, it will exit the parent script
|
||||
# as well, if not called in its own subshell with parentheses.
|
||||
|
||||
# shellcheck source=try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
|
||||
ExceptionDownloadPrimaryUrl=100
|
||||
ExceptionDownloadAltUrl=101
|
||||
ExceptionSHA1=102
|
||||
|
||||
function DownloadURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
targetFile=$4
|
||||
|
||||
try
|
||||
(
|
||||
try
|
||||
(
|
||||
echo "Downloading from primary URL '$url'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownloadPrimaryUrl)
|
||||
echo "Failed to download '$url' multiple times"
|
||||
echo "Downloading tar.gz from alternative URL '$url_alt'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
||||
;;
|
||||
esac
|
||||
}
|
||||
echo "Checking SHA1 on PKG '$targetFile'"
|
||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||
shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
||||
)
|
||||
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownloadAltUrl)
|
||||
echo "Failed downloading PKG from primary and alternative URLs"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionSHA1)
|
||||
echo "Failed checksum on $targetFile."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script receives URLs to a compressed file. It then downloads it,
|
||||
# uncompresses it and installs it by default
|
||||
# to /Applications/. This can be overridden by a target parameter.
|
||||
|
||||
# shellcheck source=try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
# shellcheck source=DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||
|
||||
ExceptionDownload=99
|
||||
ExceptionCreateTmpFile=100
|
||||
ExceptionCreateTmpDirectory=101
|
||||
ExceptionUncompress=102
|
||||
ExceptionMoveApp=103
|
||||
ExceptionDeleteTmpFile=104
|
||||
ExceptionRemoveTmpDirectory=105
|
||||
ExceptionUnknownFormat=106
|
||||
|
||||
|
||||
function InstallAppFromCompressedFileFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
appPrefix=$4
|
||||
target=$5
|
||||
|
||||
if [ "" == "$target" ]; then
|
||||
target="/Applications/"
|
||||
fi
|
||||
|
||||
try
|
||||
(
|
||||
basefilename=${url##*/}
|
||||
extension=${basefilename##*.}
|
||||
filename=${basefilename%.*}
|
||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||
extension="tar.gz"
|
||||
fi
|
||||
|
||||
echo "Extension for file: $extension"
|
||||
echo "Creating temporary file and directory"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension") || throw $ExceptionCreateTmpFile
|
||||
# macOS 10.10 mktemp does require prefix
|
||||
if [[ $OSTYPE == "darwin14" ]]; then
|
||||
targetDirectory=$(mktemp -d -t '10.10') || throw $ExceptionCreateTmpDirectory
|
||||
else
|
||||
targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
|
||||
fi
|
||||
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile") || throw $ExceptionDownload
|
||||
echo "Uncompress $targetFile"
|
||||
case $extension in
|
||||
"tar.gz")
|
||||
tar -xzf "$targetFile" --directory "$targetDirectory" || throw $ExceptionUncompress
|
||||
;;
|
||||
"zip")
|
||||
unzip "$targetFile" -d "$targetDirectory" || throw $ExceptionUncompress
|
||||
;;
|
||||
*)
|
||||
throw $ExceptionUnknownFormat
|
||||
;;
|
||||
esac
|
||||
echo "Moving app to '$target'"
|
||||
sudo mv "$targetDirectory/$appPrefix/"* "$target" || throw $ExceptionMoveApp
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
||||
echo "Removing directory '$targetDirectory'"
|
||||
rm -rf "$targetDirectory" || throw $ExceptionRemoveTmpDirectory
|
||||
)
|
||||
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownload)
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionCreateTmpFile)
|
||||
echo "Failed to create temporary file"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUncompress)
|
||||
echo "Failed extracting compressed file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionMoveApp)
|
||||
echo "Failed moving app to '$target'."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionDeleteTmpFile)
|
||||
echo "Failed deleting temporary file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionRemoveTmpDirectory)
|
||||
echo "Failed deleting temporary file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUnknownFormat)
|
||||
echo "Unknown file format."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
# shellcheck source=DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||
|
||||
ExceptionDownload=99
|
||||
ExceptionCreateTmpFile=100
|
||||
ExceptionCreateTmpDirectory=101
|
||||
ExceptionUncompress=102
|
||||
ExceptionMoveApp=103
|
||||
ExceptionDeleteTmpFile=104
|
||||
ExceptionRemoveTmpDirectory=105
|
||||
ExceptionUnknownFormat=106
|
||||
|
||||
|
||||
function InstallFromCompressedFileFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
installDirectory=$4
|
||||
appPrefix=$5
|
||||
|
||||
try
|
||||
(
|
||||
basefilename=${url##*/}
|
||||
extension=${basefilename##*.}
|
||||
filename=${basefilename%.*}
|
||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||
extension="tar.gz"
|
||||
fi
|
||||
echo "Extension for file: $extension"
|
||||
echo "Creating temporary file and directory"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen)XXXXX.$extension") || throw $ExceptionCreateTmpFile
|
||||
targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
|
||||
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile") || throw $ExceptionDownload
|
||||
echo "Uncompress $targetFile"
|
||||
case $extension in
|
||||
"tar.gz")
|
||||
tar -xzf "$targetFile" --directory "$targetDirectory" || throw $ExceptionUncompress
|
||||
;;
|
||||
"zip")
|
||||
unzip "$targetFile" -d "$targetDirectory" || throw $ExceptionUncompress
|
||||
;;
|
||||
*)
|
||||
throw $ExceptionUnknownFormat
|
||||
;;
|
||||
esac
|
||||
echo "Moving app to $installDirectory"
|
||||
sudo mkdir -p "$installDirectory"
|
||||
sudo mv "$targetDirectory/$appPrefix/"* "$installDirectory" || throw $ExceptionMoveApp
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
||||
echo "Removing directory '$targetDirectory'"
|
||||
rm -rf "$targetDirectory" || throw $ExceptionRemoveTmpDirectory
|
||||
)
|
||||
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownload)
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionCreateTmpFile)
|
||||
echo "Failed to create temporary file"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUncompress)
|
||||
echo "Failed extracting compressed file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionMoveApp)
|
||||
echo "Failed moving app to target location."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionDeleteTmpFile)
|
||||
echo "Failed deleting temporary file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionRemoveTmpDirectory)
|
||||
echo "Failed deleting temporary file."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUnknownFormat)
|
||||
echo "Unknown file format."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
|
||||
ExceptionCreateTmpFile=100
|
||||
ExceptionDownloadPrimaryUrl=101
|
||||
ExceptionDownloadAltUrl=102
|
||||
ExceptionSHA1=103
|
||||
ExceptionInstallerPKG=104
|
||||
ExceptionDeleteTmpFile=105
|
||||
|
||||
|
||||
function InstallPKGFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
targetDirectory=$4
|
||||
|
||||
try
|
||||
(
|
||||
echo "Creating temporary file"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).pkg") || trow $ExceptionCreateTmpFile
|
||||
try
|
||||
(
|
||||
echo "Downloading PKG from primary URL '$url'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownloadPrimaryUrl)
|
||||
echo "Failed to download '$url' multiple times"
|
||||
echo "Downloading PKG from alternative URL '$url_alt'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
||||
;;
|
||||
esac
|
||||
}
|
||||
echo "Checking SHA1 on PKG '$targetFile'"
|
||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||
/usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
||||
echo "Run installer on PKG"
|
||||
sudo installer -package "$targetFile" -target "$targetDirectory" || throw $ExceptionInstallerPKG
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
||||
)
|
||||
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionCreateTmpFile)
|
||||
echo "Failed to create temporary file"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionDownloadAltUrl)
|
||||
echo "Failed downloading PKG from primary and alternative URLs"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionSHA1)
|
||||
echo "Failed to check sha1sum."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionInstallerPKG)
|
||||
echo "Failed running installer on PKG."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionDeleteTmpFile)
|
||||
echo "Failed deleting temporary file."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
# Turning off win defender.
|
||||
#
|
||||
# If disabled manually, windows will automatically enable it after
|
||||
# some period of time. Disabling it speeds up the builds.
|
||||
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /V DisableAntiSpyware /T REG_dWORD /D 1 /F
|
||||
93
coin/provisioning/common/android_linux.sh → coin/provisioning/common/linux/android_linux.sh
Normal file → Executable file
93
coin/provisioning/common/android_linux.sh → coin/provisioning/common/linux/android_linux.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -37,8 +37,9 @@
|
||||
|
||||
# It also runs update for SDK API, latest SDK tools, latest platform-tools and build-tools version
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/try_catch.sh"
|
||||
source "${BASH_SOURCE%/*}/../common/DownloadURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/check_and_set_proxy.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
targetFolder="/opt/android"
|
||||
sdkTargetFolder="$targetFolder/sdk"
|
||||
@@ -60,65 +61,37 @@ toolsSourceFile="$basePath/$toolsFile"
|
||||
ndkTargetFile="/tmp/$ndkFile"
|
||||
ndkSourceFile="$basePath/$ndkFile"
|
||||
|
||||
ExceptionDownload=99
|
||||
ExceptionUnzipTools=100
|
||||
ExceptionUnzipNdk=101
|
||||
ExceptionRmTools=102
|
||||
ExceptionRmNdk=103
|
||||
ExceptionSdkManager=104
|
||||
DownloadURL "$toolsSourceFile" "$toolsSourceFile" "$toolsSha1" "$toolsTargetFile"
|
||||
DownloadURL "$ndkSourceFile" "$ndkSourceFile" "$ndkSha1" "$ndkTargetFile"
|
||||
echo "Unzipping Android NDK to '$targetFolder'"
|
||||
sudo unzip -q "$ndkTargetFile" -d "$targetFolder"
|
||||
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
||||
sudo unzip -q "$toolsTargetFile" -d "$sdkTargetFolder"
|
||||
rm "$ndkTargetFile"
|
||||
rm "$toolsTargetFile"
|
||||
|
||||
try
|
||||
(
|
||||
(DownloadURL "$toolsSourceFile" "$toolsSourceFile" "$toolsSha1" "$toolsTargetFile") || throw $ExceptionDownload
|
||||
(DownloadURL "$ndkSourceFile" "$ndkSourceFile" "$ndkSha1" "$ndkTargetFile") || throw $ExceptionDownload
|
||||
echo "Unzipping Android NDK to '$targetFolder'"
|
||||
sudo unzip -q "$ndkTargetFile" -d "$targetFolder" || throw $ExceptionUnzipNdk
|
||||
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
||||
sudo unzip -q "$toolsTargetFile" -d "$sdkTargetFolder" || throw $ExceptionUnzipTools
|
||||
rm "$ndkTargetFile" || throw $ExceptionRmNdk
|
||||
rm "$toolsTargetFile" || throw $ExceptionRmTools
|
||||
|
||||
echo "Changing ownership of Android files."
|
||||
echo "Changing ownership of Android files."
|
||||
if uname -a |grep -q "el6\|el7"; then
|
||||
sudo chown -R qt:wheel "$targetFolder"
|
||||
else
|
||||
sudo chown -R qt:users "$targetFolder"
|
||||
fi
|
||||
|
||||
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
||||
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion" || throw $ExceptionSdkManager
|
||||
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
||||
if [ "$http_proxy" != "" ]; then
|
||||
proxy_host=$(echo $proxy | cut -d'/' -f3 | cut -d':' -f1)
|
||||
proxy_port=$(echo $proxy | cut -d':' -f3)
|
||||
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" --no_https --proxy=http --proxy_host=$proxy_host --proxy_port=$proxy_port "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion"
|
||||
else
|
||||
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion"
|
||||
fi
|
||||
|
||||
echo "export ANDROID_SDK_HOME=$sdkTargetFolder" >> ~/.bashrc
|
||||
echo "export ANDROID_NDK_HOME=$targetFolder/android-ndk-$ndkVersion" >> ~/.bashrc
|
||||
echo "export ANDROID_NDK_HOST=linux-x86_64" >> ~/.bashrc
|
||||
echo "export ANDROID_API_VERSION=$sdkApiLevel" >> ~/.bashrc
|
||||
|
||||
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
||||
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
||||
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
||||
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownload)
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUnzipTools)
|
||||
echo "Failed to unzip Android SDK Tools."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionUnzipNdk)
|
||||
echo "Failed to unzip Android NDK."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionRmTools)
|
||||
echo "Failed to remove temporary tools package '$toolsTargetFile'."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionRmNdk)
|
||||
echo "Failed to remove temporary NDK package '$ndkTargetFile'."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionSdkManager)
|
||||
echo "Failed to run sdkmanager."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
SetEnvVar "ANDROID_SDK_HOME" "$sdkTargetFolder"
|
||||
SetEnvVar "ANDROID_NDK_HOME" "$targetFolder/android-ndk-$ndkVersion"
|
||||
SetEnvVar "ANDROID_NDK_HOST" "linux-x86_64"
|
||||
SetEnvVar "ANDROID_API_VERSION" "$sdkApiLevel"
|
||||
|
||||
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
||||
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
||||
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
||||
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
# CMake is needed for autotests that verify that Qt can be built with CMake
|
||||
|
||||
# shellcheck source=InstallFromCompressedFileFromURL.sh
|
||||
source "${BASH_SOURCE%/*}/InstallFromCompressedFileFromURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
version="3.6.2"
|
||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
|
||||
@@ -49,5 +49,4 @@ appPrefix="cmake-$version-Linux-x86_64"
|
||||
|
||||
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
||||
|
||||
echo "Adding $targetFolder/bin to PATH"
|
||||
echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc
|
||||
SetEnvVar "PATH" "$targetFolder/bin:\$PATH"
|
||||
44
coin/provisioning/common/linux/disable-ntp_linux.sh
Executable file
44
coin/provisioning/common/linux/disable-ntp_linux.sh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
echo "Disable Network Time Protocol (NTP)"
|
||||
|
||||
if uname -a |grep -q "Ubuntu"; then
|
||||
sudo timedatectl set-ntp false
|
||||
else
|
||||
systemctl &>/dev/null && sudo systemctl disable ntpd || sudo /sbin/chkconfig ntpd off
|
||||
fi
|
||||
0
coin/provisioning/common/disable_selinux.sh → coin/provisioning/common/linux/disable_selinux.sh
Normal file → Executable file
0
coin/provisioning/common/disable_selinux.sh → coin/provisioning/common/linux/disable_selinux.sh
Normal file → Executable file
62
coin/provisioning/common/linux/fbx_linux.sh
Executable file
62
coin/provisioning/common/linux/fbx_linux.sh
Executable file
@@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs FBX SDK
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
set -e
|
||||
tarballName="fbx20161_2_fbxsdk_linux.tar.gz"
|
||||
targetFolder="/opt/fbx"
|
||||
cachedUrl="http://ci-files01-hki.intra.qt.io/input/fbx/$tarballName"
|
||||
officialUrl="http://download.autodesk.com/us/fbx_release_older/2016.1.2/$tarballName"
|
||||
sha1="b0a08778de025e2c6e90d6fbdb6531f74a3da605"
|
||||
tmpFolder="/tmp"
|
||||
targetFile="$tmpFolder/$tarballName"
|
||||
installer="$tmpFolder/fbx20161_2_fbxsdk_linux"
|
||||
|
||||
DownloadURL "$cachedUrl" "$officialUrl" "$sha1" "$targetFile"
|
||||
|
||||
sudo tar -C $tmpFolder -xf "$targetFile"
|
||||
sudo mkdir -p $targetFolder
|
||||
(echo "yes"; echo "n") | sudo "$installer" -w "$tmpFolder" "$targetFolder"
|
||||
|
||||
rm -rf "$targetFile"
|
||||
|
||||
# Set env variables
|
||||
SetEnvVar "FBXSDK" "$targetFolder"
|
||||
|
||||
echo "FBX SDK = 2016.1.2" >> ~/versions.txt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -35,7 +35,8 @@
|
||||
|
||||
# This script installs INTEGRITY
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/InstallFromCompressedFileFromURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
version="11.4.4"
|
||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/integrity/ghs_$version.tar.gz"
|
||||
@@ -46,10 +47,10 @@ appPrefix=""
|
||||
|
||||
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
||||
|
||||
echo "export INTEGRITY_BSP=platform-cortex-a9" >> ~/.bashrc
|
||||
echo "export INTEGRITY_PATH=$targetFolder/comp_201654" >> ~/.bashrc
|
||||
echo "export INTEGRITY_DIR=$targetFolder/int1144" >> ~/.bashrc
|
||||
echo "export INTEGRITY_GL_INC_DIR=\$INTEGRITY_DIR/INTEGRITY-include/Vivante/sdk/inc" >> ~/.bashrc
|
||||
echo "export INTEGRITY_GL_LIB_DIR=\$INTEGRITY_DIR/libs/Vivante" >> ~/.bashrc
|
||||
SetEnvVar "INTEGRITY_BSP" "platform-cortex-a9"
|
||||
SetEnvVar "INTEGRITY_PATH" "$targetFolder/comp_201654"
|
||||
SetEnvVar "INTEGRITY_DIR" "$targetFolder/int1144"
|
||||
SetEnvVar "INTEGRITY_GL_INC_DIR" "\$INTEGRITY_DIR/INTEGRITY-include/Vivante/sdk/inc"
|
||||
SetEnvVar "INTEGRITY_GL_LIB_DIR" "\$INTEGRITY_DIR/libs/Vivante"
|
||||
|
||||
echo "INTEGRITY = $version" >> ~/versions.txt
|
||||
44
coin/provisioning/common/openssl_for_android_linux.sh → coin/provisioning/common/linux/openssl_for_android_linux.sh
Normal file → Executable file
44
coin/provisioning/common/openssl_for_android_linux.sh → coin/provisioning/common/linux/openssl_for_android_linux.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -36,8 +36,8 @@
|
||||
# This script install OpenSSL from sources.
|
||||
# Requires GCC and Perl to be in PATH.
|
||||
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
version="1.0.2g"
|
||||
officialUrl="https://www.openssl.org/source/openssl-$version.tar.gz"
|
||||
@@ -50,36 +50,16 @@ sha="36af23887402a5ea4ebef91df8e61654906f58f2"
|
||||
# QTQAINFRA-1436
|
||||
opensslHome="${installFolder}openssl-1.0.2"
|
||||
|
||||
ExceptionDownload=99
|
||||
ExceptionTar=100
|
||||
ExceptionConfig=101
|
||||
DownloadURL "$cachedUrl" "$officialUrl" "$sha" "$targetFile"
|
||||
|
||||
try
|
||||
(
|
||||
(DownloadURL "$cachedUrl" "$officialUrl" "$sha" "$targetFile") || throw $ExceptionDownload
|
||||
tar -xzf "$targetFile" -C "$installFolder"
|
||||
# This rename should be removed once hard coded path from Coin is fixed. (QTQAINFRA-1436)
|
||||
mv "${opensslHome}g" "${opensslHome}"
|
||||
pushd "$opensslHome"
|
||||
|
||||
tar -xzf "$targetFile" -C "$installFolder" || throw $ExceptionTar
|
||||
# This rename should be removed once hard coded path from Coin is fixed. (QTQAINFRA-1436)
|
||||
mv "${opensslHome}g" "${opensslHome}"
|
||||
pushd "$opensslHome"
|
||||
perl Configure shared android || throw $ExceptionConfig
|
||||
echo "Running configure"
|
||||
perl Configure shared android
|
||||
|
||||
echo "export OPENSSL_ANDROID_HOME=$opensslHome" >> ~/.bashrc
|
||||
echo "OpenSSL for Android = $version" >> ~/versions.txt
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionDownload)
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionTar)
|
||||
echo "Failed to extract $targetFile"
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionConfig)
|
||||
echo "Failed to run 'config'."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
SetEnvVar "OPENSSL_ANDROID_HOME" "$opensslHome"
|
||||
|
||||
}
|
||||
echo "OpenSSL for Android = $version" >> ~/versions.txt
|
||||
66
coin/provisioning/common/linux/qnx_660.sh
Executable file
66
coin/provisioning/common/linux/qnx_660.sh
Executable file
@@ -0,0 +1,66 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs QNX 6.6.0.
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
targetFolder="/opt/"
|
||||
sourceFile="http://ci-files01-hki.intra.qt.io/input/qnx/linux/qnx660.tar.gz"
|
||||
sha1="E292CCAEF447AC1AA4DAD7802D604A5531ACD8D0"
|
||||
folderName="qnx660"
|
||||
targetFile="qnx660.tar.gz"
|
||||
wget --tries=5 --waitretry=5 --progress=dot:giga --output-document="$targetFile" "$sourceFile"
|
||||
echo "$sha1 $targetFile" | sha1sum --check
|
||||
if [ ! -d "$targetFolder" ]; then
|
||||
mkdir -p $targetFolder
|
||||
fi
|
||||
sudo tar -C $targetFolder -xvzf $targetFile
|
||||
sudo chown -R qt:users "$targetFolder"/"$folderName"
|
||||
|
||||
# Verify that we have last file in tar
|
||||
if [ ! -f $targetFolder/$folderName/qnx660-env.sh ]; then
|
||||
echo "Installation failed!"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
rm -rf $targetFile
|
||||
|
||||
# Set env variables
|
||||
SetEnvVar "QNX_660" "$targetFolder$folderName"
|
||||
|
||||
echo "QNX SDP = 6.6.0" >> ~/versions.txt
|
||||
10
coin/provisioning/common/qnx_700.sh → coin/provisioning/common/linux/qnx_700.sh
Normal file → Executable file
10
coin/provisioning/common/qnx_700.sh → coin/provisioning/common/linux/qnx_700.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -36,6 +36,9 @@
|
||||
# This script installs QNX 7.
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
targetFolder="/opt/"
|
||||
sourceFile="http://ci-files01-hki.intra.qt.io/input/qnx/qnx700.tar.xz"
|
||||
sha1="949a87c5f00d0756956cb4b1b3b213ecaeee9113"
|
||||
@@ -44,7 +47,7 @@ targetFile="qnx700.tar.xz"
|
||||
wget --tries=5 --waitretry=5 --output-document="$targetFile" "$sourceFile"
|
||||
echo "$sha1 $targetFile" | sha1sum --check
|
||||
if [ ! -d "$targetFolder" ]; then
|
||||
mkdir -p $targetFolder
|
||||
mkdir -p $targetFolder
|
||||
fi
|
||||
sudo tar -C $targetFolder -Jxf $targetFile
|
||||
sudo chown -R qt:users "$targetFolder"/"$folderName"
|
||||
@@ -57,5 +60,6 @@ fi
|
||||
|
||||
rm -rf $targetFile
|
||||
# Set env variables
|
||||
echo "export QNX_700=$targetFolder$folderName" >> ~/.bashrc
|
||||
SetEnvVar "QNX_700" "$targetFolder$folderName"
|
||||
|
||||
echo "QNX SDP = 7.0.0" >> ~/versions.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -33,48 +33,59 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script modifies system settings for automated use
|
||||
# This script receives URLs to a compressed file. It then downloads it,
|
||||
# uncompresses it and installs it by default
|
||||
# to /Applications/. This can be overridden by a target parameter.
|
||||
|
||||
# shellcheck source=../common/try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/../common/try_catch.sh"
|
||||
set -ex
|
||||
|
||||
NTS_IP=10.212.2.216
|
||||
# shellcheck source=DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
|
||||
ExceptionGsettings1=100
|
||||
ExceptionGsettings2=101
|
||||
ExceptionGsettings3=102
|
||||
ExceptionNTS=103
|
||||
function InstallAppFromCompressedFileFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
appPrefix=$4
|
||||
target=$5
|
||||
|
||||
try
|
||||
(
|
||||
echo "Timeout for blanking the screen (0 = never)"
|
||||
gsettings set org.gnome.desktop.session idle-delay 0 || throw $ExceptionGsettings1
|
||||
echo "Prevents screen lock when screesaver goes active."
|
||||
gsettings set org.gnome.desktop.screensaver lock-enabled false || throw $ExceptionGsettings2
|
||||
echo "Disable questions on shutdown."
|
||||
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true || throw $ExceptionGsettings3
|
||||
if [ "" == "$target" ]; then
|
||||
target="/Applications/"
|
||||
fi
|
||||
|
||||
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
||||
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts || throw $ExceptionNTS
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionGsettings1)
|
||||
echo "Failed to disable black screen."
|
||||
exit 1;
|
||||
basefilename=${url##*/}
|
||||
extension=${basefilename##*.}
|
||||
filename=${basefilename%.*}
|
||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||
extension="tar.gz"
|
||||
fi
|
||||
|
||||
echo "Extension for file: $extension"
|
||||
echo "Creating temporary file and directory"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension")
|
||||
# macOS 10.10 mktemp does require prefix
|
||||
if [[ $OSTYPE == "darwin14" ]]; then
|
||||
targetDirectory=$(mktemp -d -t '10.10')
|
||||
else
|
||||
targetDirectory=$(mktemp -d)
|
||||
fi
|
||||
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile")
|
||||
echo "Uncompress $targetFile"
|
||||
case $extension in
|
||||
"tar.gz")
|
||||
tar -xzf "$targetFile" --directory "$targetDirectory"
|
||||
;;
|
||||
$ExceptionGsettings2)
|
||||
echo "Failed to prevent screen lock."
|
||||
exit 1;
|
||||
"zip")
|
||||
unzip -q "$targetFile" -d "$targetDirectory"
|
||||
;;
|
||||
$ExceptionGsettings3)
|
||||
echo "Failed to disable questions on shutdown."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionNTS)
|
||||
echo "Failed to set network teset server address into /etc/hosts."
|
||||
exit 1;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "Moving app to '$target'"
|
||||
sudo mv "$targetDirectory/$appPrefix/"* "$target"
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile"
|
||||
echo "Removing directory '$targetDirectory'"
|
||||
rm -rf "$targetDirectory"
|
||||
}
|
||||
|
||||
59
coin/provisioning/common/macos/InstallPKGFromURL.sh
Executable file
59
coin/provisioning/common/macos/InstallPKGFromURL.sh
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
function InstallPKGFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
targetDirectory=$4
|
||||
|
||||
echo "Creating temporary file"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).pkg")
|
||||
echo "Downloading PKG from primary URL '$url'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || (
|
||||
echo "Failed to download '$url' multiple times"
|
||||
echo "Downloading PKG from alternative URL '$url_alt'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt"
|
||||
)
|
||||
echo "Checking SHA1 on PKG '$targetFile'"
|
||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||
/usr/bin/shasum --check $targetFile.sha1
|
||||
echo "Run installer on PKG"
|
||||
sudo installer -package "$targetFile" -target "$targetDirectory"
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -39,6 +39,8 @@
|
||||
|
||||
# shellcheck source=./InstallAppFromCompressedFileFromURL.sh
|
||||
source "${BASH_SOURCE%/*}/InstallAppFromCompressedFileFromURL.sh"
|
||||
# shellcheck source=../unix/SetEnvVar.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/cmake-3.6.2-Darwin-x86_64.tar.gz"
|
||||
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Darwin-x86_64.tar.gz"
|
||||
@@ -47,5 +49,6 @@ appPrefix="cmake-3.6.2-Darwin-x86_64"
|
||||
|
||||
InstallAppFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$appPrefix"
|
||||
|
||||
echo "export PATH=/Applications/CMake.app/Contents/bin:\$PATH" >> ~/.bashrc
|
||||
SetEnvVar "PATH" "/Applications/CMake.app/Contents/bin:\$PATH"
|
||||
|
||||
echo "CMake = 3.6.2" >> ~/versions.txt
|
||||
3
coin/provisioning/common/macos/disable_update_downloads.sh
Executable file
3
coin/provisioning/common/macos/disable_update_downloads.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE
|
||||
|
||||
73
coin/provisioning/common/macos/fbx_macos.sh
Executable file
73
coin/provisioning/common/macos/fbx_macos.sh
Executable file
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env bash
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs FBX SDK
|
||||
|
||||
set -ex
|
||||
|
||||
# shellcheck source=../unix/SetEnvVar.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
|
||||
fileName="fbx20161_2_fbxsdk_clang_mac.pkg.tgz"
|
||||
targetFolder="/opt/fbx"
|
||||
cachedUrl="/net/ci-files01-hki.intra.qt.io/hdd/www/input/fbx/$fileName"
|
||||
officialUrl="http://download.autodesk.com/us/fbx_release_older/2016.1.2/$fileName"
|
||||
sha1="f82535423c700c605320c52e13e781c92208ec6b"
|
||||
targetFolder="/tmp"
|
||||
targetFile="$targetFolder/$fileName"
|
||||
installer="$targetFolder/fbx20161_2_fbxsdk_clang_macos.pkg"
|
||||
|
||||
ExceptionExtractPrimaryUrl=100
|
||||
|
||||
echo "Extracting '$cachedUrl'"
|
||||
tar -xzf "$cachedUrl" -C "$targetFolder" || (
|
||||
echo "Failed to uncompress from '$cachedUrl'"
|
||||
echo "Downloading from '$officialUrl'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$officialUrl"
|
||||
echo "Checking SHA1 on PKG '$targetFile'"
|
||||
echo "$sha1 *$targetFile" > $targetFile.sha1
|
||||
shasum --check $targetFile.sha1
|
||||
echo "Extracting '$targetFile'"
|
||||
tar -xzf "$targetFile" -C "$targetFolder"
|
||||
)
|
||||
|
||||
rm -rf "$targetFile"
|
||||
echo "Running installer for '$installer'"
|
||||
sudo installer -pkg "$installer" -target "/"
|
||||
|
||||
# Set env variables
|
||||
SetEnvVar "FBXSDK" "/Applications/Autodesk/FBX\ SDK/2016.1.2/"
|
||||
|
||||
echo "FBX SDK = 2016.1.2" >> ~/versions.txt
|
||||
|
||||
62
coin/provisioning/common/macos/install-commandlinetools.sh
Executable file
62
coin/provisioning/common/macos/install-commandlinetools.sh
Executable file
@@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
set -ex
|
||||
|
||||
# Command line tools is need by homebrew
|
||||
|
||||
function InstallCommandLineTools {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
packageName=$4
|
||||
version=$5
|
||||
|
||||
DownloadURL $url $url_alt $expectedSha1 /tmp/$packageName
|
||||
echo "Mounting $packageName"
|
||||
hdiutil attach /tmp/$packageName
|
||||
cd "/Volumes/Command Line Developer Tools"
|
||||
echo "Installing"
|
||||
sudo installer -verbose -pkg *.pkg -target /
|
||||
cd /
|
||||
# Let's fait for 5 second before unmounting. Sometimes resource is busy and cant be unmounted
|
||||
sleep 3
|
||||
echo "Unmounting"
|
||||
umount /Volumes/Command\ Line\ Developer\ Tools/
|
||||
echo "Removing $packageName"
|
||||
rm /tmp/$packageName
|
||||
|
||||
echo "Command Line Tools = $version" >> ~/versions.txt
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -44,48 +44,18 @@
|
||||
|
||||
|
||||
|
||||
# shellcheck source=../common/try_catch.sh
|
||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
||||
|
||||
function InstallXCode()
|
||||
{
|
||||
ExceptionCPIO=103
|
||||
ExceptionAcceptLicense=105
|
||||
ExceptionDeveloperMode=113
|
||||
|
||||
function InstallXCode() {
|
||||
sourceFile=$1
|
||||
version=$2
|
||||
|
||||
try
|
||||
(
|
||||
echo "Uncompressing and installing '$sourceFile'"
|
||||
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi) || throw $ExceptionCPIO
|
||||
echo "Uncompressing and installing '$sourceFile'"
|
||||
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi)
|
||||
|
||||
echo "Accept license"
|
||||
sudo xcodebuild -license accept || throw $ExceptionAcceptLicense
|
||||
echo "Accept license"
|
||||
sudo xcodebuild -license accept
|
||||
|
||||
echo "Enabling developer mode, so that using lldb does not require interactive password entry"
|
||||
sudo /usr/sbin/DevToolsSecurity -enable || throw $ExceptionDeveloperMode
|
||||
|
||||
echo "Xcode = $version" >> ~/versions.txt
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
$ExceptionCPIO)
|
||||
echo "Failed to unarchive .cpio."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionDeveloperMode)
|
||||
echo "Failed to enable developer mode."
|
||||
exit 1;
|
||||
;;
|
||||
$ExceptionAcceptLicense)
|
||||
echo "Failed to accept license."
|
||||
exit 1;
|
||||
;;
|
||||
|
||||
esac
|
||||
}
|
||||
echo "Enabling developer mode, so that using lldb does not require interactive password entry"
|
||||
sudo /usr/sbin/DevToolsSecurity -enable
|
||||
|
||||
echo "Xcode = $version" >> ~/versions.txt
|
||||
}
|
||||
|
||||
63
coin/provisioning/common/macos/java.sh
Executable file
63
coin/provisioning/common/macos/java.sh
Executable file
@@ -0,0 +1,63 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs JDK
|
||||
|
||||
set -ex
|
||||
|
||||
echo "Installing Java Development Kit"
|
||||
|
||||
targetFile=jdk-8u102-macosx-x64.dmg
|
||||
|
||||
url=ci-files01-hki.intra.qt.io:/hdd/www/input/mac
|
||||
# url_alt=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-macosx-x64.dmg
|
||||
|
||||
echo "Mounting $targetFile"
|
||||
sudo mount "$url" /Volumes
|
||||
|
||||
sudo cp "/Volumes/$targetFile" /tmp
|
||||
sudo umount /Volumes
|
||||
sudo hdiutil attach "/tmp/$targetFile"
|
||||
|
||||
echo Installing JDK
|
||||
cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /
|
||||
|
||||
echo "Unmounting $targetFile"
|
||||
sudo hdiutil unmount /Volumes/JDK\ 8\ Update\ 102/ -force
|
||||
|
||||
echo "Disable auto update"
|
||||
sudo defaults write /Library/Preferences/com.oracle.java.Java-Updater JavaAutoUpdateEnabled -bool false
|
||||
|
||||
echo "JDK Version = 8 update 102" >> ~/versions.txt
|
||||
11
coin/provisioning/common/macos/pip.sh
Executable file
11
coin/provisioning/common/macos/pip.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function InstallPip {
|
||||
|
||||
python=$1
|
||||
|
||||
# Will install pip utility for python
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
sudo "$python" get-pip.py
|
||||
rm get-pip.py
|
||||
}
|
||||
59
coin/provisioning/common/macos/python2.sh
Executable file
59
coin/provisioning/common/macos/python2.sh
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs python2
|
||||
|
||||
# shellcheck source=./InstallPKGFromURL.sh
|
||||
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
||||
# shellcheck source=./../unix/SetEnvVar.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
# shellcheck source=./pip.sh
|
||||
source "${BASH_SOURCE%/*}/pip.sh"
|
||||
|
||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-2.7.14-macosx10.6.pkg"
|
||||
AltUrl="https://www.python.org/ftp/python/2.7.14/python-2.7.14-macosx10.6.pkg"
|
||||
SHA1="fa2bb77243ad0cb611aa3295204fab403bb0fa09"
|
||||
DestDir="/"
|
||||
|
||||
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||
|
||||
InstallPip /Library/Frameworks/Python.framework/Versions/2.7/bin/python
|
||||
|
||||
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip install virtualenv
|
||||
|
||||
SetEnvVar "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin/:\$PATH"
|
||||
|
||||
echo "python2 = 2.7.14" >> ~/versions.txt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -36,7 +36,12 @@
|
||||
|
||||
# This script installs python3
|
||||
|
||||
# shellcheck source=./InstallPKGFromURL.sh
|
||||
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
||||
# shellcheck source=./../unix/SetEnvVar.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
# shellcheck source=./pip.sh
|
||||
source "${BASH_SOURCE%/*}/pip.sh"
|
||||
|
||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-3.6.1-macosx10.6.pkg"
|
||||
AltUrl="https://www.python.org/ftp/python/3.6.1/python-3.6.1-macosx10.6.pkg"
|
||||
@@ -45,8 +50,12 @@ DestDir="/"
|
||||
|
||||
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||
|
||||
InstallPip /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
|
||||
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3 install virtualenv
|
||||
|
||||
echo "export PYTHON3_PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin" >> ~/.bashrc
|
||||
echo "export PIP3_PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin" >> ~/.bashrc
|
||||
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
||||
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
||||
|
||||
echo "python3 = 3.6.1" >> ~/versions.txt
|
||||
|
||||
49
coin/provisioning/common/macos/sha1sum-compatibility.sh
Executable file
49
coin/provisioning/common/macos/sha1sum-compatibility.sh
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# On macOS the sha1 tool is named 'shasum' while on all other unix systems it is called 'sha1sum'.
|
||||
# In order to make all unix provioning scripts run on macOS without special case handling
|
||||
# a symbolic link is created.
|
||||
# The shasum tool is a perl script which does some globbing to determine the perl version. The
|
||||
# symbolic link has to point directly to the binary including the perl version.
|
||||
# Additionally the CI seems to have multiple parallel perl versions installed which causes
|
||||
# multiple shasum tools to be present (shasum5.16, shasum5.18).
|
||||
#
|
||||
# Currently this is
|
||||
# /usr/local/bin/sha1sum -> /usr/bin/shasum5.18
|
||||
|
||||
[ -d /usr/local/bin ] || sudo mkdir -p /usr/local/bin
|
||||
SHASUM_TOOLNAME=$(ls -r /usr/bin/shasum?.* | head -n1)
|
||||
sudo ln -s "${SHASUM_TOOLNAME}" /usr/local/bin/sha1sum
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Will install pip utility for python
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
sudo python get-pip.py
|
||||
rm get-pip.py
|
||||
@@ -1,7 +0,0 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
$installer = "c:\users\qt\downloads\rubyinstaller-2.3.1.exe"
|
||||
|
||||
Download https://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.3.1.exe http://ci-files01-hki.intra.qt.io/input/ruby/rubyinstaller-2.3.1.exe $installer
|
||||
Verify-Checksum $installer "FF377F6F313849C3B0CD72EEC1EFFA436F0E4A36"
|
||||
& $installer /DIR=C:\ruby /VERYSILENT
|
||||
2
coin/provisioning/common/shared/http_proxy.txt
Normal file
2
coin/provisioning/common/shared/http_proxy.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
proxy="http://proxy.intra.qt.io:3128"
|
||||
|
||||
61
coin/provisioning/common/unix/DownloadURL.sh
Executable file
61
coin/provisioning/common/unix/DownloadURL.sh
Executable file
@@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# A helper script used for downloading a file from a URL or an alternative
|
||||
# URL. Also the SHA1 is checked for the file. Target filename should also
|
||||
# be given.
|
||||
#
|
||||
# If called directly from another script, it will exit the parent script
|
||||
# as well, if not called in its own subshell with parentheses.
|
||||
|
||||
function DownloadURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
targetFile=$4
|
||||
|
||||
echo "Downloading from primary URL '$url'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || (
|
||||
echo "Failed to download '$url' multiple times"
|
||||
echo "Downloading from alternative URL '$url_alt'"
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt"
|
||||
)
|
||||
|
||||
echo "Checking SHA1 on PKG '$targetFile'"
|
||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||
sha1sum --check $targetFile.sha1
|
||||
rm -f $targetFile.sha1
|
||||
}
|
||||
|
||||
79
coin/provisioning/common/unix/InstallFromCompressedFileFromURL.sh
Executable file
79
coin/provisioning/common/unix/InstallFromCompressedFileFromURL.sh
Executable file
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
# shellcheck source=DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||
|
||||
function InstallFromCompressedFileFromURL {
|
||||
url=$1
|
||||
url_alt=$2
|
||||
expectedSha1=$3
|
||||
installDirectory=$4
|
||||
appPrefix=$5
|
||||
|
||||
basefilename=${url##*/}
|
||||
extension=${basefilename##*.}
|
||||
filename=${basefilename%.*}
|
||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||
extension="tar.gz"
|
||||
fi
|
||||
echo "Extension for file: $extension"
|
||||
echo "Creating temporary file and directory"
|
||||
targetFile=$(mktemp "$TMPDIR$(uuidgen)XXXXX.$extension")
|
||||
targetDirectory=$(mktemp -d)
|
||||
DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile"
|
||||
echo "Uncompress $targetFile"
|
||||
case $extension in
|
||||
"tar.gz")
|
||||
tar -xzf "$targetFile" --directory "$targetDirectory"
|
||||
;;
|
||||
"zip")
|
||||
unzip "$targetFile" -d "$targetDirectory"
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "Moving app to $installDirectory"
|
||||
sudo mkdir -p "$installDirectory"
|
||||
sudo mv "$targetDirectory/$appPrefix/"* "$installDirectory"
|
||||
echo "Removing file '$targetFile'"
|
||||
rm "$targetFile"
|
||||
echo "Removing directory '$targetDirectory'"
|
||||
rm -rf "$targetDirectory"
|
||||
}
|
||||
|
||||
51
coin/provisioning/common/unix/SetEnvVar.sh
Executable file
51
coin/provisioning/common/unix/SetEnvVar.sh
Executable file
@@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# A helper script used for setting environment variables on Unix systems
|
||||
|
||||
set -ex
|
||||
|
||||
function SetEnvVar {
|
||||
name=$1
|
||||
path=$2
|
||||
|
||||
echo "Setting environment variable $name to $path."
|
||||
|
||||
if uname -a |grep -q "Ubuntu"; then
|
||||
echo "export $name=$path" >> ~/.profile
|
||||
else
|
||||
echo "export $name=$path" >> ~/.bashrc
|
||||
fi
|
||||
}
|
||||
20
coin/provisioning/common/01-macos-removethemall.sh → coin/provisioning/common/unix/check_and_set_proxy.sh
Normal file → Executable file
20
coin/provisioning/common/01-macos-removethemall.sh → coin/provisioning/common/unix/check_and_set_proxy.sh
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2016 The Qt Company Ltd.
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the test suite of the Qt Toolkit.
|
||||
@@ -32,18 +32,8 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
function RemoveDir {
|
||||
param=$1
|
||||
set -ex
|
||||
|
||||
if [ ! -d $param ]
|
||||
then
|
||||
echo "'$param' don't exists"
|
||||
else
|
||||
echo "Removing $param..."
|
||||
sudo rm -fr $param
|
||||
fi
|
||||
}
|
||||
source "${BASH_SOURCE%/*}/../shared/http_proxy.txt"
|
||||
|
||||
# Remove Android
|
||||
param="/opt/android"
|
||||
RemoveDir $param
|
||||
(wget -q -e "http_proxy=$proxy" --spider proxy.intra.qt.io && echo "Setting http_proxy to $proxy" && export http_proxy=$proxy) || echo "Proxy not detected at $proxy"
|
||||
40
coin/provisioning/common/unix/disable-ntp_macos.sh
Executable file
40
coin/provisioning/common/unix/disable-ntp_macos.sh
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
echo "Disable Network Time Protocol (NTP)"
|
||||
echo "sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist" >> /Users/qt/.bash_profile
|
||||
|
||||
@@ -40,8 +40,10 @@
|
||||
# In case of Linux, we expect to get the values as args
|
||||
set -e
|
||||
|
||||
source "${BASH_SOURCE%/*}/check_and_set_proxy.sh"
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
. $BASEDIR/sw_versions.txt
|
||||
. $BASEDIR/../shared/sw_versions.txt
|
||||
url=$1
|
||||
sha1=$2
|
||||
version=$3
|
||||
@@ -50,7 +52,7 @@ if [ $# -eq 0 ]
|
||||
# The default values are for macOS package
|
||||
echo "Using macOS defaults"
|
||||
version=$libclang_version
|
||||
url="https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_${version//\./}-mac.7z"
|
||||
url="http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_${version//\./}-mac.7z"
|
||||
sha1="4781d154b274b2aec99b878c364f0ea80ff00a80"
|
||||
fi
|
||||
|
||||
@@ -58,12 +60,7 @@ zip="libclang.7z"
|
||||
destination="/usr/local/libclang-$version"
|
||||
|
||||
curl --fail -L --retry 5 --retry-delay 5 -o "$zip" "$url"
|
||||
_shasum=sha1sum
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
echo "DARWIN"
|
||||
_shasum=/usr/bin/shasum
|
||||
fi
|
||||
echo "$sha1 $zip" | $_shasum --check
|
||||
echo "$sha1 $zip" | sha1sum --check
|
||||
7z x $zip -o/tmp/
|
||||
rm -rf $zip
|
||||
|
||||
153
coin/provisioning/common/unix/squishInstall.sh
Executable file
153
coin/provisioning/common/unix/squishInstall.sh
Executable file
@@ -0,0 +1,153 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
# This script will install squish package for Linux and Mac.
|
||||
# Squish is need by Release Test Automation (RTA)
|
||||
|
||||
version="6.3.0"
|
||||
# Branch version without dot
|
||||
qtBranch="59x"
|
||||
squishFolder="/opt/squish"
|
||||
squishUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/coin/$qtBranch/"
|
||||
squishFile="squish-$version-qt$qtBranch-linux64.run"
|
||||
if uname -a |grep -q Darwin; then
|
||||
squishFile="squish-$version-qt$qtBranch-macx86_64.dmg"
|
||||
fi
|
||||
|
||||
squishLicenseUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/coin/"
|
||||
squishLicenseFile=".squish-3-license.tar.gz"
|
||||
|
||||
# These checks can be removed when Vanilla OS for all linux and Mac are in
|
||||
if [ -d "$squishFolder" ]; then
|
||||
echo "Move old squish to /tmp"
|
||||
sudo mv "$squishFolder" "/tmp/squish_$(date)"
|
||||
fi
|
||||
|
||||
if [ -f "/etc/profile.d/squish_env.sh" ]; then
|
||||
echo "Remove /etc/profile.d/squish_env.sh"
|
||||
sudo rm -f "/etc/profile.d/squish_env.sh"
|
||||
export SQUISH_LICENSEKEY_DIR=$HOME
|
||||
fi
|
||||
|
||||
function MountAndInstall {
|
||||
url=$1
|
||||
targetDirectory=$2
|
||||
targetFile=$3
|
||||
|
||||
# Check which platform
|
||||
if uname -a |grep -q Darwin; then
|
||||
usersGroup="staff"
|
||||
mountFolder="/Volumes"
|
||||
squishLicenseDir="/Users/qt"
|
||||
elif uname -a |grep -q "el6\|el7"; then
|
||||
usersGroup="qt"
|
||||
mountFolder="/tmp"
|
||||
squishLicenseDir="/root"
|
||||
elif uname -a |grep -q "Ubuntu"; then
|
||||
usersGroup="users"
|
||||
mountFolder="/tmp"
|
||||
squishLicenseDir="/home/qt"
|
||||
else
|
||||
usersGroup="users"
|
||||
mountFolder="/tmp"
|
||||
squishLicenseDir="/root"
|
||||
fi
|
||||
|
||||
targetFileMount="$mountFolder"/"$targetFile"
|
||||
|
||||
echo "Mounting $url to $mountFolder"
|
||||
sudo mount "$url" $mountFolder
|
||||
echo "Create $targetDirectory if needed"
|
||||
if [ ! -d "/opt" ]; then
|
||||
sudo mkdir "/opt"
|
||||
fi
|
||||
if [ ! -d "$targetDirectory" ]; then
|
||||
sudo mkdir "$targetDirectory"
|
||||
fi
|
||||
echo "Uncompress $targetFile"
|
||||
if [[ $targetFile == *.tar.gz ]]; then
|
||||
if [[ $targetFile == .squish-3-license.* ]]; then
|
||||
target="$squishLicenseDir"
|
||||
# Squish license need to be exists also in users home directory, because squish check it before it starts running tests
|
||||
sudo tar -xzf "$targetFileMount" --directory "$HOME"
|
||||
else
|
||||
target="$targetDirectory"
|
||||
fi
|
||||
sudo tar -xzf "$targetFileMount" --directory "$target"
|
||||
echo "Unmounting $mountFolder"
|
||||
sudo umount $mountFolder
|
||||
elif [[ $targetFile == *.dmg ]]; then
|
||||
echo "'dmg-file', no need to uncompress"
|
||||
sudo cp $targetFileMount /tmp
|
||||
sudo umount $mountFolder
|
||||
sudo hdiutil attach "/tmp/$targetFile"
|
||||
sudo /Volumes/froglogic\ Squish/Install\ Squish.app/Contents/MacOS/Squish unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory"
|
||||
sudo hdiutil unmount /Volumes/froglogic\ Squish/
|
||||
elif [[ $targetFile == *.run ]]; then
|
||||
echo "'run-file', no need to uncompress"
|
||||
sudo cp $targetFileMount $targetDirectory
|
||||
sudo umount $mountFolder
|
||||
sudo $targetDirectory/$targetFile unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory" > /dev/null 2>&1
|
||||
sudo rm -fr "$targetDirectory/$targetFile"
|
||||
if uname -a |grep -q "Ubuntu"; then
|
||||
sudo mkdir /usr/lib/tcl8.6
|
||||
sudo cp "$targetDirectory/package/tcl/lib/tcl8.6/init.tcl" /usr/lib/tcl8.6/
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Changing ownerships"
|
||||
sudo chown -R qt:$usersGroup "$targetDirectory"
|
||||
sudo chown qt:$usersGroup "$HOME/.squish-3-license"
|
||||
}
|
||||
|
||||
echo "Set commands for environment variables in .bashrc"
|
||||
|
||||
if uname -a |grep -q "Ubuntu"; then
|
||||
echo "export SQUISH_PATH=$squishFolder/package" >> ~/.profile
|
||||
echo "export PATH=\$PATH:$quishFolder/squish-$version/bin" >> ~/.profile
|
||||
else
|
||||
echo "export SQUISH_PATH=$squishFolder/package" >> ~/.bashrc
|
||||
echo "export PATH=\$PATH:$quishFolder/squish-$version/bin" >> ~/.bashrc
|
||||
fi
|
||||
|
||||
echo "Installing squish license to home directory.."
|
||||
MountAndInstall "$squishLicenseUrl" "$squishFolder" "$squishLicenseFile"
|
||||
|
||||
echo "Installing squish $version.."
|
||||
MountAndInstall "$squishUrl" "$squishFolder" "$squishFile"
|
||||
58
coin/provisioning/common/windows/03-conan.ps1
Normal file
58
coin/provisioning/common/windows/03-conan.ps1
Normal file
@@ -0,0 +1,58 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
$scriptsPath = "C:\Python27\Scripts"
|
||||
|
||||
Run-Executable "$scriptsPath\pip.exe" "install --upgrade conan==0.24.0"
|
||||
|
||||
# Use Qt Project repository by default
|
||||
Run-Executable "$scriptsPath\conan.exe" "remote add qtproject https://api.bintray.com/conan/qtproject/conan --insert"
|
||||
|
||||
Set-EnvironmentVariable "CI_CONAN_BUILDINFO_DIR" "C:\Utils\conanbuildinfos"
|
||||
|
||||
function Run-Conan-Install
|
||||
{
|
||||
Param (
|
||||
[string]$ConanfilesDir,
|
||||
[string]$BuildinfoDir,
|
||||
[string]$Arch,
|
||||
[string]$Compiler,
|
||||
[string]$CompilerVersion,
|
||||
[string]$CompilerRuntime,
|
||||
[string]$CompilerLibcxx
|
||||
)
|
||||
|
||||
if ($CompilerRuntime) {
|
||||
$extraArgs = "-s compiler.runtime=$($CompilerRuntime)"
|
||||
}
|
||||
|
||||
if ($CompilerLibcxx) {
|
||||
$extraArgs = "-s compiler.libcxx=$($CompilerLibcxx)"
|
||||
}
|
||||
|
||||
$manifestsDir = "$PSScriptRoot\conan_manifests"
|
||||
|
||||
Get-ChildItem -Path "$ConanfilesDir\*.txt" |
|
||||
ForEach-Object {
|
||||
$conanfile = $_.FullName
|
||||
$outpwd = "C:\Utils\conanbuildinfos\$($BuildinfoDir)\$($_.BaseName)"
|
||||
New-Item $outpwd -Type directory -Force
|
||||
|
||||
for ($i = 1; $i -le 5; $i++) {
|
||||
try {
|
||||
Push-Location $outpwd
|
||||
Run-Executable "$scriptsPath\conan.exe" "install -f $conanfile --no-imports --verify $manifestsDir", `
|
||||
'-s', ('compiler="' + $Compiler + '"'), `
|
||||
"-s os=Windows -s arch=$Arch -s compiler.version=$CompilerVersion $extraArgs" `
|
||||
break;
|
||||
} catch {
|
||||
if ($i -eq 5) {
|
||||
throw "Could not install conan content"
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
Copy-Item -Path $conanfile -Destination "$outpwd\conanfile.txt"
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,6 @@ $zip = "c:\users\qt\downloads\Qt3DStudio-3rdparty-win64-CI.zip"
|
||||
Invoke-WebRequest -UseBasicParsing http://ci-files01-hki.intra.qt.io/input/3rdparty/Qt3DStudio-3rdparty-win64-CI.zip -OutFile $zip
|
||||
Verify-Checksum $zip "08D740D2EFB4CBCDE7D012908B89AA48DE5CD4E1"
|
||||
Extract-Zip $zip C:\Utils\Qt3DStudio3rdparty
|
||||
Remove-Item $zip
|
||||
Remove-Item -Path $zip
|
||||
|
||||
[Environment]::SetEnvironmentVariable("QT3DSTUDIO_3RDPARTY_DIR", "C:/Utils/Qt3DStudio3rdparty", "Machine")
|
||||
Set-EnvironmentVariable "QT3DSTUDIO_3RDPARTY_DIR" "C:/Utils/Qt3DStudio3rdparty"
|
||||
@@ -30,7 +30,8 @@
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script allows the Windows Remote Desktop Access
|
||||
|
||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
|
||||
Run-Executable "reg.exe" "add `"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server`" /v fDenyTSConnections /t REG_DWORD /d 0 /f"
|
||||
69
coin/provisioning/common/windows/android-openssl.ps1
Normal file
69
coin/provisioning/common/windows/android-openssl.ps1
Normal file
@@ -0,0 +1,69 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# Requires: 7z, perl and msys
|
||||
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# OpenSSL need to be configured from sources for Android build in windows 7
|
||||
# Msys need to be installed to target machine
|
||||
# More info and building instructions can be found from http://doc.qt.io/qt-5/opensslsupport.html
|
||||
|
||||
$version = "1.0.2j"
|
||||
$zip = "c:\users\qt\downloads\openssl-$version.tar.gz"
|
||||
$sha1 = "bdfbdb416942f666865fa48fe13c2d0e588df54f"
|
||||
$destination = "C:\Utils\openssl-android-master"
|
||||
|
||||
Download https://www.openssl.org/source/openssl-$version.tar.gz \\ci-files01-hki.intra.qt.io\provisioning\openssl\openssl-$version.tar.gz $zip
|
||||
Verify-Checksum $zip $sha1
|
||||
|
||||
Extract-7Zip $zip C:\Utils
|
||||
Extract-7Zip C:\Utils\openssl-$version.tar C:\Utils
|
||||
Rename-Item C:\Utils\openssl-$version $destination
|
||||
Remove-Item -Path $zip
|
||||
Remove-Item C:\Utils\openssl-$version.tar
|
||||
|
||||
Set-EnvironmentVariable "CC" "C:\utils\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\bin\arm-linux-androideabi-gcc"
|
||||
Set-EnvironmentVariable "AR" "C:\utils\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\bin\arm-linux-androideabi-ar"
|
||||
Set-EnvironmentVariable "ANDROID_DEV" "C:\utils\android-ndk-r10e\platforms\android-18\arch-arm\usr"
|
||||
|
||||
# Make sure configure for openssl has a "make" and "perl" available
|
||||
$env:PATH = $env:PATH + ";C:\msys\1.0\bin;C:\strawberry\perl\bin"
|
||||
|
||||
Write-Host "Configuring OpenSSL $version for Android..."
|
||||
Push-Location $destination
|
||||
Run-Executable "C:\msys\1.0\bin\bash.exe" "-c `"c:/strawberry/perl/bin/perl Configure shared android`""
|
||||
Pop-Location
|
||||
|
||||
# Following command is needed when using version 1.1.0. With version 1.1.0 msys is not needed.
|
||||
# C:\mingw530\bin\mingw32-make.exe include\openssl\opensslconf.h
|
||||
100
coin/provisioning/common/windows/android.ps1
Normal file
100
coin/provisioning/common/windows/android.ps1
Normal file
@@ -0,0 +1,100 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script installs Android sdk and ndk
|
||||
# It also runs update for SDK API level 21, latest SDK tools, latest platform-tools and build-tools version $sdkBuildToolsVersion
|
||||
# Android 16 is the minimum requirement for Qt 5.7 applications, but we need something more recent than that for building Qt itself.
|
||||
# E.g The Bluetooth features that require Android 21 will disable themselves dynamically when running on an Android 16 device.
|
||||
# That's why we need to use Andoid-21 API version in Qt 5.9.
|
||||
|
||||
# NDK
|
||||
$ndkVersion = "r10e"
|
||||
$ndkCachedUrl = "\\ci-files01-hki.intra.qt.io\provisioning\android\android-ndk-$ndkVersion-windows-x86.zip"
|
||||
$ndkOfficialUrl = "https://dl.google.com/android/repository/android-ndk-$ndkVersion-windows-x86.zip"
|
||||
$ndkChecksum = "1d0b8f2835be741f3048fb03c0a3e9f71ab7f357"
|
||||
$ndkFolder = "c:\utils\android-ndk-$ndkVersion"
|
||||
$ndkZip = "c:\Windows\Temp\android_ndk_$ndkVersion.zip"
|
||||
|
||||
# SDK
|
||||
$sdkVersion = "r24.4.1"
|
||||
$sdkApi = "ANDROID_API_VERSION"
|
||||
$sdkApiLevel = "android-21"
|
||||
$sdkBuildToolsVersion = "23.0.3"
|
||||
$sdkCachedUrl= "\\ci-files01-hki.intra.qt.io\provisioning\android\android-sdk_$sdkVersion-windows.zip"
|
||||
$sdkOfficialUrl = "https://dl.google.com/android/android-sdk_$sdkVersion-windows.zip"
|
||||
$sdkChecksum = "66b6a6433053c152b22bf8cab19c0f3fef4eba49"
|
||||
$sdkFolder = "c:\utils\android-sdk-windows"
|
||||
$sdkZip = "c:\Windows\Temp\android_sdk_$sdkVersion.zip"
|
||||
|
||||
function Install($1, $2, $3, $4) {
|
||||
$cacheUrl = $1
|
||||
$zip = $2
|
||||
$checksum = $3
|
||||
$offcialUrl = $4
|
||||
|
||||
Download $offcialUrl $cacheUrl $zip
|
||||
Verify-Checksum $zip "$checksum"
|
||||
Extract-Zip $zip C:\Utils
|
||||
}
|
||||
|
||||
function SdkUpdate ($1, $2) {
|
||||
Write-Host "Running Android SDK update for $1..."
|
||||
cmd /c "echo y |$1\tools\android update sdk --no-ui --all --filter $2"
|
||||
}
|
||||
|
||||
Write-Host "Installing Android ndk $nkdVersion"
|
||||
Install $ndkCachedUrl $ndkZip $ndkChecksum $ndkOfficialUrl
|
||||
Set-EnvironmentVariable "ANDROID_NDK_HOME" $ndkFolder
|
||||
Set-EnvironmentVariable "ANDROID_NDK_ROOT" $ndkFolder
|
||||
|
||||
#Write-Host "Installing Android sdk $sdkVersion"
|
||||
Install $sdkCachedUrl $sdkZip $sdkChecksum $sdkOfficialUrl
|
||||
Set-EnvironmentVariable "ANDROID_SDK_HOME" $sdkFolder
|
||||
Set-EnvironmentVariable "ANDROID_API_VERSION" $sdkApiLevel
|
||||
|
||||
# SDK update
|
||||
SdkUpdate $sdkFolder $sdkApiLevel
|
||||
SdkUpdate $sdkFolder tools
|
||||
SdkUpdate $sdkFolder platform-tools
|
||||
SdkUpdate $sdkFolder build-tools-$sdkBuildToolsVersion
|
||||
|
||||
# kill adb. This process prevents provisioning to continue
|
||||
$p = Get-Process -Name "adb.exe" -ErrorAction:SilentlyContinue
|
||||
if ($p -ne $null) {
|
||||
Write-Host "Stopping adb.exe"
|
||||
Stop-Process -Force $p
|
||||
} else {
|
||||
Write-Host "adb.exe not running"
|
||||
}
|
||||
@@ -40,6 +40,9 @@ $zip = "c:\users\qt\downloads\cmake-" + $version + "-win32-x86.zip"
|
||||
$officialurl = "https://cmake.org/files/v" + $majorminorversion + "/cmake-" + $version + "-win32-x86.zip"
|
||||
$cachedurl = "\\ci-files01-hki.intra.qt.io\provisioning\cmake\cmake-" + $version + "-win32-x86.zip"
|
||||
|
||||
Write-Host "Removing old cmake"
|
||||
Remove-Item "C:\CMake" -Force -Recurse -ErrorAction SilentlyContinue
|
||||
|
||||
Download $officialurl $cachedurl $zip
|
||||
Verify-Checksum $zip "541F6E7EFD228E46770B8631FFE57097576E4D4E"
|
||||
|
||||
@@ -49,5 +52,5 @@ Rename-Item $defaultinstallfolder C:\CMake
|
||||
|
||||
Add-Path "C:\CMake\bin"
|
||||
|
||||
echo "CMake = $version" >> ~\versions.txt
|
||||
Write-Output "CMake = $version" >> ~\versions.txt
|
||||
|
||||
4
coin/provisioning/common/windows/disable-ntp.ps1
Normal file
4
coin/provisioning/common/windows/disable-ntp.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# Disable the NTP from syncing
|
||||
Run-Executable "w32tm.exe" "/config /syncfromflags:NO"
|
||||
@@ -30,10 +30,11 @@
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script prevents Windows from going to sleep
|
||||
|
||||
powercfg -change -monitor-timeout-ac 0
|
||||
powercfg -change -standby-timeout-ac 0
|
||||
powercfg -change -disk-timeout-ac 0
|
||||
powercfg -change -hibernate-timeout-ac 0
|
||||
Run-Executable "powercfg.exe" "-change -monitor-timeout-ac 0"
|
||||
Run-Executable "powercfg.exe" "-change -standby-timeout-ac 0"
|
||||
Run-Executable "powercfg.exe" "-change -disk-timeout-ac 0"
|
||||
Run-Executable "powercfg.exe" "-change -hibernate-timeout-ac 0"
|
||||
@@ -30,7 +30,8 @@
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script disables the Windows UAC
|
||||
|
||||
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
|
||||
Run-Executable "reg.exe" "ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f"
|
||||
8
coin/provisioning/common/windows/disable-windefender.ps1
Normal file
8
coin/provisioning/common/windows/disable-windefender.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
# Turning off win defender.
|
||||
#
|
||||
# If disabled manually, windows will automatically enable it after
|
||||
# some period of time. Disabling it speeds up the builds.
|
||||
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
Run-Executable "reg.exe" "ADD `"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender`" /V DisableAntiSpyware /T REG_dWORD /D 1 /F"
|
||||
@@ -33,5 +33,22 @@
|
||||
|
||||
# This script disables the automatic Windows updates
|
||||
|
||||
stop-service wuauserv
|
||||
set-service wuauserv –startup disabled
|
||||
$service = get-service wuauserv
|
||||
if (-not $service) {
|
||||
Write-Host "Windows Update service not found."
|
||||
exit 0
|
||||
}
|
||||
|
||||
if ($service.Status -eq "Stopped") {
|
||||
Write-Host "Windows Update service already stopped."
|
||||
} else {
|
||||
Write-Host "Stopping Windows Update service."
|
||||
Stop-Service -Name "wuauserv" -Force
|
||||
}
|
||||
|
||||
$startup = Get-WmiObject Win32_Service | Where-Object {$_.Name -eq "wuauserv"} | Select -ExpandProperty "StartMode"
|
||||
if ($startup -ne "Disabled") {
|
||||
set-service wuauserv -startup disabled
|
||||
} else {
|
||||
Write-Host "Windows Update service startup already disabled."
|
||||
}
|
||||
19
coin/provisioning/common/windows/dxsdk.ps1
Normal file
19
coin/provisioning/common/windows/dxsdk.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script installs DirectX SDK
|
||||
|
||||
$package = "DXSDK_Jun10.exe"
|
||||
|
||||
$cacheUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\$package"
|
||||
$officialUrl = "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/$package"
|
||||
$sdkChecksum = "8fe98c00fde0f524760bb9021f438bd7d9304a69"
|
||||
$exe = "C:\Windows\Temp\$package"
|
||||
|
||||
Download $officialUrl $cachedUrl $exe
|
||||
|
||||
Write-Host "Installing DirectX SDK"
|
||||
Run-Executable $exe "/u"
|
||||
|
||||
Remove-Item -Path $exe
|
||||
|
||||
Write-Output "DirectX SDK = 9.29.1962 (Jun 10)" >> ~\versions.txt
|
||||
@@ -31,32 +31,36 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script will install Java RE
|
||||
# Official Java RE 7 downloads require Oracle accounts. Using local mirrors only.
|
||||
# This script will install FBX SDK
|
||||
|
||||
$installdir = "C:\Program Files\Java\jre7"
|
||||
$version = "2016.1.2"
|
||||
|
||||
$version = "7u7"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
$arch = "x64"
|
||||
$sha1 = "9af03460c416931bdee18c2dcebff5db50cb8cb3"
|
||||
}
|
||||
else {
|
||||
$arch = "i586"
|
||||
$sha1 = "f76b1be20b144b1ee1d1de3255edb0a6b57d0219"
|
||||
}
|
||||
$name = "fbx20161_2_fbxsdk_vs2015_win"
|
||||
$packageName = "$name.7z"
|
||||
$installerName = "$name.exe"
|
||||
$cacheUrl = "\\ci-files01-hki.intra.qt.io\provisioning\fbx\$packageName"
|
||||
$sha1 = "3690400625672bef6369bcf90dcde4d78b493b24"
|
||||
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\jre-" + $version + "-windows-" + $arch + ".exe"
|
||||
$javaPackage = "C:\Windows\Temp\java-$version.exe"
|
||||
# The executable is an interactive installer only. We can't run it in a script silently.
|
||||
# $officialUrl = "http://download.autodesk.com/us/fbx_release_older/2016.1.2/$installerName"
|
||||
# This sha is for the executable
|
||||
# $sha1 = "54f581c7c19cf5a08cf5e7bc62b8cc7f0617558e"
|
||||
|
||||
Copy-Item $url_cache $javaPackage
|
||||
cmd /c "$javaPackage /s SPONSORS=0"
|
||||
echo "Cleaning $javaPackage.."
|
||||
Remove-Item -Recurse -Force "$javaPackage"
|
||||
#$targetFile = "C:\Windows\Temp\$packageName"
|
||||
$targetFolder = "C:\Program Files\"
|
||||
|
||||
[Environment]::SetEnvironmentVariable("JAVA_HOME", "$installdir", [EnvironmentVariableTarget]::Machine)
|
||||
Add-Path "$installdir\bin"
|
||||
#Write-Host "Downloading '$installerName'"
|
||||
#Download $officialUrl $cacheUrl $targetFile
|
||||
#Verify-Checksum $targetFile $sha1
|
||||
|
||||
Write-Host "Extracting '$cacheUrl'"
|
||||
Extract-7Zip $cacheUrl $targetFolder
|
||||
|
||||
#Remove-Item -Recurse -Force "$packageName"
|
||||
|
||||
Set-EnvironmentVariable "FBXSDK" "$targetFolder\Autodesk\FBX\FBX SDK\2016.1.2"
|
||||
|
||||
Write-Output "FBX SDK = $version" >> ~\versions.txt
|
||||
|
||||
echo "Java = $version $arch" >> ~\versions.txt
|
||||
@@ -5,13 +5,32 @@ function Verify-Checksum
|
||||
[string]$Expected=$(throw("Checksum required")),
|
||||
[ValidateSet("sha1","md5")][string]$Algorithm="sha1"
|
||||
)
|
||||
Write-Host "Verifying checksum of $File"
|
||||
$fs = new-object System.IO.FileStream $File, "Open"
|
||||
$algo = [type]"System.Security.Cryptography.$Algorithm"
|
||||
$crypto = $algo::Create()
|
||||
$hash = [BitConverter]::ToString($crypto.ComputeHash($fs)).Replace("-", "")
|
||||
$fs.Close()
|
||||
if ($hash -ne $Expected) {
|
||||
Write-Error "Checksum verification failed, got: '$hash' expected: '$Expected'"
|
||||
throw "Checksum verification failed, got: '$hash' expected: '$Expected'"
|
||||
}
|
||||
}
|
||||
|
||||
function Run-Executable
|
||||
{
|
||||
Param (
|
||||
[string]$Executable=$(throw("You must specify a program to run.")),
|
||||
[string[]]$Arguments
|
||||
)
|
||||
if ([string]::IsNullOrEmpty($Arguments)) {
|
||||
Write-Host "Running `"$Executable`""
|
||||
$p = Start-Process -FilePath "$Executable" -Wait -PassThru
|
||||
} else {
|
||||
Write-Host "Running `"$Executable`" with arguments `"$Arguments`""
|
||||
$p = Start-Process -FilePath "$Executable" -ArgumentList $Arguments -Wait -PassThru
|
||||
}
|
||||
if ($p.ExitCode -ne 0) {
|
||||
throw "Process $($Executable) exited with exit code $($p.ExitCode)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,24 +40,21 @@ function Extract-7Zip
|
||||
[string]$Source,
|
||||
[string]$Destination
|
||||
)
|
||||
echo "Extracting '$Source' to '$Destination'..."
|
||||
Write-Host "Extracting '$Source' to '$Destination'..."
|
||||
|
||||
if ((Get-Command "7z.exe" -ErrorAction SilentlyContinue) -eq $null) {
|
||||
$zipExe = join-path (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0] '7-zip\7z.exe'
|
||||
$zipExe = join-path (${env:ProgramFiles(x86)}, ${env:ProgramFiles}, ${env:ProgramW6432} -ne $null)[0] '7-zip\7z.exe'
|
||||
if (-not (test-path $zipExe)) {
|
||||
$zipExe = join-path ${env:ProgramW6432} '7-zip\7z.exe'
|
||||
$zipExe = "C:\Utils\sevenzip\7z.exe"
|
||||
if (-not (test-path $zipExe)) {
|
||||
$zipExe = "C:\Utils\sevenzip\7z.exe"
|
||||
if (-not (test-path $zipExe)) {
|
||||
throw "Could not find 7-zip."
|
||||
}
|
||||
throw "Could not find 7-zip."
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$zipExe = "7z.exe"
|
||||
}
|
||||
|
||||
& $zipExe x $Source "-o$Destination" -y
|
||||
Run-Executable "$zipExe" "x -y `"-o$Destination`" `"$Source`""
|
||||
}
|
||||
|
||||
function Extract-Zip
|
||||
@@ -47,7 +63,7 @@ function Extract-Zip
|
||||
[string]$Source,
|
||||
[string]$Destination
|
||||
)
|
||||
echo "Extracting '$Source' to '$Destination'..."
|
||||
Write-Host "Extracting '$Source' to '$Destination'..."
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $Destination
|
||||
$shell = new-object -com shell.application
|
||||
@@ -66,7 +82,7 @@ function Extract-Dev-Folders-From-Zip
|
||||
|
||||
$shell = new-object -com shell.application
|
||||
|
||||
echo "Extracting contents of $package"
|
||||
Write-Host "Extracting contents of $package"
|
||||
foreach ($subDir in "lib", "include", "bin", "share") {
|
||||
$zip = $shell.Namespace($package + "\" + $zipDir + "\" + $subDir)
|
||||
if ($zip) {
|
||||
@@ -96,13 +112,16 @@ function Download
|
||||
[string] $Destination = $(BadParam("a download target location"))
|
||||
)
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
try {
|
||||
Write-Host "Downloading from cached location ($CachedUrl) to $Destination"
|
||||
if ($CachedUrl.StartsWith("http")) {
|
||||
Invoke-WebRequest -UseBasicParsing $CachedUrl -OutFile $Destination
|
||||
} else {
|
||||
Copy-Item $CachedUrl $Destination
|
||||
}
|
||||
} catch {
|
||||
Write-Host "Cached download failed: Downloading from official location: $OfficialUrl"
|
||||
Invoke-WebRequest -UseBasicParsing $OfficialUrl -OutFile $Destination
|
||||
}
|
||||
}
|
||||
@@ -112,18 +131,32 @@ function Add-Path
|
||||
Param (
|
||||
[string]$Path
|
||||
)
|
||||
echo "Adding $Path to Path"
|
||||
Write-Host "Adding $Path to Path"
|
||||
|
||||
$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
[Environment]::SetEnvironmentVariable("Path", $oldPath + ";$Path", [EnvironmentVariableTarget]::Machine)
|
||||
}
|
||||
|
||||
function is64bitWinHost
|
||||
function Set-EnvironmentVariable
|
||||
{
|
||||
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64")) {
|
||||
return 1
|
||||
}
|
||||
else {
|
||||
return 0
|
||||
}
|
||||
Param (
|
||||
[string]$Key = $(BadParam("a key")),
|
||||
[string]$Value = $(BadParam("a value."))
|
||||
)
|
||||
Write-Host "Setting environment variable `"$($Key)`" to `"$($Value)`""
|
||||
|
||||
[Environment]::SetEnvironmentVariable($Key, $Value, [EnvironmentVariableTarget]::Machine)
|
||||
}
|
||||
|
||||
function Is64BitWinHost
|
||||
{
|
||||
return [environment]::Is64BitOperatingSystem
|
||||
}
|
||||
|
||||
function isProxyEnabled {
|
||||
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyEnable
|
||||
}
|
||||
|
||||
function getProxy {
|
||||
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyServer
|
||||
}
|
||||
@@ -37,89 +37,53 @@
|
||||
|
||||
$version = "53_1"
|
||||
|
||||
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64")) {
|
||||
|
||||
$url_official_2012 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_" + $version + "_msvc_2012_64_devel.7z"
|
||||
$url_cache_2012 = "\\ci-files01-hki.intra.qt.io\provisioning\windows\icu_" + $version + "_msvc_2012_64_devel.7z"
|
||||
$sha1_2012 = "8A8C371F3ED58E81BBCF58CF5F8388CEF51FA9AC"
|
||||
if (Is64BitWinHost) {
|
||||
|
||||
$url_official_2013 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2013/icu_" + $version + "_msvc_2013_64_devel.7z"
|
||||
$url_cache_2013 = "\\ci-files01-hki.intra.qt.io/provisioning/windows/icu_" + $version + "_msvc_2013_64_devel.7z"
|
||||
$sha1_2013 = "7267CF8C5BD39C4218F2CCFE31ECA81B7644ED6F"
|
||||
|
||||
$icuPackage_msvc2012_64 = "C:\Windows\Temp\icu-$version-msvc2012_64.7z"
|
||||
$icuPackage_msvc2013_64 = "C:\Windows\Temp\icu-$version-msvc2013_64.7z"
|
||||
|
||||
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2012_64_devel\)) {
|
||||
echo "Fetching from URL ..."
|
||||
Download $url_official_2012 $url_cache_2012 $icuPackage_msvc2012_64
|
||||
Verify-Checksum $icuPackage_msvc2012_64 $sha1_2012
|
||||
Get-ChildItem $icuPackage_msvc2012_64 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2012_64_devel\""}
|
||||
|
||||
echo "Cleaning $icuPackage_msvc2012_64..."
|
||||
Remove-Item -Recurse -Force $icuPackage_msvc2012_64
|
||||
|
||||
echo "ICU MSVC2012 = $version" >> ~\versions.txt
|
||||
}
|
||||
|
||||
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2013_64_devel\)) {
|
||||
echo "Fetching from URL ..."
|
||||
Write-Host "Fetching from URL ..."
|
||||
Download $url_official_2013 $url_cache_2013 $icuPackage_msvc2013_64
|
||||
Verify-Checksum $icuPackage_msvc2013_64 $sha1_2013
|
||||
Get-ChildItem $icuPackage_msvc2013_64 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2013_64_devel\""}
|
||||
|
||||
echo "Cleaning $icuPackage_msvc2013_64..."
|
||||
Write-Host "Cleaning $icuPackage_msvc2013_64..."
|
||||
Remove-Item -Recurse -Force $icuPackage_msvc2013_64
|
||||
|
||||
echo "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||
Write-Output "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||
}
|
||||
|
||||
# FIXME: do we really want to have it per MSVC version? What about MSVC2015?
|
||||
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2012", "C:\\Utils\\icu_53_1_msvc_2012_64_devel\\icu53_1", "Machine")
|
||||
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2013", "C:\\Utils\\icu_53_1_msvc_2013_64_devel\\icu53_1", "Machine")
|
||||
|
||||
# FIXME: do we really want to use the 4.8.2 ICU build?
|
||||
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_Mingw49", "C:\Utils\icu_53_1_Mingw_builds_4_8_2_posix_seh_64_devel\icu53_1", "Machine")
|
||||
Set-EnvironmentVariable "CI_ICU_PATH_Mingw49" "C:\Utils\icu_53_1_Mingw_builds_4_8_2_posix_seh_64_devel\icu53_1"
|
||||
|
||||
} else {
|
||||
|
||||
$url_official_2012_32 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_" + $version + "_msvc_2012_32_devel.7z"
|
||||
$url_cache_2012_32 = "\\ci-files01-hki.intra.qt.io\provisioning\windows\icu_" + $version + "_msvc_2012_32_devel.7z"
|
||||
$sha1_2012_32 = "F2FF287EEB0163B015D37AE08871165FBA87BCF0"
|
||||
|
||||
$url_official_2013_32 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2013/icu_" + $version + "_msvc_2013_32_devel.7z"
|
||||
$url_cache_2013_32 = "\\ci-files01-hki.intra.qt.io/provisioning/windows/icu_" + $version + "_msvc_2013_32_devel.7z"
|
||||
$sha1_2013_32 = "D745A5F0F6A3817AE989501A01A5A0BA53FDB800"
|
||||
|
||||
$icuPackage_msvc2012_32 = "C:\Windows\Temp\icu-$version-msvc2012_32.7z"
|
||||
$icuPackage_msvc2013_32 = "C:\Windows\Temp\icu-$version-msvc2013_32.7z"
|
||||
|
||||
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2012_32_devel\)) {
|
||||
echo "Fetching from URL ..."
|
||||
Download $url_official_2012_32 $url_cache_2012_32 $icuPackage_msvc2012_32
|
||||
Verify-Checksum $icuPackage_msvc2012_32 $sha1_2012_32
|
||||
Get-ChildItem $icuPackage_msvc2012_32 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2012_32_devel\""}
|
||||
|
||||
echo "Cleaning $icuPackage_msvc2012_32..."
|
||||
Remove-Item -Recurse -Force $icuPackage_msvc2012_32
|
||||
|
||||
echo "ICU MSVC2012 = $version" >> ~\versions.txt
|
||||
}
|
||||
|
||||
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2013_32_devel\)) {
|
||||
echo "Fetching from URL ..."
|
||||
Write-Host "Fetching from URL ..."
|
||||
Download $url_official_2013_32 $url_cache_2013_32 $icuPackage_msvc2013_32
|
||||
Verify-Checksum $icuPackage_msvc2013_32 $sha1_2013_32
|
||||
Get-ChildItem $icuPackage_msvc2013_32 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2013_32_devel\""}
|
||||
|
||||
echo "Cleaning $icuPackage_msvc2013_32..."
|
||||
Write-Host "Cleaning $icuPackage_msvc2013_32..."
|
||||
Remove-Item -Recurse -Force $icuPackage_msvc2013_32
|
||||
|
||||
echo "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||
Write-Output "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||
}
|
||||
|
||||
# FIXME: do we really want to have it per MSVC version? What about MSVC2015?
|
||||
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2012", "C:\\Utils\\icu_53_1_msvc_2012_32_devel\\icu53_1", "Machine")
|
||||
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2013", "C:\\Utils\\icu_53_1_msvc_2013_32_devel\\icu53_1", "Machine")
|
||||
|
||||
}
|
||||
@@ -31,16 +31,15 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script will install Dependency Walker 2.2.6000
|
||||
|
||||
$version = "2.2.6000"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "_x64"
|
||||
$sha1 = "4831D2A8376D64110FF9CD18799FE6C69509D3EA"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = "_x86"
|
||||
$sha1 = "bfec714057e8449b0246051be99ba46a7760bab9"
|
||||
}
|
||||
@@ -49,15 +48,15 @@ $url_official = "http://www.dependencywalker.com/depends22" + $arch + ".zip"
|
||||
$dependsPackage = "C:\Windows\Temp\depends-$version.zip"
|
||||
|
||||
$TARGETDIR = "C:\Utils\dependencywalker"
|
||||
if(!(Test-Path -Path $TARGETDIR )){
|
||||
if (!(Test-Path -Path $TARGETDIR )) {
|
||||
New-Item -ItemType directory -Path $TARGETDIR
|
||||
}
|
||||
Download $url_official $url_cache $dependsPackage
|
||||
Verify-Checksum $dependsPackage $sha1
|
||||
|
||||
Get-ChildItem $dependsPackage | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname "-o$TARGETDIR"}
|
||||
Extract-7Zip $dependsPackage $TARGETDIR
|
||||
|
||||
echo "Cleaning $dependsPackage.."
|
||||
Remove-Item -Recurse -Force "$dependsPackage"
|
||||
Write-Host "Cleaning $dependsPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$dependsPackage"
|
||||
|
||||
echo "Dependency Walker = $version" >> ~\versions.txt
|
||||
Write-Output "Dependency Walker = $version" >> ~\versions.txt
|
||||
@@ -30,16 +30,15 @@
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# Install Git version 2.13.0
|
||||
|
||||
$version = "2.13.0"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "-64-bit"
|
||||
$sha1 = "E1D7C6E5E16ACAF3C108064A2ED158F604FA29A7"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = "-32-bit"
|
||||
$sha1 = "03c7df2e4ef61ea6b6f9c0eb7e6d5151d9682aec"
|
||||
}
|
||||
@@ -47,11 +46,11 @@ $gitPackage = "C:\Windows\Temp\Git-" + $version + $arch + ".exe"
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\Git-" + $version + $arch + ".exe"
|
||||
$url_official = "https://github.com/git-for-windows/git/releases/download/v" + $version + ".windows.1/Git-" + $version + $arch + ".exe"
|
||||
|
||||
echo "Fetching Git $version..."
|
||||
Write-Host "Fetching Git $version..."
|
||||
Download $url_official $url_cache $gitPackage
|
||||
Verify-Checksum $gitPackage $sha1
|
||||
echo "Installing Git $version..."
|
||||
cmd /c "$gitPackage /SILENT /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh""
|
||||
remove-item $gitPackage
|
||||
Write-Host "Installing Git $version..."
|
||||
Run-Executable "$gitPackage" "/SILENT /COMPONENTS=`"icons,ext\reg\shellhere,assoc,assoc_sh`""
|
||||
Remove-Item -Path $gitPackage
|
||||
|
||||
echo "Git = $version" >> ~\versions.txt
|
||||
Write-Output "Git = $version" >> ~\versions.txt
|
||||
@@ -31,18 +31,17 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script will install Java SE
|
||||
|
||||
$installdir = "C:\Program Files\Java\jdk1.8.0_144"
|
||||
|
||||
$version = "8u144"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "x64"
|
||||
$sha1 = "adb03bc3f4b40bcb3227687860798981d58e1858"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = "i586"
|
||||
$sha1 = "3b9ab95914514eaefd72b815c5d9dd84c8e216fc"
|
||||
}
|
||||
@@ -51,13 +50,13 @@ $url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\jdk-" + $version
|
||||
$official_url = "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-" + $version + "-windows-" + $arch + ".exe"
|
||||
$javaPackage = "C:\Windows\Temp\jdk-$version.exe"
|
||||
|
||||
echo "Fetching Java SE $version..."
|
||||
Write-Host "Fetching Java SE $version..."
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
try {
|
||||
echo "...from local cache"
|
||||
Invoke-WebRequest -UseBasicParsing $url_cache -OutFile $javaPackage
|
||||
Write-Host "...from local cache"
|
||||
Download $url_cache $url_cache $javaPackage
|
||||
} catch {
|
||||
echo "...from oracle.com"
|
||||
Write-Host "...from oracle.com"
|
||||
$client = new-object System.Net.WebClient
|
||||
$cookie = "oraclelicense=accept-securebackup-cookie"
|
||||
$client.Headers.Add("Cookie", $cookie)
|
||||
@@ -68,11 +67,11 @@ try {
|
||||
|
||||
Verify-Checksum $javaPackage $sha1
|
||||
|
||||
cmd /c "$javaPackage /s SPONSORS=0"
|
||||
echo "Cleaning $javaPackage.."
|
||||
Remove-Item -Recurse -Force "$javaPackage"
|
||||
Run-Executable "$javaPackage" "/s SPONSORS=0"
|
||||
Write-Host "Cleaning $javaPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$javaPackage"
|
||||
|
||||
[Environment]::SetEnvironmentVariable("JAVA_HOME", "$installdir", [EnvironmentVariableTarget]::Machine)
|
||||
Set-EnvironmentVariable "JAVA_HOME" "$installdir"
|
||||
Add-Path "$installdir\bin"
|
||||
|
||||
echo "Java SE = $version $arch" >> ~\versions.txt
|
||||
Write-Output "Java SE = $version $arch" >> ~\versions.txt
|
||||
@@ -31,7 +31,7 @@
|
||||
##
|
||||
############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
function InstallMinGW
|
||||
{
|
||||
@@ -55,14 +55,13 @@ function InstallMinGW
|
||||
Download $url_official $url_cache $mingwPackage
|
||||
Verify-Checksum $mingwPackage $sha1
|
||||
|
||||
Get-ChildItem $mingwPackage | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname "-o$TARGETDIR"}
|
||||
Extract-7Zip $mingwPackage $TARGETDIR
|
||||
|
||||
echo "Adding MinGW environment variable."
|
||||
[Environment]::SetEnvironmentVariable("$envvar", "$targetdir\mingw32", [EnvironmentVariableTarget]::Machine)
|
||||
Set-EnvironmentVariable "$envvar" "$targetdir\mingw32"
|
||||
|
||||
echo "Cleaning $mingwPackage.."
|
||||
Remove-Item -Recurse -Force "$mingwPackage"
|
||||
Write-Host "Cleaning $mingwPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$mingwPackage"
|
||||
|
||||
echo "MinGW = $version $release" >> ~\versions.txt
|
||||
Write-Output "MinGW = $version $release" >> ~\versions.txt
|
||||
|
||||
}
|
||||
@@ -31,16 +31,15 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script will install Notepad++
|
||||
|
||||
$version = "7.3"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = ".x64"
|
||||
$sha1 = "E7306DF1D6E81801FB4BE0868610DB70E979B0AA"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = ""
|
||||
$sha1 = "d4c403675a21cc381f640b92e596bae3ef958dc6"
|
||||
}
|
||||
@@ -50,18 +49,12 @@ $nppPackage = "C:\Windows\Temp\npp-$version.exe"
|
||||
|
||||
Download $url_official $url_cache $nppPackage
|
||||
Verify-Checksum $nppPackage $sha1
|
||||
cmd /c "$nppPackage /S"
|
||||
Run-Executable "$nppPackage" "/S"
|
||||
|
||||
echo "Cleaning $nppPackage.."
|
||||
Remove-Item -Recurse -Force "$nppPackage"
|
||||
Write-Host "Cleaning $nppPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$nppPackage"
|
||||
|
||||
echo "Notepad++ = $version" >> ~\versions.txt
|
||||
Write-Output "Notepad++ = $version" >> ~\versions.txt
|
||||
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
Rename-Item -Path "C:\Program Files (x86)\Notepad++\updater" -NewName "updater_disabled"
|
||||
}
|
||||
else {
|
||||
Rename-Item -Path "C:\Program Files\Notepad++\updater" -NewName "updater_disabled"
|
||||
}
|
||||
|
||||
echo "Auto-updating disabled."
|
||||
Write-Host "Disabling auto updates."
|
||||
Rename-Item -Path "C:\Program Files\Notepad++\updater" -NewName "updater_disabled"
|
||||
@@ -38,9 +38,13 @@
|
||||
$version = "6.6.0"
|
||||
$nondottedversion = $version -replace '[.]',''
|
||||
$targetFolder = "c:"
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\qnx" + $nondottedversion + ".zip"
|
||||
$fileName = "qnx" + $nondottedversion + ".zip"
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\" + $fileName
|
||||
$zip = "C:\Windows\Temp\" + $fileName
|
||||
|
||||
Get-ChildItem $url_cache | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o"C:\"}
|
||||
Download $url_cache $url_cache $zip
|
||||
Verify-Checksum $zip "52e451648eeef1f14a516fa03d8ddd1a59d485cd"
|
||||
Extract-7Zip $zip $targetFolder
|
||||
|
||||
[Environment]::SetEnvironmentVariable("QNX_660", "$targetFolder", "Machine")
|
||||
echo "QNX = $version" >> ~\versions.txt
|
||||
Set-EnvironmentVariable "QNX_660" "$targetFolder"
|
||||
Write-Output "QNX = $version" >> ~\versions.txt
|
||||
@@ -31,30 +31,27 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script will install Ruby
|
||||
|
||||
$version = "2.2.6"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
$version = "2.4.2-2"
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "-x64"
|
||||
$sha1 = "4D0E366F0264CDED174E5842B2435E22B81FB57A"
|
||||
}
|
||||
else {
|
||||
$arch = ""
|
||||
$sha1 = "8649309fffe9c746ad5549d3f7b70490806e95df"
|
||||
$sha1 = "c961c2752a183487bc42ed24beb7e931230fa7d5"
|
||||
} else {
|
||||
$arch = "-x86"
|
||||
$sha1 = "2639a481c3b5ad11f57d5523cc41ca884286089e"
|
||||
}
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\rubyinstaller-" + $version + $arch + ".exe"
|
||||
$url_official = "https://bintray.com/oneclick/rubyinstaller/download_file?file_path=rubyinstaller-" + $version + $arch + ".exe"
|
||||
$url_official = "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-" + $version + "/rubyinstaller-" + $version + $arch + ".exe"
|
||||
$rubyPackage = "C:\Windows\Temp\rubyinstaller-$version.exe"
|
||||
|
||||
Download $url_official $url_cache $rubyPackage
|
||||
Verify-Checksum $rubyPackage $sha1
|
||||
cmd /c "$rubyPackage /silent"
|
||||
Run-Executable $rubyPackage "/dir=C:\Ruby-$version$arch /tasks=modpath /verysilent"
|
||||
|
||||
echo "Cleaning $rubyPackage.."
|
||||
Remove-Item -Recurse -Force "$rubyPackage"
|
||||
Write-Host "Cleaning $rubyPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$rubyPackage"
|
||||
|
||||
Add-Path "C:\Ruby22-x64\bin"
|
||||
|
||||
echo "Ruby = $version" >> ~\versions.txt
|
||||
Write-Output "Ruby = $version" >> ~\versions.txt
|
||||
@@ -31,18 +31,17 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script installs 7-Zip
|
||||
|
||||
$version = "16.04"
|
||||
$nonDottedVersion = "1604"
|
||||
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "-x64"
|
||||
$sha1 = "338A5CC5200E98EDD644FC21807FDBE59910C4D0"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = ""
|
||||
$sha1 = "dd1cb1163c5572951c9cd27f5a8dd550b33c58a4"
|
||||
}
|
||||
@@ -54,11 +53,11 @@ $7zTargetLocation = "C:\Utils\sevenzip\"
|
||||
|
||||
Download $url_official $url_cache $7zPackage
|
||||
Verify-Checksum $7zPackage $sha1
|
||||
Start-Process -FilePath $7zPackage -ArgumentList "/S","/D=$7zTargetLocation" -Wait
|
||||
Run-Executable $7zPackage "/S","/D=$7zTargetLocation"
|
||||
|
||||
echo "Cleaning $7zPackage.."
|
||||
Remove-Item -Recurse -Force "$7zPackage"
|
||||
Write-Host "Cleaning $7zPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$7zPackage"
|
||||
|
||||
Add-Path $7zTargetLocation
|
||||
|
||||
echo "7-Zip = $version" >> ~\versions.txt
|
||||
Write-Output "7-Zip = $version" >> ~\versions.txt
|
||||
@@ -31,28 +31,28 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script installs Strawberry Perl
|
||||
|
||||
$version = "5.26.0.1"
|
||||
if( (is64bitWinHost) -eq 1 ) {
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "-64bit"
|
||||
$sha1 = "2AE2EDA36A190701399130CBFEE04D00E9BA036D"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$arch = "-32bit"
|
||||
$sha1 = "b50b688a879f33941433774b2813bfd4b917e4ee"
|
||||
}
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\strawberry-perl-" + $version + $arch + ".msi"
|
||||
$url_official = "http://strawberryperl.com/download/" + $version + "/strawberry-perl-" + $version + $arch + ".msi"
|
||||
$strawberryPackage = "C:\Windows\Temp\strawberry-installer-$version.msi"
|
||||
$installer_name = "strawberry-perl-" + $version + $arch + ".msi"
|
||||
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\" + $installer_name
|
||||
$url_official = "http://strawberryperl.com/download/" + $version + "/" + $installer_name
|
||||
$strawberryPackage = "C:\Windows\Temp\" + $installer_name
|
||||
|
||||
Download $url_official $url_cache $strawberryPackage
|
||||
Verify-Checksum $strawberryPackage $sha1
|
||||
cmd /c "$strawberryPackage /QB INSTALLDIR=C:\strawberry REBOOT=REALLYSUPPRESS"
|
||||
Run-Executable "$strawberryPackage" "/QB INSTALLDIR=C:\strawberry REBOOT=REALLYSUPPRESS"
|
||||
|
||||
echo "Cleaning $strawberryPackage.."
|
||||
Remove-Item -Recurse -Force "$strawberryPackage"
|
||||
Write-Host "Cleaning $strawberryPackage.."
|
||||
Remove-Item -Recurse -Force -Path "$strawberryPackage"
|
||||
|
||||
echo "strawberry = $version" >> ~\versions.txt
|
||||
Write-Output "strawberry = $version" >> ~\versions.txt
|
||||
@@ -6,4 +6,4 @@ Invoke-WebRequest -UseBasicParsing http://download.qt.io/official_releases/jom/j
|
||||
Verify-Checksum $zip "80EE5678E714DE99DDAF5F7593AB04DB1C7928E4"
|
||||
Extract-Zip $zip C:\Utils\Jom
|
||||
|
||||
[Environment]::SetEnvironmentVariable("CI_JOM_PATH", "C:\Utils\Jom", "Machine")
|
||||
Set-EnvironmentVariable "CI_JOM_PATH" "C:\Utils\Jom"
|
||||
@@ -1,10 +1,10 @@
|
||||
param([Int32]$archVer=32)
|
||||
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# PySide versions following 5.6 use a C++ parser based on Clang (http://clang.org/).
|
||||
# The Clang library (C-bindings), version 3.9 or higher is required for building.
|
||||
|
||||
Get-Content "$PSScriptRoot\..\common\sw_versions.txt" | Foreach-Object {
|
||||
Get-Content "$PSScriptRoot\..\shared\sw_versions.txt" | Foreach-Object {
|
||||
$var = $_.Split('=')
|
||||
New-Variable -Name $var[0] -Value $var[1]
|
||||
$libclang_version = $libclang_version -replace '["."]'
|
||||
@@ -12,10 +12,10 @@ Get-Content "$PSScriptRoot\..\common\sw_versions.txt" | Foreach-Object {
|
||||
|
||||
if ( $archVer -eq 64 ) {
|
||||
$sha1 = "dc42beb0efff130c4d7dfef3c97adf26f1ab04e0"
|
||||
$url = "https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_$libclang_version-windows-vs2015_64.7z"
|
||||
$url = "http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_$libclang_version-windows-vs2015_64.7z"
|
||||
} else {
|
||||
$sha1 = "64e826c00ae632fbb28655e6e1fa9194980e1205"
|
||||
$url = "https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_$libclang_version-windows-vs2015_32.7z"
|
||||
$url = "http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_$libclang_version-windows-vs2015_32.7z"
|
||||
}
|
||||
|
||||
$zip = "c:\users\qt\downloads\libclang.7z"
|
||||
@@ -24,9 +24,10 @@ $destination = "C:\Utils\libclang-" + $libclang_version
|
||||
Download $url $url $zip
|
||||
Verify-Checksum $zip $sha1
|
||||
|
||||
C:\Utils\sevenzip\7z.exe x $zip -oC:\Utils\
|
||||
Extract-7Zip $zip C:\Utils\
|
||||
Rename-Item C:\Utils\libclang $destination
|
||||
Remove-Item -Force -Path $zip
|
||||
|
||||
[Environment]::SetEnvironmentVariable("LLVM_INSTALL_DIR", $destination, [EnvironmentVariableTarget]::Machine)
|
||||
del $zip
|
||||
echo "libClang = $libclang_version" >> ~/versions.txt
|
||||
Set-EnvironmentVariable "LLVM_INSTALL_DIR" $destination
|
||||
|
||||
Write-Output "libClang = $libclang_version" >> ~/versions.txt
|
||||
@@ -44,4 +44,4 @@ Verify-Checksum $archive "396a3224c306480f24a583850d923d06aa4377c1"
|
||||
Extract-7Zip $archive $libusb_location
|
||||
|
||||
# Tell qt-apps/qdb build system where to find libusb
|
||||
[Environment]::SetEnvironmentVariable("LIBUSB_PATH", $libusb_location, "Machine")
|
||||
Set-EnvironmentVariable "LIBUSB_PATH" $libusb_location
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user