-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
68 lines (54 loc) · 1.44 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
from conan import ConanFile
from conan.tools.files import copy
from conan.tools.scons import SConsDeps
from conan.tools.layout import basic_layout
class CachesConan(ConanFile):
name = "caches"
description = "Extensible cache templates."
version = "0.4.0"
license = "MIT"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/JoelLefkowitz/caches"
topics = (
"cache",
"fifo",
"lifo",
"lru",
"header-only",
)
package_type = "header-library"
settings = (
"os",
"arch",
"compiler",
"build_type",
)
no_copy_source = True
exports = "src/*"
def layout(self):
basic_layout(self, src_folder="src")
def generate(self):
SConsDeps(self).generate()
def package_id(self):
self.info.clear()
def build_requirements(self):
self.test_requires("gtest/1.12.1")
def build(self):
pass
def package(self):
copy(
self,
"LICENSE.md",
self.recipe_folder,
os.path.join(self.package_folder, "licenses"),
)
copy(
self,
"*.[ht]pp",
os.path.join(self.recipe_folder, "src"),
os.path.join(self.package_folder, "include", self.name),
)
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []