Skip to content
This repository was archived by the owner on Oct 30, 2021. It is now read-only.

premake app.lua

Markus edited this page Nov 25, 2020 · 4 revisions

Functions

APP.DebugLog

Syntax:

APP.DebugLog(message)

Parameters:

message = str - The string to only print when the --verbose flag was given to the premake5 command

APP.DebugLogGlobals

Syntax:

APP.DebugLogGlobals()

APP.SetWorkspaceName

Syntax:

APP.SetWorkspaceName(workspaceName)

Parameters:

workspaceName = str - The name of the workspace

APP.AddPlatform

Syntax:

APP.AddPlatform(platform)

Parameters:

platform = str - The platform to add

APP.ClearPlatforms

Syntax:

APP.ClearPlatforms()

APP.AddConfiguration

Syntax:

APP.AddConfiguration(configuration)

Parameters:

configuration = str - The configuration to add

APP.ClearConfigurations

Syntax:

APP.ClearConfigurations()

APP.SetThirdPartyFolder

Syntax:

APP.SetThirdPartyFolder(thirdPartyFolder)

Parameters:

thirdPartyFolder = string - The folder that points to the third party stuff

APP.SetDefaultIncludeFolder

Syntax:

APP.SetDefualtIncludeFolder(includeFolder)

Parameters:

includeFolder = string - The folder that points to the include stuff

APP.SetDefaultSourceFolder

Syntax:

APP.SetDefaultSourceFolder(sourceFolder)

Parameters:

sourceFolder = string - The folder that points to the source stuff

APP.SetDefaultDebugFolder

Syntax:

APP.SetDefaultDebugFolder(debugFolder)

Parameters:

debugFolder = string - The folder to start the application from

APP.SetStartApp

Syntax:

APP.SetStartApp(app)

Parameters:

app = app - The app to set as startup app

APP.GetThirdPartyApp

Syntax:

local thirdPartyApp = APP.GetThirdPartyApp(app)

Parameters:

app = string - The name of the app to load

Return values:

thirdPartyApp = app - The third party app that was loaded

APP.GetThirdPartyLibrary

Syntax:

local thirdPartyLibrary = APP.GetThirdPartyLibrary(library)

Parameters:

library = string - The name of the library to load

Return values:

thirdPartyLibrary = app - The third party library that was loaded

APP.GetApp

Syntax:

local customPathedApp = APP.GetApp(app)

Parameters:

app = string - The path to the app to load

Return values:

customPathedApp = app - The app that was loaded

APP.GetLibrary

Syntax:

local customPathedLibrary = APP.GetLibrary(library)

Parameters:

library = string - The path to the library to load

Return values:

customPathedLibrary = app - The library that was loaded

APP.GetLocalApp

Syntax:

local app = APP.GetLocalApp()

Return fvalues:

app = app - The app at "premakeApp.lua"

APP.GetOrCreateApp

Syntax:

local app = APP.GetOrCreateApp(name)

Parameters:

name = string - The name of the app

Return values:

app = app - The newly created app

APP.PremakeApp

Syntax:

APP.PremakeApp(app)

Parameters:

app = app - The app to call premake functions on

APP.PremakeWorkspace

Syntax:

APP.PremakeWorkspace()