-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
41 lines (35 loc) · 952 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
31
32
33
34
35
36
37
38
39
40
41
from conan import ConanFile
from conan.tools.files import copy
from conan.tools.scons import SConsDeps
class Recipe(ConanFile):
name = "caches"
version = "0.1.0"
def build_requirements(self):
self.test_requires("gtest/1.12.1")
def export_sources(self):
for source in [
"conanfile.py",
"SConstruct.py",
"src/*.[cht]pp",
]:
copy(
self,
source,
self.recipe_folder,
self.export_sources_folder,
)
def generate(self):
SConsDeps(self).generate()
def package(self):
copy(
self,
"*.[ht]pp",
f"{self.build_folder}/src",
f"{self.package_folder}/include/{self.name}",
)
copy(
self,
"*.a",
f"{self.build_folder}/dist",
f"{self.package_folder}/lib",
)