Support arm64-v8a (#1969)

* Support arm64-v8a

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
pull/1970/head
yamashi 2 years ago committed by GitHub
parent 04cb347068
commit 8822f66dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/d/dotnet/xmake.lua

@ -4,7 +4,7 @@ package("dotnet")
set_description(".NET is the free, open-source, cross-platform framework for building modern apps and powerful cloud services.")
if is_host("windows") then
if os.arch() == "x64" then
if is_arch("x64") then
set_urls("https://download.visualstudio.microsoft.com/download/pr/e2f99985-b54a-43a2-85cf-cfc9a1e0a307/171339e000ade0b6e10c3cb010ed45ba/dotnet-sdk-7.0.202-win-x64.zip")
add_versions("7.0.202", "1cc74b279cffe42f757b3adeeeec87e351f0fb806016167ffb6b3842d4d6bcd5")
else
@ -12,24 +12,24 @@ package("dotnet")
add_versions("7.0.202", "8541bc89a12dac90ba1d6a7c1b6875b9314fc8af04602210be07daa16cfd5e9a")
end
elseif is_host("linux") then
if os.arch() == "x86_64" then
if is_arch("x64", "x86_64") then
set_urls("https://download.visualstudio.microsoft.com/download/pr/bda88810-e1a6-4cf0-8139-7fd7fe7b2c7a/7a9ffa3e12e5f1c3d8b640e326c1eb14/dotnet-sdk-7.0.202-linux-x64.tar.gz")
add_versions("7.0.202", "405f15e437582be260460f48eda9dfe613fd87b2557667f20d6ecfa34b09c221")
elseif os.arch() == "arm64" then
elseif is_arch("arm64", "arm64-v8a") then
set_urls("https://download.visualstudio.microsoft.com/download/pr/c1fd11b0-186a-4aa1-a578-bb1b6613886e/b67e1c9d6d90b1c99b23935273921fa1/dotnet-sdk-7.0.202-linux-arm64.tar.gz")
add_versions("7.0.202", "5a5d29f3f7515f6df888047eeb9571a2fa06b728a97e30536b1473d2abce0b32")
end
elseif is_host("macosx") then
if os.arch() == "x86_64" then
if is_arch("x64", "x86_64") then
set_urls("https://download.visualstudio.microsoft.com/download/pr/d3fe9043-0ff4-4584-aacf-1ad41c47407b/7b84ed341359488cd0de21de1b4df6d0/dotnet-sdk-7.0.202-osx-x64.tar.gz")
add_versions("7.0.202", "1531bfa7bf384f8b5c433d87af170f7839b130ea9c20b617aaf41742a13eefa9")
elseif os.arch() == "arm64" then
elseif is_arch("arm64") then
set_urls("https://download.visualstudio.microsoft.com/download/pr/4402413a-ef81-4732-a0c0-38f11694b226/e205b8bf48d95902a6dbe1c3cccca272/dotnet-sdk-7.0.202-osx-arm64.tar.gz")
add_versions("7.0.202", "7f8201d42d31d6985288d0e31a32aa3b1dff40fceb8cb202993c0b72883bcebb")
end
end
on_install("windows|x86", "windows|x64", "linux|x64", "linux|arm64", "macosx|x86_64", "macosx|arm64", function (package)
on_install("windows|x86", "windows|x64", "linux|x64", "linux|x86_64", "linux|arm64", "linux|arm64-v8a", "macosx|x86_64", "macosx|x64", "macosx|arm64", function (package)
local out_path = "packs"
if package:is_plat("windows") then
@ -38,7 +38,8 @@ package("dotnet")
os.cp(path.join(out_path, "nethost.dll"), package:installdir("bin"))
os.cp(path.join(out_path, "nethost.lib"), package:installdir("lib"))
elseif package:is_plat("linux") then
out_path = path.join(out_path, "Microsoft.NETCore.App.Host.linux-" .. (package:is_arch("arm64") and "arm64" or "x64"), "7.0.4", "runtimes", "linux-" .. (package:is_arch("arm64") and "arm64" or "x64"), "native")
local is_arm = package:is_arch("arm64", "arm64-v8a")
out_path = path.join(out_path, "Microsoft.NETCore.App.Host.linux-" .. (is_arm and "arm64" or "x64"), "7.0.4", "runtimes", "linux-" .. (is_arm and "arm64" or "x64"), "native")
if package:config("shared") then
os.cp(path.join(out_path, "*.so"), package:installdir("lib"))

Loading…
Cancel
Save