Build/README_Premake.md

1.2 KiB

Example

Including Aurora in your existing pipeline

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)