Fix case. (might be problematic with custom override of premake module, such as premake-qt).
This commit is contained in:
parent
f4a52819bd
commit
3e50620473
@ -388,19 +388,19 @@
|
||||
local dependencies = {}
|
||||
local makefilerules = {}
|
||||
local function addrule(dependencies, makefilerules, config, filename)
|
||||
if #config.buildcommands == 0 or #config.buildOutputs == 0 then
|
||||
if #config.buildcommands == 0 or #config.buildoutputs == 0 then
|
||||
return false
|
||||
end
|
||||
local inputs = table.implode(project.getrelative(cfg.project, config.buildInputs), "", "", " ")
|
||||
local inputs = table.implode(project.getrelative(cfg.project, config.buildinputs), "", "", " ")
|
||||
if filename ~= "" and inputs ~= "" then
|
||||
filename = filename .. " "
|
||||
end
|
||||
local outputs = project.getrelative(cfg.project, config.buildOutputs[1])
|
||||
local outputs = project.getrelative(cfg.project, config.buildoutputs[1])
|
||||
local buildmessage = ""
|
||||
if config.buildmessage then
|
||||
buildmessage = "\t@{ECHO} " .. config.buildmessage .. "\n"
|
||||
end
|
||||
local commands = table.implode(config.buildCommands,"\t","\n","")
|
||||
local commands = table.implode(config.buildcommands,"\t","\n","")
|
||||
table.insert(makefilerules, os.translateCommandsAndPaths(outputs .. ": " .. filename .. inputs .. "\n" .. buildmessage .. commands, cfg.project.basedir, cfg.project.location))
|
||||
table.insertflat(dependencies, outputs)
|
||||
return true
|
||||
|
@ -430,7 +430,7 @@
|
||||
end
|
||||
|
||||
function m.buildStep(cfg)
|
||||
if #cfg.buildCommands > 0 or #cfg.buildOutputs > 0 or #cfg.buildInputs > 0 or cfg.buildMessage then
|
||||
if #cfg.buildcommands > 0 or #cfg.buildoutputs > 0 or #cfg.buildinputs > 0 or cfg.buildmessage then
|
||||
|
||||
p.push('<CustomBuildStep>')
|
||||
p.callArray(m.elements.buildStep, cfg)
|
||||
|
Loading…
Reference in New Issue
Block a user