-
Notifications
You must be signed in to change notification settings - Fork 0
App object
{
-- The name of the app
name = "",
-- The path to the app
currentPath = "",
-- Table of app dependencies
dependencies = {},
-- The group this app is part of
group = "Libs",
-- The location of the ide project files
location = "Build/%{_ACTION}",
-- The path where intermediate files end up at
objectDir = "Output/" .. name .. "/Obj/",
-- The path where the output files end up at
targetDir = "Output/" .. name .. "/Bin/",
-- The include path of the app
includeDir = name .. "/Include/",
-- The source path of the app
sourceDir = name .. "/Source/",
-- The resource path of the app
resourceDir = name .. "/Assets/",
-- The path to where to run the project from
debugDir = name .. "/Run/",
-- The warning level of the app
warnings = "Default",
-- Table of state objects
states = {}
}
local currentPath, verbose = ...
local globalApp = require("premake/app")
local app = globalApp.app(name, currentPath, verbose)
name
= string
- The name of the app.
currentPath
= string
- The current local path of the app.
verbose
= boolean
- Should the function be verbose.
App
- It returns the newly created app.
local globalApp = require("premake/app")
local app = globalApp.local_app(verbose)
Verbose
= boolean
- Should the function be verbose
App
- It returns the app from premakeApp.lua
.
local currentPath, verbose = ...
local globalApp = require("premake/app")
local app = globalApp.third_party_app(name, currentPath, verbose)
name
= string
- The name of the app.
currentPath
= string
- The current local path of the app.
verbose
= boolean
- Should the function be verbose.
App
- It returns the app at Third_Party/{name}/premakeApp.lua
.
local currentPath, verbose = ...
local globalApp = require("premake/app")
local app = globalApp.third_party_library(name, currentPath, verbose)
name
= string
- The name of the library.
currentPath
= string
- The current local path of the app.
verbose
= boolean
- Should the function be verbose.
App
- It returns the library at Third_Party/{name}.lua
.
local globalApp = require("premake/app")
globalApp.addDependency(app, dependency, verbose)
app
= App
- The app to add the dependency to.
dependency
= App
- The dependency to add to the app.
verbose
= boolean
- Should the function be verbose.
local globalApp = require("premake/app")
globalApp.addState(app, state, verbose)
app
= App
- The app to add the state to.
state
= State
- The state to add to the app.
verbose
= boolean
- Should the function be verbose.