diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-07 20:02:41 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-08 18:09:49 +0300 |
commit | 0ea0fcc510da720d509697d6f254a9e93f1f243c (patch) | |
tree | 87b46530bf280c584731cbdcf34cc6606ea69cb4 | |
parent | 6f366d915210e76eed55135015b3dd899aacec5a (diff) |
Drop impl_libs variable from bdep-new-generated buildfiles for binless libraries
-rw-r--r-- | bdep/new.cxx | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 52c3de8..0b4fd56 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -2291,15 +2291,14 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) if (binless) { os << "intf_libs = # Interface dependencies." << '\n' - << "impl_libs = # Implementation dependencies." << '\n' - << "#import impl_libs += libhello%lib{hello}" << '\n' + << "#import xxxx_libs += libhello%lib{hello}" << '\n' << '\n' << "lib{" << s << "}: " << tt (ha) << "{" << w; if (ver) os << " -version} " << hg << "{version}"; else os << "}"; - os << " $impl_libs $intf_libs" << '\n'; + os << " $intf_libs" << '\n'; } else { @@ -2385,10 +2384,15 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) open (out_src / buildfile_file); if (!(split && binless)) - os << "intf_libs = # Interface dependencies." << '\n' - << "impl_libs = # Implementation dependencies." << '\n' - << "#import impl_libs += libhello%lib{hello}" << '\n' + { + os << "intf_libs = # Interface dependencies." << '\n'; + + if (!binless) + os << "impl_libs = # Implementation dependencies." << '\n'; + + os << "#import xxxx_libs += libhello%lib{hello}" << '\n' << '\n'; + } if (split) { @@ -2439,7 +2443,11 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) os << " -version} " << hg << "{version}"; else os << "}"; - os << " $impl_libs $intf_libs" << '\n'; + + if (binless) + os << " $intf_libs" << '\n'; + else + os << " $impl_libs $intf_libs" << '\n'; } else { @@ -2473,7 +2481,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) << " "; else os << "}"; - os << " $impl_libs $intf_libs" << '\n' + os << " $intf_libs" << '\n' << '\n'; } |