aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-06-29 09:25:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-06-29 09:25:52 +0200
commita8777a4aa67b1cf60d7053635d1a3edadca5779e (patch)
treeb6aa0ddefbd060517deab90a939fa5df2f861499 /libbuild2/algorithm.ixx
parent7eb5fa7d01a5ee352b65b6f08ec893abcf016096 (diff)
Make sure we generate common pkg-config file for only liba{}/libs{}
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r--libbuild2/algorithm.ixx11
1 files changed, 11 insertions, 0 deletions
diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx
index ea4241e..8fc5390 100644
--- a/libbuild2/algorithm.ixx
+++ b/libbuild2/algorithm.ixx
@@ -45,6 +45,17 @@ namespace build2
k.proj, {&tt, k.tk.dir, k.tk.out, k.tk.name, k.tk.ext}, k.scope});
}
+ inline const target*
+ search_exsiting (context& ctx,
+ const target_type& tt,
+ const prerequisite_key& k)
+ {
+ return search_existing (
+ ctx,
+ prerequisite_key {
+ k.proj, {&tt, k.tk.dir, k.tk.out, k.tk.name, k.tk.ext}, k.scope});
+ }
+
inline const target&
search_new (context& ctx,
const target_type& tt,