-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconanfile.py
More file actions
37 lines (29 loc) · 970 Bytes
/
Copy pathconanfile.py
File metadata and controls
37 lines (29 loc) · 970 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 conan import ConanFile
from conan.tools.cmake import CMake, cmake_layout
class Dwarf2cppConan(ConanFile):
name = "dwarf2cpp"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
default_options = {
"llvm-core/*:targets": "X86;AArch64",
"llvm-core/*:tools": False,
"llvm-core/*:utils": False,
"llvm-core/*:with_z3": False,
"llvm-core/*:with_libedit": False,
"llvm-core/*:backtraces": False,
"llvm-core/*:crash_overrides": False,
}
def layout(self):
cmake_layout(self)
def requirements(self):
self.requires("llvm-core/22.1.7")
self.requires("nanobind/2.12.0")
def build_requirements(self):
self.tool_requires("cmake/[>=3.27]")
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()