diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-11-18 11:38:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-11-18 11:38:44 +0200 |
commit | bbf670d03ee587b0794f77a39db801bad6459ca5 (patch) | |
tree | f7e144fc5a1ca83c4ee6d7a1f21039c657ef3718 /libbuild2/bin/rule.cxx | |
parent | 462afa615e9f2fdff12a0ee7a36eb431ee07e141 (diff) |
Only install runtime part of static library prerequisites of share libraries (GH issue #448)
Diffstat (limited to 'libbuild2/bin/rule.cxx')
-rw-r--r-- | libbuild2/bin/rule.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libbuild2/bin/rule.cxx b/libbuild2/bin/rule.cxx index c7147bf..1fea558 100644 --- a/libbuild2/bin/rule.cxx +++ b/libbuild2/bin/rule.cxx @@ -218,5 +218,18 @@ namespace build2 const target* m[] = {t.a, t.s}; return execute_members (a, t, m); } + + // install_lib_rule + // + pair<const target*, uint64_t> install_lib_rule:: + filter (const scope* is, + action a, const target& t, const prerequisite& p, + match_extra& me) const + { + if (p.is_a<lib> ()) + return pair<const target*, uint64_t> (nullptr, 0); + + return install::group_rule::filter (is, a, t, p, me); + } } } |