56 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-07-22 14:58:30 +03:00
from buildbot.plugins import secrets, util, steps
2019-07-22 10:20:59 +03:00
from pathlib import Path
import datetime
import os
import subprocess
2019-07-22 17:17:44 +03:00
from BuildBotLib.secretManager import *
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):
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"'
];
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;