forked from decimad/luabind-deboostified
-
Notifications
You must be signed in to change notification settings - Fork 2
/
conanfile.py
31 lines (25 loc) · 960 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from conans import ConanFile, CMake, tools
class LuabindDeboostifiedConan(ConanFile):
name = "luabind-deboostified"
version = "1.0"
license = "ZLIB"
author = "Marius Elvert [email protected]"
url = "https://github.com/ltjax/luabind-deboostified"
description = "Create Lua bindings for your C++ code easily"
topics = ("lua", "bindings")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": False}
generators = "cmake"
exports_sources = "luabind/*", "src/*", "doc/*", "CMakeLists.txt",
requires = "lua/5.1@ltjax/testing"
def build(self):
cmake = CMake(self)
cmake.configure(source_folder=".",defs={
'LUABIND_BUILD_SHARED': self.options.shared,
})
cmake.build()
def package(self):
CMake(self).install()
def package_info(self):
self.cpp_info.libs = ["luabind"]