50 lines
1.2 KiB
Python
Raw Normal View History

2019-07-22 10:20:59 +03:00
# This Python file uses the following encoding: utf-8
2019-10-06 20:17:52 +03:00
from BuildBotLib.make import Make
2019-12-26 13:48:06 +03:00
from BuildBotLib.secretManager import SecretManager
2019-07-22 10:20:59 +03:00
2019-10-06 19:15:02 +03:00
class QMake(Make):
2019-07-22 10:20:59 +03:00
2020-01-31 14:55:49 +03:00
def __init__(self, platform):
2020-01-31 15:04:48 +03:00
Make.__init__(self, platform)
2020-06-19 18:22:01 +03:00
# self.buildSystems = self.B_QMake
2019-07-22 10:20:59 +03:00
2020-01-31 14:55:49 +03:00
def makePrefix(self):
return "Q"
def mainCmd(self):
2019-10-06 20:17:52 +03:00
command = [
2020-01-31 14:55:49 +03:00
'qmake',
2019-10-06 20:17:52 +03:00
"-r",
"CONFIG+=qtquickcompiler",
2020-03-14 17:01:16 +03:00
"CONFIG+=ccache",
2019-10-06 20:17:52 +03:00
'ONLINE="~/repo"'
2019-12-26 13:48:06 +03:00
]
2019-10-06 20:17:52 +03:00
2019-12-26 13:48:06 +03:00
return command
2019-10-06 20:17:52 +03:00
2020-01-31 14:55:49 +03:00
def linuxXmakeCmd(self, props):
return self.mainCmd()
2019-10-06 20:17:52 +03:00
2020-01-31 14:55:49 +03:00
def windowsXmakeCmd(self, props):
return self.mainCmd()
2019-10-06 20:17:52 +03:00
def androidXmakeCmd(self, props):
2021-04-06 00:33:46 +03:00
file = self.home + "/buildBotSecret/secret.json"
secret = SecretManager(file, props)
2019-10-06 20:17:52 +03:00
command = [
2020-01-31 14:55:49 +03:00
'qmake',
2019-10-06 20:17:52 +03:00
'-spec', 'android-clang',
"-r",
"CONFIG+=qtquickcompiler",
'SIGN_PATH="' + secret.getValue('SIGPATH') + '"',
'SIGN_ALIES="quasarapp"',
2020-08-29 01:50:38 +03:00
'SIGN_STORE_PASSWORD="' + secret.getValue('SIGPASS') + '"',
2020-08-30 18:40:24 +03:00
'ANDROID_ABIS=arm64-v8a'
2019-10-06 20:17:52 +03:00
2019-12-26 13:48:06 +03:00
]
2019-10-06 20:17:52 +03:00
2019-12-26 13:48:06 +03:00
return command