diff options
| author | ruki <[email protected]> | 2019-03-28 00:19:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-27 19:55:45 +0800 |
| commit | 34cdc300268d1eb133abd43a4bd6a4fe4e500e68 (patch) | |
| tree | cb2c724893f3fcc2789687aee011750ec6f30ba6 | |
| parent | a91a08f001a72164e42033cf4873b0564752a1e0 (diff) | |
improve to patch pkgconfig
| -rw-r--r-- | xmake/actions/require/impl/action/install.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/require/impl/action/install.lua b/xmake/actions/require/impl/action/install.lua index 750bc79bd..759a24932 100644 --- a/xmake/actions/require/impl/action/install.lua +++ b/xmake/actions/require/impl/action/install.lua @@ -47,6 +47,11 @@ end -- patch pkgconfig if not exists function _patch_pkgconfig(package) + -- only binary? need not pkgconfig + if package:kind() == "binary" then + return + end + -- get lib/pkgconfig/*.pc file local pkgconfigdir = path.join(package:installdir(), "lib", "pkgconfig") local pcfile = os.isdir(pkgconfigdir) and find_file("*.pc", pkgconfigdir) or nil |
