// 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