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
47
48
|
// 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,
false
};
// cli.cxx
//
group_view cli_cxx::
group_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::static_type,
&target_factory<cli_cxx>,
nullptr,
&search_target,
true // See through default semantics.
};
}
}
|