[+] Embedding example
This commit is contained in:
parent
befb90a055
commit
02c1c4d0d8
35
README_Premake.md
Normal file
35
README_Premake.md
Normal 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)
|
||||
```
|
@ -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:
|
||||
```
|
||||
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user