aboutsummaryrefslogtreecommitdiff
path: root/build/cli/target.cxx
blob: 2854818d3171c9559ab0a631e52d57ff0bc6be11 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// file      : build/cli/target.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#include <build/cli/target>

using namespace std;

namespace build
{
  namespace cli
  {
    // cli
    //
    constexpr const char cli_ext[] = "cli";
    const target_type cli::static_type
    {
      typeid (cli),
      "cli",
      &file::static_type,
      &target_factory<cli>,
      &target_extension_fix<cli_ext>,
      &search_file
    };

    // cli.cxx
    //
    group_view cli_cxx::
    members (action) const
    {
      return m[0] != nullptr
        ? group_view {m, (m[2] != nullptr ? 3U : 2U)}
        : group_view {nullptr, 0};
    }

    const target_type cli_cxx::static_type
    {
      typeid (cli_cxx),
      "cli.cxx",
      &target_group::static_type,
      &target_factory<cli_cxx>,
      nullptr,
      &search_target
    };
  }
}