xmake.lua 1005 B

1234567891011121314151617181920212223242526
  1. package("fx-gltf")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/jessey-git/fx-gltf")
  4. set_description("A C++14/C++17 header-only library for simple, efficient, and robust serialization/deserialization of glTF 2.0")
  5. set_license("MIT")
  6. add_urls("https://github.com/jessey-git/fx-gltf/archive/refs/tags/$(version).tar.gz")
  7. add_urls("https://github.com/jessey-git/fx-gltf.git")
  8. add_versions("v1.2.0", "d8eaceba72ea6574b982c7b0d2328fd3f8ad519db4a37cf63cd3f8020d7722bf")
  9. add_versions("v2.0.0", "d044d191f9f6c956bdbaf548d960ae9831fd13dfdc4c82fceefa90cb02a68091")
  10. add_deps("nlohmann_json")
  11. on_install(function(pkg)
  12. os.cp("include/fx/gltf.h", pkg:installdir("include", "fx"))
  13. end)
  14. on_test(function(pkg)
  15. assert(pkg:check_cxxsnippets({test = [[
  16. void test() {
  17. fx::gltf::Document doc;
  18. }
  19. ]]}, {configs = {languages = {"c++14", "c++17"}}, includes = "fx/gltf.h"}))
  20. end)