mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-28 22:54:33 +00:00
58 lines
1.4 KiB
Python
58 lines
1.4 KiB
Python
# This Python file uses the following encoding: utf-8
|
|
|
|
from BuildBotLib.make import Make
|
|
from buildbot.plugins import util
|
|
from BuildBotLib.secretManager import SecretManager
|
|
|
|
|
|
class QMake(Make):
|
|
|
|
def __init__(self):
|
|
Make.__init__(self)
|
|
|
|
@util.renderer
|
|
def linuxXmakeCmd(self, props):
|
|
command = [
|
|
'qmake-linux',
|
|
"-r",
|
|
"CONFIG+=qtquickcompiler",
|
|
'ONLINE="~/repo"'
|
|
]
|
|
|
|
return command
|
|
|
|
@util.renderer
|
|
def windowsXmakeCmd(self, props):
|
|
command = [
|
|
'qmake-windows',
|
|
'-spec', 'win32-g++',
|
|
"-r",
|
|
"CONFIG+=qtquickcompiler",
|
|
'ONLINE="~/repo"'
|
|
]
|
|
|
|
return command
|
|
|
|
@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') + '"'
|
|
|
|
]
|
|
|
|
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'}
|