Add macosx platform support to directxmath (#4791)

* Add macosx platform support to directxmath

* Update xmake.lua

* limit arch

---------

Co-authored-by: Jérôme Leclercq <lynix680@gmail.com>
Co-authored-by: star9029 <hengxings783@gmail.com>
pull/4809/head
Arnav Mehta 4 months ago committed by GitHub
parent 59a56a1714
commit 041296227f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/d/directxmath/xmake.lua

@ -14,15 +14,15 @@ package("directxmath")
add_versions("2022.12", "2ed0ae7d7fe5d11ad11f6d3d9b31ce686024a551cf82ade723de86aa7b4b57e1")
add_versions("2024.02", "214d71420107249dfb4bbc37a573f288b0951cc9ffe323dbf662101f3df4d766")
if is_plat("linux") then
if is_plat("linux", "macosx") 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
on_install("windows", "mingw|x86_64", "linux", "macosx", function (package)
if package:is_plat("linux", "macosx") then
os.cp("../resources/headers/sal.h", package:installdir("include", "directxmath"))
end
import("package.tools.cmake").install(package, {"-DBUILD_TESTING=OFF"})

Loading…
Cancel
Save