aboutsummaryrefslogtreecommitdiff
path: root/build/operation.cxx
blob: 28cb13d91838b124500571030e10ed41f6cb0bc3 (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
// file      : build/operation.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
// license   : MIT; see accompanying LICENSE file

#include <build/operation>

#include <ostream>

using namespace std;

namespace build
{
  ostream&
  operator<< (ostream& os, action a)
  {
    return os << '('
              << static_cast<uint16_t> (a.meta_operation ()) << ','
              << static_cast<uint16_t> (a.operation ())
              << ')';
  }

  meta_operation_info perform {"perform"};

  operation_info default_ {"<default>", execution_mode::first};
  operation_info update {"update", execution_mode::first};
  operation_info clean {"clean", execution_mode::last};
}