summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/pkgconfig.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-21 22:37:05 +0800
committerruki <[email protected]>2021-05-21 22:37:05 +0800
commit5e70495c695cea990d07e3471e1c0a65de788a93 (patch)
tree8b9a67595c368b771b31337fb0bc2c0097ecc9f8 /xmake/modules/lib/detect/pkgconfig.lua
parent062d5d27e2a410d978397a07db7dd1748cb11a3a (diff)
revert pkgconfig/find_package
Diffstat (limited to 'xmake/modules/lib/detect/pkgconfig.lua')
-rw-r--r--xmake/modules/lib/detect/pkgconfig.lua18
1 files changed, 0 insertions, 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