Alien-SDL3
view release on metacpan or search on metacpan
recipes/packages/l/libsdl3/xmake.lua view on Meta::CPAN
end
local semver = import("core.base.semver")
local names = {}
if not self:is_thirdparty() then
table.join2(names, self:extsources())
end
table.insert(names, self:name())
for _, name in ipairs(names) do
-- self:find_package() rather than the global find_package(): it
-- defaults to system-only for non-xmake:: names, which is what the
-- fallback below uses, so we test the same package it would pick.
local fetchinfo = self:find_package(name, {system = true})
if fetchinfo then
local found = fetchinfo.version
-- pkgconfig-style managers report a plain semver; vcpkg reports
-- "<semver>-<portrevision>" (libsdl3_3.4.18-1_x64-windows.list).
-- semver reads that as a 3.4.18 pre-release, so a perfectly
-- current vcpkg SDL3 would look older than it is. Drop the port
-- revision before comparing.
( run in 1.139 second using v1.01-cache-2.11-cpan-4716db65a44 )