xmake.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. package("dlss")
  2. set_homepage("https://github.com/NVIDIA/DLSS")
  3. set_description("NVIDIA DLSS is a new and improved deep learning neural network that boosts frame rates and generates beautiful, sharp images for your games")
  4. set_license("NVIDIA RTX SDKs")
  5. add_urls("https://github.com/NVIDIA/DLSS/archive/refs/tags/$(version).tar.gz",
  6. "https://github.com/NVIDIA/DLSS.git")
  7. add_versions("v3.7.20", "904d771551526dd6aa458f0db7b85fe4abb8f49ce0307d377e8da089628bf9ec")
  8. on_install("windows|x64", "linux|x86_64", function (package)
  9. os.cp("include", package:installdir())
  10. if is_plat("windows") then
  11. os.cp("lib/Windows_x86_64/x86_64/*.lib", package:installdir("lib"))
  12. if package:is_debug() then
  13. os.cp("lib/Windows_x86_64/dev/*", package:installdir("bin"))
  14. else
  15. os.cp("lib/Windows_x86_64/rel/*", package:installdir("bin"))
  16. end
  17. else
  18. package:add("syslinks", "dl")
  19. os.cp("lib/Linux_x86_64/*.a", package:installdir("lib"))
  20. if package:is_debug() then
  21. os.cp("lib/Linux_x86_64/dev/*", package:installdir("lib"))
  22. else
  23. os.cp("lib/Linux_x86_64/rel/*", package:installdir("lib"))
  24. end
  25. end
  26. end)
  27. on_test(function (package)
  28. assert(package:has_cfuncs("NGX_DLSS_GET_STATS_2", {includes = "nvsdk_ngx_helpers.h"}))
  29. end)