improve openssl for supporting windows arm64 (#1544)

pull/1546/head
ruki 2 years ago committed by GitHub
parent caf85942b1
commit dc926e2691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      packages/o/openssl/xmake.lua

@ -48,7 +48,17 @@ package("openssl")
on_install("windows", function (package)
local configs = {"Configure"}
table.insert(configs, package:is_arch("x86") and "VC-WIN32" or "VC-WIN64A")
local target
if package:is_arch("x86", "i386") then
target = "VC-WIN32"
elseif package:is_arch("arm64") then
target = "VC-WIN64-ARM"
elseif package:is_arch("arm.*") then
target = "VC-WIN32-ARM"
else
target = "VC-WIN64A"
end
table.insert(configs, target)
table.insert(configs, package:config("shared") and "shared" or "no-shared")
table.insert(configs, "--prefix=" .. package:installdir())
table.insert(configs, "--openssldir=" .. package:installdir())

Loading…
Cancel
Save