PremakeDeps¶
Warning
This feature is experimental and subject to breaking changes. See the Conan stability section for more information.
The PremakeDeps
is the dependencies generator for Premake.
The PremakeDeps
generator can be used by name in conanfiles:
class Pkg(ConanFile):
generators = "PremakeDeps"
[generators]
PremakeDeps
And it can also be fully instantiated in the conanfile generate()
method:
from conan import ConanFile
from conan.tools.premake import PremakeDeps
class App(ConanFile):
settings = "os", "arch", "compiler", "build_type"
requires = "zlib/1.2.11"
def generate(self):
bz = PremakeDeps(self)
bz.generate()
Generated files¶
When the PremakeDeps
generator is used, every invocation of conan install
will
generate a include('conandeps.premake5.lua')
that can be included and used in the project:
-- premake5.lua
include('conandeps.premake5.lua')
workspace "HelloWorld"
conan_setup()
configurations { "Debug", "Release" }
platforms { "x86_64" }