aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-26 16:37:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-26 16:37:16 +0200
commitf0edc0e2b67fa43c4e2410c7d3d8f1841d576749 (patch)
tree25ca1dd8c20649a1a9a35355670a1f5c8b99695c /build2/cc/utility.cxx
parente347540d400c552917ca7067c4571f1028f6e1af (diff)
Add pkg-config support for import installed
Redesign library importing/exporting while at it.
Diffstat (limited to 'build2/cc/utility.cxx')
-rw-r--r--build2/cc/utility.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/build2/cc/utility.cxx b/build2/cc/utility.cxx
index 773ba8f..7be86e2 100644
--- a/build2/cc/utility.cxx
+++ b/build2/cc/utility.cxx
@@ -71,45 +71,5 @@ namespace build2
return *r;
}
-
- void
- append_lib_options (cstrings& args, target& l, lorder lo,
- const variable& cv,
- const variable& xv)
- {
- using namespace bin;
-
- for (target* t: l.prerequisite_targets)
- {
- if (lib* l = t->is_a<lib> ())
- t = &link_member (*l, lo); // Pick one of the members.
-
- if (t->is_a<liba> () || t->is_a<libs> ())
- append_lib_options (args, *t, lo, cv, xv);
- }
-
- append_options (args, l, cv);
- append_options (args, l, xv);
- }
-
- void
- hash_lib_options (sha256& csum, target& l, lorder lo,
- const variable& cv,
- const variable& xv)
- {
- using namespace bin;
-
- for (target* t: l.prerequisite_targets)
- {
- if (lib* l = t->is_a<lib> ())
- t = &link_member (*l, lo); // Pick one of the members.
-
- if (t->is_a<liba> () || t->is_a<libs> ())
- hash_lib_options (csum, *t, lo, cv, xv);
- }
-
- hash_options (csum, l, cv);
- hash_options (csum, l, xv);
- }
}
}