diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-24 02:29:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-25 00:30:49 +0300 |
commit | 6779ea02fb07ba39d162300dd18297ba2027846a (patch) | |
tree | 2543cfd4a4afd2113e2f298a8ede4019cc795ae1 /build2/cc/module.cxx | |
parent | 984a0217af64c734938c330b09ed21d1253dea8d (diff) |
Get rid of pkgconfig module
Diffstat (limited to 'build2/cc/module.cxx')
-rw-r--r-- | build2/cc/module.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/build2/cc/module.cxx b/build2/cc/module.cxx index a18271c..0245def 100644 --- a/build2/cc/module.cxx +++ b/build2/cc/module.cxx @@ -12,6 +12,8 @@ #include <build2/bin/target.hxx> +#include <build2/cc/target.hxx> // pc* + #include <build2/config/utility.hxx> #include <build2/install/utility.hxx> @@ -77,10 +79,10 @@ namespace build2 // Figure out which compiler we are dealing with, its target, etc. // const path& xc (cast<path> (*p.first)); - ci = cc::guess (x_lang, - xc, - cast_null<strings> (rs[config_c_coptions]), - cast_null<strings> (rs[config_x_coptions])); + ci = build2::cc::guess (x_lang, + xc, + cast_null<strings> (rs[config_c_coptions]), + cast_null<strings> (rs[config_x_coptions])); // Split/canonicalize the target. First see if the user asked us to // use config.sub. @@ -366,6 +368,12 @@ namespace build2 if (install_loaded) install_path (rs, **ht, dir_path ("include")); } + + t.insert<pca> (); + t.insert<pcs> (); + + if (install_loaded) + install_path<pc> (rs, dir_path ("pkgconfig")); } // Register rules. |