aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cxx/target.cxx
blob: 37096c32e93fde6bb036daa3e2b467936d9bc80f (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// file      : libbuild2/cxx/target.cxx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#include <libbuild2/cxx/target.hxx>

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,
      target_type::flag::none
    };

    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,
      target_type::flag::none
    };

    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,
      target_type::flag::none
    };

    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,
      target_type::flag::none
    };

    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,
      target_type::flag::none
    };

    extern const char mm_ext_def[] = "mm";
    const target_type mm::static_type
    {
      "mm",
      &cc::static_type,
      &target_factory<mm>,
      nullptr, /* fixed_extension */
      &target_extension_var<mm_ext_def>,
      &target_pattern_var<mm_ext_def>,
      nullptr,
      &file_search,
      target_type::flag::none
    };

    const target_type cxx_inc::static_type
    {
      "cxx_inc",
      &cc::static_type,
      nullptr,
      nullptr,
      nullptr,
      nullptr,
      nullptr,
      &target_search,
      target_type::flag::none
    };
  }
}