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 buildbot.plugins import util
|
|
|
|
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
|
|
|
@util.renderer
|
|
|
|
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
|
|
|
|
|
|
|
@util.renderer
|
|
|
|
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
|
|
|
|
|
|
|
@util.renderer
|
|
|
|
def androidXmakeCmd(self, props):
|
|
|
|
secret = SecretManager("/home/andrei/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') + '"'
|
|
|
|
|
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
|
|
|
|
|
|
|
|
@util.renderer
|
|
|
|
def androidXmakeEnv(self, props):
|
|
|
|
return {'ANDROID_NDK_ROOT': '/home/andrei/Android/ndk-bundle',
|
|
|
|
'JAVA_HOME': '/usr',
|
|
|
|
'ANDROID_HOME': '/home/andrei/Android'}
|