-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconanfile.py
55 lines (42 loc) · 1.17 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
#!/usr/bin/env python3
from conans import ConanFile, CMake
class StringViewStandaloneConan(ConanFile):
# Package Info
name = "StringViewStandalone"
version = "1.1.0"
description = "Modern C++ compatible string_view implementation"
url = "https://github.com/bitwizeshift/string_view-standalone"
author = "Matthew Rodusek <[email protected]>"
license = "MIT"
generators = "cmake"
# Sources
exports = ("LICENSE")
exports_sources = ("cmake/*",
"include/*",
"single_include/*",
"tests/*",
"CMakeLists.txt",
"LICENSE")
# Settings
options = {}
default_options = {}
build_requires = ("Catch2/2.7.1@catchorg/stable")
def source(self):
pass
def build(self):
pass
def test(self):
pass
def package(self):
cmake = CMake(self)
cmake.definitions["BPSTD_COMPILE_UNIT_TESTS"] = "ON"
cmake.configure()
# Compile and run the unit tests
cmake.build()
cmake.build(target="test")
cmake.install()
self.copy(pattern="LICENSE", dst="licenses")
return
def package_id(self):
# self.info.header_only()
return