aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/utility
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-20 10:38:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-20 10:38:02 +0200
commitc1981e367aafc22389ac0ab506b00e9657c8071c (patch)
tree528b0d00283411de2daf6d0e2163f72f2e741ee9 /build/cxx/utility
parent243da3993c138d33063f633aa3996a8a710ea396 (diff)
Implement support for importing installed libraries
Diffstat (limited to 'build/cxx/utility')
-rw-r--r--build/cxx/utility37
1 files changed, 37 insertions, 0 deletions
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 <string>
+
+#include <build/types>
+#include <build/target>
+
+#include <build/config/utility>
+
+namespace build
+{
+ namespace cxx
+ {
+ using config::append_options;
+
+ // T is either target or scope.
+ //
+ template <typename T>
+ 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 <build/cxx/utility.txx>
+
+#endif // BUILD_CXX_UTILITY