2020-06-19 18:22:01 +03:00

48 lines
1.1 KiB
Python

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