-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
41 lines (33 loc) · 1.28 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
# See: https://docs.conan.io/2/reference/conanfile.html
from conan import ConanFile
from conan.tools.build import check_min_cstd
from conan.tools.files import copy
from conan.tools.layout import basic_layout
from os import path
class KnowCConan(ConanFile):
name = "know.c"
version = "0.0.0"
description = "The Know Framework for C."
license = "Unlicense"
author = "KNOW Project"
topics = ("ontology", "header-only", "c11")
homepage = "https://github.com/KnowOntology/know.c"
url = "https://github.com/KnowOntology/know.c.git"
languages = "C"
exports_sources = "src/*"
no_copy_source = True
def layout(self):
basic_layout(self, src_folder="src")
def validate(self):
#check_min_cstd(self, 11) # FIXME: Conan 2.4.1 appears to be defective
pass
def export_sources(self):
copy(self, "UNLICENSE", src=self.recipe_folder, dst=self.export_sources_folder)
def build(self):
pass
def package(self):
copy(self, "*.h", src=self.source_folder, dst=path.join(self.package_folder, "include"))
copy(self, "UNLICENSE", src=self.export_sources_folder, dst=path.join(self.package_folder, "licenses"))
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []