-
Notifications
You must be signed in to change notification settings - Fork 20
kind
mba105 edited this page Sep 21, 2014
·
5 revisions
Home > [Scripting Reference](Scripting Reference) > kind
The kind function sets the kind of binary object being created by the project, such as a console or windowed application, or a shared or static library.
#!lua
kind ("kind")
Solutions, projects, and configurations.
kind is one of the following string identifiers:
- ConsoleApp: A console or command-line application.
- WindowedApp: An application which runs in a desktop window. This distinction does not apply on Linux, but is important on Windows and Mac OS X.
- SharedLib: A shared library or DLL.
- StaticLib: A static library.
Set the project to build a command-line executable.
#!lua
kind "ConsoleApp"
Set the project to build a shared library (DLL).
#!lua
kind "SharedLib"
Build either a static or a shared library, depending on the selected build configuration.
#!lua
solution "MySolution"
configurations { "DebugLib", "DebugDLL", "ReleaseLib", "ReleaseDLL" }
project "MyProject"
configuration "*Lib"
kind "StaticLib"
configuration "*DLL"
kind "SharedLib"