Skip to content

Commit

Permalink
Add dlss package (#6169)
Browse files Browse the repository at this point in the history
* Add dlss package

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
jsjtxietian and star-hengxing authored Jan 16, 2025
1 parent cb76747 commit 14b5d26
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages/d/dlss/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package("dlss")
set_homepage("https://github.com/NVIDIA/DLSS")
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")
set_license("NVIDIA RTX SDKs")

add_urls("https://github.com/NVIDIA/DLSS/archive/refs/tags/$(version).tar.gz",
"https://github.com/NVIDIA/DLSS.git")

add_versions("v3.7.20", "904d771551526dd6aa458f0db7b85fe4abb8f49ce0307d377e8da089628bf9ec")

on_install("windows|x64", "linux|x86_64", function (package)
os.cp("include", package:installdir())
if is_plat("windows") then
os.cp("lib/Windows_x86_64/x86_64/*.lib", package:installdir("lib"))
if package:is_debug() then
os.cp("lib/Windows_x86_64/dev/*", package:installdir("bin"))
else
os.cp("lib/Windows_x86_64/rel/*", package:installdir("bin"))
end
else
package:add("syslinks", "dl")
os.cp("lib/Linux_x86_64/*.a", package:installdir("lib"))
if package:is_debug() then
os.cp("lib/Linux_x86_64/dev/*", package:installdir("lib"))
else
os.cp("lib/Linux_x86_64/rel/*", package:installdir("lib"))
end
end
end)

on_test(function (package)
assert(package:has_cfuncs("NGX_DLSS_GET_STATS_2", {includes = "nvsdk_ngx_helpers.h"}))
end)

0 comments on commit 14b5d26

Please sign in to comment.