[+] Embedding example

This commit is contained in:
Reece Wilson 2023-12-09 23:31:18 +00:00
parent befb90a055
commit 02c1c4d0d8
2 changed files with 35 additions and 22 deletions

35
README_Premake.md Normal file
View File

@ -0,0 +1,35 @@
# 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)
```

View File

@ -1,22 +0,0 @@
# Example
Including Aurora in your existing pipeline
```lua
Aurora = {
Settings = {
[TODO:] = ...,
[TODO:] = ...,
[TODO:] = ...
}
}
require([./] "path/to/aurora" [.lua])
```
Using Aurora in the official premake example:
```
```