Build: Little refactor

This commit is contained in:
Lynix 2016-12-09 08:58:19 +01:00
parent d62720d610
commit 1334dc1fc2
1 changed files with 22 additions and 11 deletions

View File

@ -511,18 +511,29 @@ function NazaraBuild:LoadConfig()
description = "Setup additionnals install directories (library binaries will be copied there)"
})
self.Config["InstallDir"] = self.Config["InstallDir"] or ""
if (_OPTIONS["install-path"] ~= nil) then
self.Config["InstallDir"] = self.Config["InstallDir"] .. ";" .. _OPTIONS["install-path"]
configTable["Configurations"] = configs
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
if (#v > 0) then
self:AddInstallPath(v)
end
end
end
end
function NazaraBuild:MakeInstallCommands(infoTable)
if (os.is("windows")) then