aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-09-03 11:37:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-09-03 11:37:51 +0200
commit1a489c458b28ba9d9393b311fbf0bfe80d3ff62b (patch)
tree89fa06e91f63f1a616195f2ddab8a5b9c762a001
parentb942200710a8d17be56324fff4f209c583a2fc87 (diff)
Reorder lines in library buildfile generated by bdep-new
-rw-r--r--bdep/new.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 5bf2a50..bb1f033 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -906,14 +906,15 @@ namespace bdep
<< h << "{version}: clean = ($src_root != $out_root)" << endl
<< endl
<< x << ".poptions =+ \"-I$out_root\" \"-I$src_root\"" << endl
+ << endl
+ << "obja{*}: " << x << ".poptions += -D" << m << "_STATIC_BUILD" << endl
+ << "objs{*}: " << x << ".poptions += -D" << m << "_SHARED_BUILD" << endl
+ << endl
<< "lib{" << s << "}: " << x << ".export.poptions = \"-I$out_root\" \"-I$src_root\"" << endl
<< endl
<< "liba{" << s << "}: " << x << ".export.poptions += -D" << m << "_STATIC" << endl
<< "libs{" << s << "}: " << x << ".export.poptions += -D" << m << "_SHARED" << endl
<< endl
- << "obja{*}: " << x << ".poptions += -D" << m << "_STATIC_BUILD" << endl
- << "objs{*}: " << x << ".poptions += -D" << m << "_SHARED_BUILD" << endl
- << endl
<< "lib{" << s << "}: " << x << ".export.libs = $int_libs" << endl
<< endl
<< "# For pre-releases use the complete version to make sure they cannot be used" << endl