-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
37 lines (30 loc) · 799 Bytes
/
conanfile.py
File metadata and controls
37 lines (30 loc) · 799 Bytes
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
33
34
35
36
37
from conans import ConanFile
from conan.tools.cmake import CMake, cmake_layout
class Package(ConanFile):
name = 'addr2field'
version = '1.0.0'
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'CMakeToolchain', 'CMakeDeps', 'VirtualBuildEnv'
requires = (
'libdwarf/0.7.0@novakov/local',
'libelf/0.8.13',
'ms-gsl/4.0.0',
'spdlog/1.12.0',
)
tool_requires = (
'cmake/3.25.1@',
)
scm = {
'type': 'git',
'url': 'auto',
'revision': 'auto',
}
def _configure_cmake(self):
cmake = CMake(self)
cmake.configure()
return cmake
def build(self):
cmake = self._configure_cmake()
cmake.build()
def layout(self):
cmake_layout(self)