kind
Sets the kind of binary object being created by the project or configuration, such as a console or windowed application, or a shared or static library.
kind ("kind")
Parameters
kind is one of the following string identifiers:
Applies To
Project configurations.
Availability
The Makefile kind is available in Premake 5.0.0-alpha1 and later, and are supported for Visual Studio and Codelite. The None kind is available in Premake 5.0.0-alpha1 and later, and are supported for gmakelegacy, gmake, Codelite, Ninja, and Visual Studio. The Utility kind is only available for Visual Studio, Codelite and gmake, as well as very limited support in gmakelegacy. The SharedItems kind is only available for Visual Studio 2013 and later.
Examples
Set the project to build a command-line executable.
kind "ConsoleApp"
Set the project to build a shared library (DLL).
kind "SharedLib"
Build either a static or a shared library, depending on the selected build configuration.
workspace "MyWorkspace"
configurations { "DebugLib", "DebugDLL", "ReleaseLib", "ReleaseDLL" }
project "MyProject"
filter "*Lib"
kind "StaticLib"
filter "*DLL"
kind "SharedLib"
