aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cxx/target.cxx')
-rw-r--r--build2/cxx/target.cxx29
1 files changed, 17 insertions, 12 deletions
diff --git a/build2/cxx/target.cxx b/build2/cxx/target.cxx
index bde41fc..b7c3f8c 100644
--- a/build2/cxx/target.cxx
+++ b/build2/cxx/target.cxx
@@ -2,6 +2,8 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
+#include <build2/context.hxx>
+
#include <build2/cxx/target.hxx>
using namespace std;
@@ -10,16 +12,15 @@ namespace build2
{
namespace cxx
{
- extern const char ext_var[] = "extension"; // VC14 rejects constexpr.
-
extern const char hxx_ext_def[] = "hxx";
const target_type hxx::static_type
{
"hxx",
&file::static_type,
&target_factory<hxx>,
- &target_extension_var<ext_var, hxx_ext_def>,
- &target_pattern_var<ext_var, hxx_ext_def>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, hxx_ext_def>,
+ &target_pattern_var<var_extension, hxx_ext_def>,
nullptr,
&file_search,
false
@@ -31,8 +32,9 @@ namespace build2
"ixx",
&file::static_type,
&target_factory<ixx>,
- &target_extension_var<ext_var, ixx_ext_def>,
- &target_pattern_var<ext_var, ixx_ext_def>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, ixx_ext_def>,
+ &target_pattern_var<var_extension, ixx_ext_def>,
nullptr,
&file_search,
false
@@ -44,8 +46,9 @@ namespace build2
"txx",
&file::static_type,
&target_factory<txx>,
- &target_extension_var<ext_var, txx_ext_def>,
- &target_pattern_var<ext_var, txx_ext_def>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, txx_ext_def>,
+ &target_pattern_var<var_extension, txx_ext_def>,
nullptr,
&file_search,
false
@@ -57,8 +60,9 @@ namespace build2
"cxx",
&cc::static_type,
&target_factory<cxx>,
- &target_extension_var<ext_var, cxx_ext_def>,
- &target_pattern_var<ext_var, cxx_ext_def>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, cxx_ext_def>,
+ &target_pattern_var<var_extension, cxx_ext_def>,
nullptr,
&file_search,
false
@@ -70,8 +74,9 @@ namespace build2
"mxx",
&file::static_type,
&target_factory<mxx>,
- &target_extension_var<ext_var, mxx_ext_def>,
- &target_pattern_var<ext_var, mxx_ext_def>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<var_extension, mxx_ext_def>,
+ &target_pattern_var<var_extension, mxx_ext_def>,
nullptr,
&file_search,
false