Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 16, 2025
1 parent 3303ed7 commit 059be3c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/t/thorvg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,7 @@ package("thorvg")
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <thorvg.h>
void test() {
tvg::Initializer::init(tvg::CanvasEngine::Sw, 0);
auto canvas = tvg::SwCanvas::gen();
}
]]}, {configs = {languages = "c++14"}}))
assert(package:has_cxxfuncs("tvg::Initializer::init(0, tvg::CanvasEngine::Sw)", {includes = "thorvg.h", 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 059be3c

Please sign in to comment.