From c1981e367aafc22389ac0ab506b00e9657c8071c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Jul 2015 10:38:02 +0200 Subject: Implement support for importing installed libraries --- build/cxx/utility.cxx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build/cxx/utility.cxx (limited to 'build/cxx/utility.cxx') diff --git a/build/cxx/utility.cxx b/build/cxx/utility.cxx new file mode 100644 index 0000000..830ee76 --- /dev/null +++ b/build/cxx/utility.cxx @@ -0,0 +1,29 @@ +// file : build/cxx/utility.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#include + +#include + +using namespace std; + +namespace build +{ + namespace cxx + { + void + append_lib_options (cstrings& args, target& l, const char* var) + { + using namespace bin; + + for (target* t: l.prerequisite_targets) + { + if (t->is_a () || t->is_a () || t->is_a ()) + append_lib_options (args, *t, var); + } + + append_options (args, l, var); + } + } +} -- cgit v1.1