QuasarAppCI/BuildBotLib/crossplatformQmake.py
2020-01-31 15:04:48 +03:00

47 lines
1.1 KiB
Python

# This Python file uses the following encoding: utf-8
from BuildBotLib.qmake import QMake
from BuildBotLib.secretManager import SecretManager
class CrossplatformQmake (QMake):
def __init__(self, platform):
QMake.__init__(self, platform)
def linuxXmakeCmd(self, props):
command = [
'qmake-linux',
"-r",
"CONFIG+=qtquickcompiler",
'ONLINE="~/repo"'
]
return command
def windowsXmakeCmd(self, props):
command = [
'qmake-windows',
'-spec', 'win32-g++',
"-r",
"CONFIG+=qtquickcompiler",
'ONLINE="~/repo"'
]
return command
def androidXmakeCmd(self, props):
secret = SecretManager(self.home + "/buildBotSecret/secret.json")
command = [
'qmake-android',
'-spec', 'android-clang',
"-r",
"CONFIG+=qtquickcompiler",
'SIGN_PATH="' + secret.getValue('SIGPATH') + '"',
'SIGN_ALIES="quasarapp"',
'SIGN_STORE_PASSWORD="' + secret.getValue('SIGPASS') + '"'
]
return command