-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
32 lines (28 loc) · 1.22 KB
/
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
31
32
from conans import ConanFile, CMake, tools
class YadiConan(ConanFile):
name = "yadi"
version = "0.5.4"
license = "<Put the package license here>"
url = "<Package recipe repository url here, for issues about the package>"
description = "<Description of Yadi here>"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
requires = "yaml-cpp/master@ebclar2/stable"
build_requires = "cmake_installer/1.0@conan/stable"
options = {"shared": [True, False]}
default_options = "shared=True", "yaml-cpp:fPIC=True", "cmake_installer:version=3.9.0"
no_copy_source=True
exports_sources = "*"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
self.copy("*.hpp", dst="include", src="%s/src" % self.source_folder)
self.copy("*.hpp", dst="include", src="%s/inspector" % self.source_folder)
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.dylib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
self.copy("yadi_inspector", dst="bin", keep_path=False)
def package_info(self):
self.cpp_info.libs = ["yadi", "yadi_inspector_lib"]