-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
47 lines (39 loc) · 1.35 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
from conan import ConanFile
from conan.tools.meson import Meson
from conan.tools.files import copy
class Pkg(ConanFile):
name = "bpd"
version = "0.3.0"
license = "MIT"
author = "Cooper Larson | [email protected]"
url = ""
description = ("A lightweight & performant, single-header bounded-priority-deque"
" that supports: { min, max, custom-comparator }.")
topics = ("c++", "data structures", "algorithms", "performance")
settings = "os", "compiler", "arch", "build_type"
requires = [
"gtest/1.14.0"
]
generators = "PkgConfigDeps", "MesonToolchain"
exports_sources = "meson.build", "include/*", "test/*"
implements = ["auto_header_only"]
def layout(self):
self.folders.source = '.'
self.folders.build = 'build/meson'
self.folders.generators = 'build/generators'
self.folders.package = 'build/package'
def build(self):
meson = Meson(self)
meson.configure()
meson.build()
def test(self):
meson = Meson(self)
meson.test()
def package(self):
copy(self, "*.hpp", self.source_folder, self.package_folder)
def package_info(self):
self.cpp_info.includedirs = ['include']
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []
def package_id(self):
self.info.clear()