diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-20 12:56:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-20 12:56:12 +0200 |
commit | a18661636cd169b0912cc58c623fdd69e3250229 (patch) | |
tree | 785943e5fba6808c69c58cbeadaf66d6257c36ca /libbuild2/cc/target.hxx | |
parent | 3b361af7681125e7db98a9e4e69c80d469cae256 (diff) |
Generate common .pc file in addition to static/staged when installing lib{}
The common .pc file is produced by ignoring any static/shared-specific
poptions and splitting loptions/libs into Libs/Libs.private.
It is "best effort", in a sense that it's not guaranteed to be sufficient in
all cases, but it will probably cover the majority of cases, even on Windows,
thanks to automatic dllimport'ing of functions.
Diffstat (limited to 'libbuild2/cc/target.hxx')
-rw-r--r-- | libbuild2/cc/target.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/cc/target.hxx b/libbuild2/cc/target.hxx index 42d15c8..7067421 100644 --- a/libbuild2/cc/target.hxx +++ b/libbuild2/cc/target.hxx @@ -61,13 +61,14 @@ namespace build2 // pkg-config file targets. // - class LIBBUILD2_CC_SYMEXPORT pc: public file + class LIBBUILD2_CC_SYMEXPORT pc: public file // .pc (common) { public: using file::file; public: static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} }; class LIBBUILD2_CC_SYMEXPORT pca: public pc // .static.pc |