Skip to content

Commit

Permalink
(#18145) tinygltf: add version 2.8.13, update dependencies
Browse files Browse the repository at this point in the history
* tinygltf: add version 2.8.13

* add package_type
  • Loading branch information
toge authored Jun 30, 2023
1 parent d9de202 commit 64a30a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions recipes/tinygltf/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"2.8.13":
url: "https://github.com/syoyo/tinygltf/archive/v2.8.13.tar.gz"
sha256: "72c3e5affa8389442582e4cf67426376e2dff418e998e19822260f4bf58b74b8"
"2.5.0":
url: "https://github.com/syoyo/tinygltf/archive/v2.5.0.tar.gz"
sha256: "5d85bd556b60b1b69527189293cfa4902957d67fabb8582b6532f23a5ef27ec1"
Expand Down
13 changes: 6 additions & 7 deletions recipes/tinygltf/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class TinygltfConan(ConanFile):
name = "tinygltf"
description = "Header only C++11 tiny glTF 2.0 library."
license = "MIT"
topics = ("gltf")
homepage = "https://github.com/syoyo/tinygltf"
url = "https://github.com/conan-io/conan-center-index"

homepage = "https://github.com/syoyo/tinygltf"
topics = ("gltf", "header-only")
package_type = "header-library"
settings = "os", "arch", "compiler", "build_type"
options = {
"draco": [True, False],
Expand All @@ -36,17 +36,16 @@ def package_id(self):
def requirements(self):
self.requires("nlohmann_json/3.11.2")
if self.options.draco:
self.requires("draco/1.5.5")
self.requires("draco/1.5.6")
if self.options.stb_image or self.options.stb_image_write:
self.requires("stb/cci.20210910")
self.requires("stb/cci.20220909")

def validate(self):
if self.settings.compiler.get_safe("cppstd"):
check_min_cppstd(self, 11)

def source(self):
get(self, **self.conan_data["sources"][self.version],
destination=self.source_folder, strip_root=True)
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def build(self):
replace_in_file(self, os.path.join(self.source_folder, "tiny_gltf.h"),
Expand Down
2 changes: 2 additions & 0 deletions recipes/tinygltf/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"2.8.13":
folder: all
"2.5.0":
folder: all
"2.4.0":
Expand Down

0 comments on commit 64a30a5

Please sign in to comment.