Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 16, 2025
1 parent 5d522d3 commit 6558c47
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/d/dlss/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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|x64", function (package)
os.cp("include/*.h", package:installdir("include"))

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
Expand All @@ -18,15 +18,14 @@ package("dlss")
os.cp("lib/Windows_x86_64/rel/*", package:installdir("bin"))
end
else
add_syslinks("dl", "stdc++")
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("bin"))
os.cp("lib/Linux_x86_64/dev/*", package:installdir("lib"))
else
os.cp("lib/Linux_x86_64/rel/*", package:installdir("bin"))
os.cp("lib/Linux_x86_64/rel/*", package:installdir("lib"))
end
end

end)

on_test(function (package)
Expand Down

0 comments on commit 6558c47

Please sign in to comment.