aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common
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/common
parente347540d400c552917ca7067c4571f1028f6e1af (diff)
Add pkg-config support for import installed
Redesign library importing/exporting while at it.
Diffstat (limited to 'build2/cc/common')
-rw-r--r--build2/cc/common4
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/cc/common b/build2/cc/common
index ff6841f..c25683c 100644
--- a/build2/cc/common
+++ b/build2/cc/common
@@ -96,6 +96,8 @@ namespace build2
const string& tsys; // x.target.system
const string& tclass; // x.target.class
+ const process_path* pkgconfig; // pkgconfig.path (can be NULL).
+
const target_type& x_src; // Source target type (c{}, cxx{}).
// Array of target types that are considered headers. Keep them in the
@@ -131,6 +133,7 @@ namespace build2
const string& tg,
const string& sys,
const string& class_,
+ const process_path* pkgc,
const target_type& src,
const target_type* const* hdr,
const target_type* const* inc)
@@ -140,6 +143,7 @@ namespace build2
x_install (install),
x_uninstall (uninstall),
cid (id), ctg (tg), tsys (sys), tclass (class_),
+ pkgconfig (pkgc),
x_src (src), x_hdr (hdr), x_inc (inc) {}
};