Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
c8ef committed Feb 28, 2024
1 parent 314942f commit 34d3f00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/d/directxmath/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ package("directxmath")
add_versions("2022.12", "2ed0ae7d7fe5d11ad11f6d3d9b31ce686024a551cf82ade723de86aa7b4b57e1")
add_versions("2024.02", "214d71420107249dfb4bbc37a573f288b0951cc9ffe323dbf662101f3df4d766")

if is_plat("linux") then
add_resources(">=2022.12", "headers", "https://raw.githubusercontent.com/dotnet/runtime/2201016c1e13bdb9abf49e2e38cadf4ee0568df2/src/coreclr/pal/inc/rt/sal.h", "7dae281adc3a09a691291fb90526f05e4f9ef8b16d7f33d716ba690f7241a492")
end

add_deps("cmake")
add_includedirs("include/directxmath")

on_install("windows", "mingw", "linux", function (package)
if package:is_plat("linux") then
os.cp("../resources/headers/sal.h", package:installdir("include", "directxmath"))
end
import("package.tools.cmake").install(package, {"-DBUILD_TESTING=OFF"})
end)

Expand Down

0 comments on commit 34d3f00

Please sign in to comment.