53 lines
1.3 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
2019-10-06 19:15:02 +03:00
def __init__(self):
2019-12-26 13:48:06 +03:00
Make.__init__(self)
2019-07-22 10:20:59 +03:00
2019-10-06 20:17:52 +03:00
def linuxXmakeCmd(self, props):
command = [
'qmake-linux',
"-r",
"CONFIG+=qtquickcompiler",
'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
def windowsXmakeCmd(self, props):
command = [
'qmake-windows',
'-spec', 'win32-g++',
"-r",
"CONFIG+=qtquickcompiler",
'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
def androidXmakeCmd(self, props):
2019-12-26 16:18:17 +03:00
secret = SecretManager(self.home + "/buildBotSecret/secret.json")
2019-10-06 20:17:52 +03:00
command = [
'qmake-android',
'-spec', 'android-clang',
"-r",
"CONFIG+=qtquickcompiler",
'SIGN_PATH="' + secret.getValue('SIGPATH') + '"',
'SIGN_ALIES="quasarapp"',
'SIGN_STORE_PASSWORD="' + secret.getValue('SIGPASS') + '"'
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
def androidXmakeEnv(self, props):
2019-12-26 16:18:17 +03:00
return {'ANDROID_NDK_ROOT': self.home + 'andrei/Android/ndk-bundle',
2019-12-26 13:48:06 +03:00
'JAVA_HOME': '/usr',
2019-12-26 16:18:17 +03:00
'ANDROID_HOME': self.home + '/Android'}