mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Add qt sdk support
This commit is contained in:
parent
d3a215c12b
commit
91c5fb567a
7 changed files with 101 additions and 4 deletions
2
buildserver/Vagrantfile
vendored
2
buildserver/Vagrantfile
vendored
|
|
@ -70,6 +70,8 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.provision "shell", path: "provision-android-sdk"
|
||||
config.vm.provision "shell", path: "provision-android-ndk",
|
||||
args: ["/home/vagrant/android-ndk"]
|
||||
config.vm.provision "shell", path: "provision-qt-sdk",
|
||||
args: ["/home/vagrant/qt-sdk"]
|
||||
config.vm.provision "shell", path: "provision-pip",
|
||||
args: ["compare-locales"]
|
||||
config.vm.provision "shell", path: "provision-gradle"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ ndk_paths = {
|
|||
'r11c': "/home/vagrant/android-ndk/r11c",
|
||||
'r12b': "/home/vagrant/android-ndk/r12b",
|
||||
}
|
||||
qt_sdk_path = "/home/vagrant/qt-sdk/5.7.0/5.7"
|
||||
java_paths = {
|
||||
'8': "/usr/lib/jvm/java-8-openjdk-i386",
|
||||
}
|
||||
|
|
|
|||
83
buildserver/provision-qt-sdk
Normal file
83
buildserver/provision-qt-sdk
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
QT_DIR=$1
|
||||
|
||||
test -e $QT_DIR || mkdir -p $QT_DIR
|
||||
|
||||
cat << EOF > $QT_DIR/5.7.0-installer.qs
|
||||
// Bases on script from http://stackoverflow.com/a/34032216
|
||||
|
||||
function Controller() {
|
||||
installer.autoRejectMessageBoxes();
|
||||
installer.installationFinished.connect(function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
})
|
||||
}
|
||||
|
||||
Controller.prototype.WelcomePageCallback = function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.CredentialsPageCallback = function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.IntroductionPageCallback = function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.TargetDirectoryPageCallback = function()
|
||||
{
|
||||
gui.currentPageWidget().TargetDirectoryLineEdit.setText("$QT_DIR/5.7.0");
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.ComponentSelectionPageCallback = function() {
|
||||
var widget = gui.currentPageWidget();
|
||||
|
||||
// You can get these component names by running the installer with the
|
||||
// --verbose flag. It will then print out a resource tree.
|
||||
|
||||
widget.deselectAll();
|
||||
widget.selectComponent("qt.55.gcc_64");
|
||||
widget.selectComponent("qt.57.qtwebengine.gcc_64");
|
||||
widget.selectComponent("qt.57.android_x86");
|
||||
widget.selectComponent("qt.57.android_armv7");
|
||||
|
||||
// widget.deselectComponent("...");
|
||||
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.LicenseAgreementPageCallback = function() {
|
||||
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.StartMenuDirectoryPageCallback = function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.ReadyForInstallationPageCallback = function()
|
||||
{
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.FinishedPageCallback = function() {
|
||||
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
|
||||
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
|
||||
checkBoxForm.launchQtCreatorCheckBox.checked = false;
|
||||
}
|
||||
gui.clickButton(buttons.FinishButton);
|
||||
}
|
||||
EOF
|
||||
|
||||
if [ ! -e $QT_DIR/5.7.0 ]; then
|
||||
echo "Installing Qt SDK 5.7.0 to $QT_DIR/5.7.0 ..."
|
||||
/vagrant/cache/qt-opensource-linux-x64-android-5.7.0.run --platform minimal --script $QT_DIR/5.7.0-installer.qs --verbose
|
||||
echo "Qt SDK 5.7.0 installation done."
|
||||
fi
|
||||
|
||||
rm $QT_DIR/5.7.0-installer.qs
|
||||
Loading…
Add table
Add a link
Reference in a new issue