package An official xmake package repository https://xrepo.xmake.io/
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.

22 lines
819 B

package("directxshadercompiler")
set_homepage("https://github.com/microsoft/DirectXShaderCompiler/")
set_description("DirectX Shader Compiler")
set_license("LLVM")
local date = {["1.5.2010"] = "2020_10-22"}
4 years ago
add_urls("https://github.com/microsoft/DirectXShaderCompiler/releases/download/v$(version).zip", {version = function (version) return version .. "/dxc_" .. date[tostring(version)] end})
add_versions("1.5.2010", "b691f63778f470ebeb94874426779b2f60685fc8711adf1b1f9f01535d9b67f8")
set_kind("binary")
on_install("@windows|x64", function (package)
os.cp("bin/x64/**", package:installdir("bin"))
os.cp("inc/**", package:installdir("include"))
os.cp("lib", package:installdir())
end)
on_test(function (package)
os.vrun("dxc -help")
end)