From 5e70495c695cea990d07e3471e1c0a65de788a93 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 May 2021 22:37:05 +0800 Subject: revert pkgconfig/find_package --- xmake/modules/lib/detect/pkgconfig.lua | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/xmake/modules/lib/detect/pkgconfig.lua b/xmake/modules/lib/detect/pkgconfig.lua index f47cd70be..9cd07a1e7 100644 --- a/xmake/modules/lib/detect/pkgconfig.lua +++ b/xmake/modules/lib/detect/pkgconfig.lua @@ -171,24 +171,6 @@ function libinfo(name, opt) end end - -- get includedirs - if not result or not result.includedirs then - local varinfo = variables(name, "includedir", opt) - if varinfo and varinfo.includedir then - result = result or {} - result.includedirs = varinfo.includedir - end - end - - -- get linkdirs - if not result or not result.linkdirs then - local varinfo = variables(name, "libdir", opt) - if varinfo and varinfo.libdir then - result = result or {} - result.linkdirs = varinfo.libdir - end - end - -- get version local version = try { function() return os.iorunv(pkgconfig, {"--modversion", name}, {envs = envs}) end } if version then -- cgit v1.3.1