[*] Getting ready to nuke legacy Aurora.lua

This commit is contained in:
Reece Wilson 2022-01-17 20:19:09 +00:00
parent d28d058dd7
commit f4e1bfa241
4 changed files with 28 additions and 32 deletions

View File

@ -1,25 +1,3 @@
-------------------------------------------------------
-- options.lua
-------------------------------------------------------
local tbl =
{
"target-win32",
"target-linux",
"target-switch",
"target-ps5",
"target-x86_64",
"target-arm",
"target-wayland"
}
for i, k in pairs(tbl) do
local key = string.sub(k, 8)
_G[key] = false
if (_OPTIONS[k]) then
_G[key] = true
end
end
-------------------------------------------------------
-- globals
-------------------------------------------------------
@ -331,11 +309,6 @@ end
function isWeakCircularReference(depName)
local curName = getCurrentProjectName()
local cur = projectsprocessor[curName]
if (not cur) then
return
end
local dep = projectsprocessor[depName]
if (not dep) then
return

View File

@ -7,7 +7,7 @@ local feature = function()
excludes("**/" .. name .. "/**")
end
filter(auFilterOf({notPlatforms = {"win32"}, notArchs = {"win64"}}))
filter(auFilterOf({notPlatforms = {"win32"}, notArchs = {"x86_64"}}))
excludeFiles "win64"
filter(auFilterOf({notPlatforms = {"win32"}}))

View File

@ -104,4 +104,28 @@ end
function auAddFeature(...)
addFeature(...)
end
function auGetCurrentProject()
return getCurrentProjectName()
end
function auGetCurrentProjectProcessor()
return getProjectProcessor(auGetCurrentProject())
end
function auGetCurrentProjectMeta()
return auGetCurrentProjectProcessor():getMeta()
end
function auIsProjectIntialized(name)
return isProjectLoaded(name)
end
function auProcessSolution()
processSolution()
end
function auAddVist(vist)
addVisit(vist)
end

View File

@ -1,9 +1,8 @@
--
-- If this is your entrypoint, you should consider starting premake from the global directory
--
-- If this is your entrypoint, you should consider starting premake from the public/global directory
-- Developers should look to the global directory for the user facing API
-- Developers should look to the public/global directory for the user facing API
require("Public.base")
function startSolution(name)