Build: Little refactor
This commit is contained in:
parent
d62720d610
commit
1334dc1fc2
|
|
@ -511,18 +511,29 @@ function NazaraBuild:LoadConfig()
|
||||||
description = "Setup additionnals install directories (library binaries will be copied there)"
|
description = "Setup additionnals install directories (library binaries will be copied there)"
|
||||||
})
|
})
|
||||||
|
|
||||||
self.Config["InstallDir"] = self.Config["InstallDir"] or ""
|
configTable["Configurations"] = configs
|
||||||
if (_OPTIONS["install-path"] ~= nil) then
|
|
||||||
self.Config["InstallDir"] = self.Config["InstallDir"] .. ";" .. _OPTIONS["install-path"]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local paths = string.explode(self.Config["InstallDir"], ";")
|
-- InstallDir
|
||||||
|
do
|
||||||
|
newoption({
|
||||||
|
trigger = "install-path",
|
||||||
|
description = "Setup additionnals install directories (library binaries will be copied there), separated by commas"
|
||||||
|
})
|
||||||
|
|
||||||
|
configTable["InstallDir"] = configTable["InstallDir"] or ""
|
||||||
|
if (_OPTIONS["install-path"] ~= nil) then
|
||||||
|
configTable["InstallDir"] = configTable["InstallDir"] .. ";" .. _OPTIONS["install-path"]
|
||||||
|
end
|
||||||
|
|
||||||
|
local paths = string.explode(configTable["InstallDir"], ";")
|
||||||
for k,v in pairs(paths) do
|
for k,v in pairs(paths) do
|
||||||
if (#v > 0) then
|
if (#v > 0) then
|
||||||
self:AddInstallPath(v)
|
self:AddInstallPath(v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function NazaraBuild:MakeInstallCommands(infoTable)
|
function NazaraBuild:MakeInstallCommands(infoTable)
|
||||||
if (os.is("windows")) then
|
if (os.is("windows")) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue