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 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 build/cxx/utility (limited to 'build/cxx/utility') diff --git a/build/cxx/utility b/build/cxx/utility new file mode 100644 index 0000000..53e80e1 --- /dev/null +++ b/build/cxx/utility @@ -0,0 +1,37 @@ +// file : build/cxx/utility -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_CXX_UTILITY +#define BUILD_CXX_UTILITY + +#include + +#include +#include + +#include + +namespace build +{ + namespace cxx + { + using config::append_options; + + // T is either target or scope. + // + template + void + append_std (cstrings& args, T&, std::string& storage); + + // Append library options from one of the cxx.export.* variables + // recursively, prerequisite libraries first. + // + void + append_lib_options (cstrings& args, target&, const char* variable); + } +} + +#include + +#endif // BUILD_CXX_UTILITY -- cgit v1.1