2021-11-13 08:31:32 +00:00
|
|
|
if (not Aurora.Settings.sAbsRoot) then
|
|
|
|
Aurora.Settings.sAbsRoot = os.realpath(os.getcwd() .. "/../..") .. "/"
|
|
|
|
end
|
|
|
|
|
|
|
|
if (Aurora.Settings.sRelRoot) then
|
|
|
|
Aurora.Settings.sAbsRoot = Aurora.Settings.sAbsRoot .. Aurora.Settings.sRelRoot .. "/"
|
|
|
|
end
|
|
|
|
|
|
|
|
if (Aurora.Settings.sRelAuRoot) then
|
|
|
|
Aurora.Settings.sAbsAuRoot = Aurora.Settings.sAbsRoot .. Aurora.Settings.sRelAuRoot .. "/"
|
|
|
|
end
|
|
|
|
|
|
|
|
local function resolvePathAbs2(key, rootKey)
|
|
|
|
local val = auGetSetting(key)
|
|
|
|
if (not val) then return end
|
2023-12-09 22:10:43 +00:00
|
|
|
local path = os.realpath(auGetSetting(rootKey) .. val)
|
2023-12-09 19:13:46 +00:00
|
|
|
local key2 = "sAbs" .. key:sub(5)
|
2023-12-09 22:10:43 +00:00
|
|
|
if (Aurora.Settings[key2]) then return Aurora.Settings[key2] end
|
2023-12-09 19:13:46 +00:00
|
|
|
Aurora.Settings[key2] = path
|
2021-11-13 08:31:32 +00:00
|
|
|
return path
|
|
|
|
end
|
|
|
|
|
|
|
|
local function resolvePathAbs(key)
|
|
|
|
local path = resolvePathAbs2(key, "sAbsRoot")
|
2022-03-04 17:05:38 +00:00
|
|
|
|
|
|
|
if (not path) then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2021-11-13 08:31:32 +00:00
|
|
|
if (not os.isdir(path)) then
|
|
|
|
os.mkdir(path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resolvePathAbs("sRelDebug")
|
|
|
|
resolvePathAbs("sRelStage")
|
|
|
|
resolvePathAbs("sRelShip")
|
|
|
|
resolvePathAbs("sRelWd")
|
|
|
|
resolvePathAbs("sRelSymbols")
|
|
|
|
resolvePathAbs("sRelLinkLibs")
|
|
|
|
resolvePathAbs("sRelCompilerWd")
|
2023-12-09 22:10:43 +00:00
|
|
|
resolvePathAbs("sRelRootInclude")
|
2022-03-04 17:05:38 +00:00
|
|
|
|
2021-11-13 08:31:32 +00:00
|
|
|
local function resolveAuPathAbs(key)
|
|
|
|
return resolvePathAbs2(key, "sAbsAuRoot")
|
|
|
|
end
|
|
|
|
|
|
|
|
resolveAuPathAbs("sRelRepoScripts")
|
|
|
|
resolveAuPathAbs("sRelUnixBins")
|
|
|
|
resolveAuPathAbs("sRelWin32")
|
|
|
|
resolveAuPathAbs("sRelScripts")
|