aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-03-10 14:47:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-10 14:47:43 +0200
commit24b96045ce498b2d8139aade9df11d8ed699b902 (patch)
treef2e0e66ee2c383266e5d1e520d5d955d0353a7f9
parentcff679061de2b9c884671539006edd1248504b73 (diff)
Prepare to take advantage of header pre-generation in bdep-new projects
-rw-r--r--bdep/new.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index d79f40f..ad267b8 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -2369,7 +2369,14 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< "./: $pub_hdrs" << '\n';
}
+ // @@ TMP: enable before 0.15.0 release (also update toolchain
+ // requirements in manifest). Also below.
+ //
if (ver)
+#if 0
+ os << '\n'
+ << hg << "{version}: in{version} $src_root/manifest" << '\n';
+#else
os << '\n'
<< "# Include the generated version header into the distribution (so that we don't" << '\n'
<< "# pick up an installed one) and don't remove it when cleaning in src (so that" << '\n'
@@ -2380,6 +2387,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< " dist = true" << '\n'
<< " clean = ($src_root != $out_root)" << '\n'
<< "}" << '\n';
+#endif
if (!exph.empty ())
os << '\n'
@@ -2576,7 +2584,14 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
os << "}" << '\n';
}
+ // @@ TMP: enable before 0.15.0 release (also update toolchain
+ // requirements in manifest). Also above.
+ //
if (ver && !split)
+#if 0
+ os << '\n'
+ << hg << "{version}: in{version} $src_root/manifest" << '\n';
+#else
os << '\n'
<< "# Include the generated version header into the distribution (so that we don't" << '\n'
<< "# pick up an installed one) and don't remove it when cleaning in src (so that" << '\n'
@@ -2587,6 +2602,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< " dist = true" << '\n'
<< " clean = ($src_root != $out_root)" << '\n'
<< "}" << '\n';
+#endif
if (!exph.empty () && !split)
os << '\n'