Repository navigation
Expand file tree
/
Copy pathconanfile.py
More file actions
50 lines (42 loc) · 1.4 KB
/
Copy pathconanfile.py
File metadata and controls
50 lines (42 loc) · 1.4 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
43
44
45
46
47
48
49
50
# SPDX-FileCopyrightText: 2026 Jarosław Pelczar <jarek@jpelczar.com>
#
# SPDX-License-Identifier: BSD-2-Clause
import os
from conan import ConanFile
from conan.tools.files import copy
class JplczRelocoConan(ConanFile):
name = "jplcz_reloco"
version = "0.6.1"
package_type = "header-library"
license = "BSD-2-Clause"
url = "https://github.com/jplcz/reloco"
homepage = "https://github.com/jplcz/reloco"
description = (
"Header-only Safety by Default alternatives to the C++ Standard "
"Library: hardened containers and lifetime-safety primitives"
)
topics = ("safety", "embedded", "containers", "header-only")
exports_sources = "include/**", "LICENSE"
no_copy_source = True
def package(self):
copy(
self,
"*",
src=os.path.join(self.source_folder, "include"),
dst=os.path.join(self.package_folder, "include"),
)
copy(
self,
"LICENSE",
src=self.source_folder,
dst=os.path.join(self.package_folder, "licenses"),
)
def package_id(self):
self.info.clear()
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []
self.cpp_info.set_property("cmake_file_name", "jplcz_reloco")
self.cpp_info.set_property(
"cmake_target_name", "jplcz_reloco::reloco"
)