Build/README_Premake.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

2023-12-09 23:31:18 +00:00
# Example
Including Aurora in your existing pipeline
```lua
premake.path = premake.path .. ";" .. os.realpath(path.translate("<premake scripts>"))
local Aurora = _G.Aurora or {}
_G.Aurora = Aurora
Aurora.Settings = {}
Aurora.Settings.sAbsRoot = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsAuRoot = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsScripts = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsWin32 = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsRepoScripts = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsDebug = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsStage = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsShip = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsWd = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsSymbols = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsLinkLibs = os.realpath(path.translate("<>"))
Aurora.Settings.sAbsCompilerWd = os.realpath(path.translate("<>"))
require("Core/Premake/Premake")
require("Public/base")
local function start()
auStart()
-- Proceed to start solution logic.
end
xpcall(start, auFatal)
```