// file      : build/cxx/compile -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BUILD_CXX_COMPILE
#define BUILD_CXX_COMPILE

#include <build/types>
#include <build/rule>

namespace build
{
  namespace cxx
  {
    class compile: public rule
    {
    public:
      virtual match_result
      match (action, target&, const std::string& hint) const;

      virtual recipe
      apply (action, target&, const match_result&) const;

      static target_state
      perform_update (action, target&);

      static compile instance;
    };
  }
}

#endif // BUILD_CXX_COMPILE