mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-05-03 08:49:38 +00:00
fix cnd factory
This commit is contained in:
parent
6753124e81
commit
4e6eec99f6
@ -98,6 +98,51 @@ class Make(BaseModule):
|
|||||||
|
|
||||||
return command;
|
return command;
|
||||||
|
|
||||||
|
@util.renderer
|
||||||
|
def androidXmakeEnv:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
@util.renderer
|
||||||
|
def windowsXmakeEnv:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
@util.renderer
|
||||||
|
def linuxXmakeEnv:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
def makePrefix():
|
||||||
|
return ""
|
||||||
|
|
||||||
|
def generateStep(cmd, platform, desc, checkFunc) :
|
||||||
|
|
||||||
|
platformCgek = {
|
||||||
|
'linux': isLinux,
|
||||||
|
'windows': isWin,
|
||||||
|
'android': isAndroid,
|
||||||
|
}
|
||||||
|
|
||||||
|
platformEnv = {
|
||||||
|
'linux': linuxXmakeEnv,
|
||||||
|
'windows': windowsXmakeEnv,
|
||||||
|
'android': androidXmakeEnv,
|
||||||
|
}
|
||||||
|
|
||||||
|
res = steps.ShellCommand(
|
||||||
|
command = cmd,
|
||||||
|
haltOnFailure = True,
|
||||||
|
doStepIf = lambda step : checkFunc(step) and platformCgek[platform](step),
|
||||||
|
hideStepIf = lambda step : not (checkFunc(step) and platformCgek[platform](step)),
|
||||||
|
name = makePrefix + 'Make ' + platform,
|
||||||
|
env=platformEnv[platform],
|
||||||
|
description = desc,
|
||||||
|
)
|
||||||
|
|
||||||
|
return res;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def LinuxSteps(self) :
|
def LinuxSteps(self) :
|
||||||
list = [
|
list = [
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
@ -105,6 +150,7 @@ class Make(BaseModule):
|
|||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isLinux(step),
|
doStepIf = lambda step : isLinux(step),
|
||||||
name = 'QMake Linux',
|
name = 'QMake Linux',
|
||||||
|
env=linuxXmakeEnv,
|
||||||
description = 'create a make files for projects',
|
description = 'create a make files for projects',
|
||||||
),
|
),
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
@ -160,7 +206,7 @@ class Make(BaseModule):
|
|||||||
command = androidQmake,
|
command = androidQmake,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : self.isAndroid(step),
|
doStepIf = lambda step : self.isAndroid(step),
|
||||||
|
env=androidXmakeEnv,
|
||||||
name = 'QMake Android',
|
name = 'QMake Android',
|
||||||
description = 'create a make files for projects',
|
description = 'create a make files for projects',
|
||||||
),
|
),
|
||||||
@ -210,6 +256,7 @@ class Make(BaseModule):
|
|||||||
command = self.windowsXmakeCmd,
|
command = self.windowsXmakeCmd,
|
||||||
name = 'QMake Windows',
|
name = 'QMake Windows',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
|
env=windowsXmakeEnv,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step),
|
||||||
description = 'create a make files for projects',
|
description = 'create a make files for projects',
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user