aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/compile
blob: cb448295cd670924eb7e730473be82ec6ab63a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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