forked from Ultimaker/fdm_materials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
43 lines (35 loc) · 1.25 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
import os
from conan import ConanFile
from conans import tools
from conan.errors import ConanInvalidConfiguration
required_conan_version = ">=1.47.0"
class FDM_MaterialsConan(ConanFile):
name = "fdm_materials"
license = "LGPL-3.0"
author = "Ultimaker B.V."
url = "https://github.com/Ultimaker/fdm_materials"
description = "FDM Material database"
topics = ("conan", "profiles", "cura", "ultimaker", "filament")
build_policy = "missing"
exports = "LICENSE*"
settings = "os", "compiler", "build_type", "arch"
no_copy_source = True
scm = {
"type": "git",
"subfolder": ".",
"url": "auto",
"revision": "auto"
}
def validate(self):
if tools.Version(self.version) <= tools.Version("4"):
raise ConanInvalidConfiguration("Only versions 5+ are support")
def layout(self):
self.cpp.package.resdirs = ["materials"]
def package(self):
self.copy("*.fdm_material", src = ".", dst = self.cpp.package.resdirs[0])
self.copy("*.sig", src = ".", dst = self.cpp.package.resdirs[0])
def package_id(self):
del self.info.settings.os
del self.info.settings.compiler
del self.info.settings.build_type
del self.info.settings.arch