mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Add cura_resources as dependency and update resource directories
A new dependency 'cura_resources' has been added to the conandata.yml. The handling of 'cura_resources' has been updated, now including specific sections for definitions, extruders, intent, meshes, quality and variants. GitHub Actions workflows and conan scripts have been adjusted accordingly to include these changes. Contribute to NP-186
This commit is contained in:
parent
26c4354ac2
commit
0942c35c0a
5 changed files with 50 additions and 8 deletions
|
@ -1,6 +1,4 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
from jinja2 import Template
|
||||
|
||||
from conan import ConanFile
|
||||
from conan.tools.files import copy, update_conandata
|
||||
|
@ -35,6 +33,8 @@ class CuraResource(ConanFile):
|
|||
dst=os.path.join(self.export_sources_folder, "definitions"))
|
||||
copy(self, pattern="*", src=os.path.join(self.recipe_folder, "extruders"),
|
||||
dst=os.path.join(self.export_sources_folder, "extruders"))
|
||||
copy(self, pattern="*", src=os.path.join(self.recipe_folder, "images"),
|
||||
dst=os.path.join(self.export_sources_folder, "images"))
|
||||
copy(self, pattern="*", src=os.path.join(self.recipe_folder, "intent"),
|
||||
dst=os.path.join(self.export_sources_folder, "intent"))
|
||||
copy(self, pattern="*", src=os.path.join(self.recipe_folder, "meshes"),
|
||||
|
@ -49,7 +49,7 @@ class CuraResource(ConanFile):
|
|||
raise ConanInvalidConfiguration("Only versions 5+ are support")
|
||||
|
||||
def layout(self):
|
||||
self.cpp.source.resdirs = ["definitions", "extruders", "intent", "meshes", "quality", "variants"]
|
||||
self.cpp.source.resdirs = ["definitions", "extruders", "images", "intent", "meshes", "quality", "variants"]
|
||||
|
||||
def package(self):
|
||||
copy(self, "*", os.path.join(self.export_sources_folder),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue