-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathconanfile.py
More file actions
42 lines (33 loc) · 1.16 KB
/
conanfile.py
File metadata and controls
42 lines (33 loc) · 1.16 KB
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
38
39
40
41
42
# This file defines the cmake toolchain with the required dependencies to build
# Soar. The Python version is used instead of the pure text version since the
# user presets file must be changed.
#
# Conan documentation: https://docs.conan.io/2/
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class soarRecipe(ConanFile):
name = "soar"
version = "9.6.3"
package_type = "application"
# Binary configuration
settings = "os", "compiler", "build_type", "arch"
def layout(self):
cmake_layout(self)
def requirements(self):
self.requires("sqlite3/3.40.0")
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
# The cmake user presets file must be changed from the default,
# otherwise cyclic imports with toolchain file CMakePresets.json will
# occur
tc.user_presets_path = 'ConanPresets.json'
tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()