Skip to content

Commit

Permalink
Auto-update aws-checksums to v0.1.19 (#5151)
Browse files Browse the repository at this point in the history
* Update aws-checksums to v0.1.19

* add check for clang toolchain

* fix unix path

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
  • Loading branch information
waruqi and star-hengxing authored Sep 12, 2024
1 parent b6915ab commit 963c79f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/a/aws-checksums/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,31 @@ package("aws-checksums")
add_urls("https://github.com/awslabs/aws-checksums/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-checksums.git")

add_versions("v0.1.19", "844e5a4f659f454112c559d4f4043b7accfbb134e47a55f4c55f79d9c71bdab1")
add_versions("v0.1.18", "bdba9d0a8b8330a89c6b8cbc00b9aa14f403d3449b37ff2e0d96d62a7301b2ee")
add_versions("v0.1.17", "83c1fbae826631361a529e9565e64a942c412baaec6b705ae5da3f056b97b958")

add_configs("asan", {description = "Enable Address Sanitize.", default = false, type = "boolean"})

add_deps("cmake", "aws-c-common")

on_install("windows|x64", "windows|x86", "linux", "macosx", "bsd", "msys", "cross", function (package)
if on_check then
on_check(function (package)
if package:version():eq("0.1.19") then
if package:is_plat("windows") then
if package:has_tool("cxx", "clang_cl") then
raise("package(aws-checksums 0.1.19) unsupported clang-cl toolchain")
end
elseif package:has_tool("cxx", "clang") then
raise("package(aws-checksums 0.1.19) unsupported clang toolchain")
end
end
end)
end

on_install("!mingw or mingw|!i386", function (package)
local cmakedir = package:dep("aws-c-common"):installdir("lib", "cmake")
if package:is_plat("windows") then
if is_host("windows") then
cmakedir = cmakedir:gsub("\\", "/")
end

Expand Down

0 comments on commit 963c79f

Please sign in to comment.