You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package("tinygltf")
|
|
|
|
|
|
|
|
set_kind("library", {headeronly = true})
|
|
|
|
set_homepage("https://github.com/syoyo/tinygltf/")
|
|
|
|
set_description("Header only C++11 tiny glTF 2.0 library")
|
|
|
|
set_license("MIT")
|
|
|
|
|
|
|
|
add_urls("https://github.com/syoyo/tinygltf/archive/refs/tags/$(version).tar.gz",
|
|
|
|
"https://github.com/syoyo/tinygltf.git")
|
|
|
|
add_versions("v2.5.0", "5d85bd556b60b1b69527189293cfa4902957d67fabb8582b6532f23a5ef27ec1")
|
|
|
|
|
|
|
|
add_deps("stb", "nlohmann_json")
|
|
|
|
on_install(function (package)
|
|
|
|
os.cp("tiny_gltf.h", package:installdir("include"))
|
|
|
|
os.cp("cmake/TinyGLTFConfig.cmake", package:installdir("cmake"))
|
|
|
|
end)
|
|
|
|
|
|
|
|
on_test(function (package)
|
|
|
|
assert(package:check_cxxsnippets({test = [[
|
|
|
|
void test() {
|
|
|
|
tinygltf::TinyGLTF loader;
|
|
|
|
}
|
|
|
|
]]}, {configs = {languages = "c++14"}, includes = "tiny_gltf.h"}))
|
|
|
|
end)
|