aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cxx/target.cxx
blob: 25dfa3a959880aafdd671bba7d0602dce1e614f8 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// file      : libbuild2/cxx/target.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#include <libbuild2/cxx/target.hxx>

#include <libbuild2/context.hxx>

using namespace std;

namespace build2
{
  namespace cxx
  {
    extern const char hxx_ext_def[] = "hxx";
    const target_type hxx::static_type
    {
      "hxx",
      &cc::static_type,
      &target_factory<hxx>,
      nullptr, /* fixed_extension */
      &target_extension_var<hxx_ext_def>,
      &target_pattern_var<hxx_ext_def>,
      nullptr,
      &file_search,
      false
    };

    extern const char ixx_ext_def[] = "ixx";
    const target_type ixx::static_type
    {
      "ixx",
      &cc::static_type,
      &target_factory<ixx>,
      nullptr, /* fixed_extension */
      &target_extension_var<ixx_ext_def>,
      &target_pattern_var<ixx_ext_def>,
      nullptr,
      &file_search,
      false
    };

    extern const char txx_ext_def[] = "txx";
    const target_type txx::static_type
    {
      "txx",
      &cc::static_type,
      &target_factory<txx>,
      nullptr, /* fixed_extension */
      &target_extension_var<txx_ext_def>,
      &target_pattern_var<txx_ext_def>,
      nullptr,
      &file_search,
      false
    };

    extern const char cxx_ext_def[] = "cxx";
    const target_type cxx::static_type
    {
      "cxx",
      &cc::static_type,
      &target_factory<cxx>,
      nullptr, /* fixed_extension */
      &target_extension_var<cxx_ext_def>,
      &target_pattern_var<cxx_ext_def>,
      nullptr,
      &file_search,
      false
    };

    extern const char mxx_ext_def[] = "mxx";
    const target_type mxx::static_type
    {
      "mxx",
      &cc::static_type,
      &target_factory<mxx>,
      nullptr, /* fixed_extension */
      &target_extension_var<mxx_ext_def>,
      &target_pattern_var<mxx_ext_def>,
      nullptr,
      &file_search,
      false
    };
  }
}