Skip to content

Commit

Permalink
Fix checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 16, 2025
1 parent 059be3c commit 8b2b003
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/t/thorvg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package("thorvg")
add_urls("https://github.com/thorvg/thorvg/archive/refs/tags/$(version).tar.gz",
"https://github.com/thorvg/thorvg.git")

add_versions("v1.0-pre10", "0dcd466d25275a76a84a6a58f798d098e72e7555b4c5d17cdec822afc38212dc")
add_versions("v0.15.8", "d7c0961c872086aa64db7b5bb6c58e7a2f81202aecd164c835ac77e74d95d12b")
add_versions("v1.0-pre10", "a8d2cff9c64495b24b4f51730d26d16f5a12136c7a5c38ac18c0e6caa8d4efc6")
add_versions("v0.15.8", "bc0d6cf60a49fa760d562e125300d144d9f0436a8499f942ce234bd2acb7a5d5")
add_versions("v0.15.2", "98fcd73567c003a33fad766a7dbb9244c61e9b4721397d42e7fa04fc2e499dce")
add_versions("v0.15.1", "4935228bb11e1a5303fc98d2a4b355c94eb82bff10cff581821b0b3c41368049")
add_versions("v0.14.10", "e11e2e27ef26ed018807e828cce3bca1fb9a7f25683a152c9cd1f7aac9f3b67a")
Expand Down Expand Up @@ -108,7 +108,12 @@ package("thorvg")
end)

on_test(function (package)
assert(package:has_cxxfuncs("tvg::Initializer::init(0, tvg::CanvasEngine::Sw)", {includes = "thorvg.h", configs = {languages = "c++14"}}))
assert(package:check_cxxsnippets({test = [[
#include <thorvg.h>
void test() {
auto canvas = tvg::SwCanvas::gen();
}
]]}, {configs = {languages = "c++14"}}))
if package:config("c_api") then
assert(package:has_cxxfuncs("tvg_engine_init", {includes = "thorvg_capi.h"}))
end
Expand Down

0 comments on commit 8b2b003

Please sign in to comment.